From patchwork Thu Dec 19 11:23:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914971 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CD99FE7718B for ; Thu, 19 Dec 2024 11:23:51 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861109.1273102 (Exim 4.92) (envelope-from ) id 1tOEd3-0008DD-EZ; Thu, 19 Dec 2024 11:23:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861109.1273102; Thu, 19 Dec 2024 11:23:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd3-0008D6-Be; Thu, 19 Dec 2024 11:23:41 +0000 Received: by outflank-mailman (input) for mailman id 861109; Thu, 19 Dec 2024 11:23:40 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd2-00089J-4T for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:40 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [2a01:111:f403:c20a::7]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b1c334b2-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:39 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:34 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:34 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b1c334b2-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DsrQN2OvMcYslLacDdwejwCUYeQWyGjJZ3FA+nYjAK/SeLgNW+j+LL4/nxMMWsmGNl3Bh4eG17asEdGMOtb68bmAgsaE9DbS4YLG5ggdHQ5ofAFpT0r40S2I6T9nFlkUL5Hm71ygOlO0uNXwnZ4+TsAfQVszJkZczdAmtazqaxt1ML6fzDANoIMdAqDq1b66qSd1O+AC+tRyO/xXXumzCkcP86AgMj6BQxGrsCvfBPVtKphoCsDMgASrWjRwV6V/FCc84i42ZWvANIkFql9COVCoA9Mj1xUL4SczAfZ30+c9ktV6lfKf9F0NaG8izOSkDWL4CGxQXWPDvuflVTJgJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=D1CbZ0U6+K5JDrnG9X+0y79bNYIpjNK/9pm/gAmFT+g=; b=xLLdVr7+ELiTmmUUY7lCW5yf20PbWVpCTrlcVg/KqFs3L/ri/KewWNpeudJOXNwEVQmFixj1so645QzVFJh/P8Zr8fhFFzqsMUME9wGBHAeLWLe+BY3gyV3VHvd3rWKvUF45Ok5ofuM4u0vNFvuYL4ido0kpCFxsHuBOhv8Dp26erOORWiuB79t7kFK3kkjYBUvKksGvGvmtoQZqgWkUEk6LBLlPo+UuGylwafLiFpST5FNtfdkVIWwJj8K/V7n0tqCc3Ldjdeqq9eJZLixnCc5mJ5ik0FVRjz1RAG7aQwbSDQGydX3dPZBkmxsxlLQL/k5vhm8yrLmhZ4AVNzFIFw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D1CbZ0U6+K5JDrnG9X+0y79bNYIpjNK/9pm/gAmFT+g=; b=Vxxe0GtS7kmxt3OmPJNR5YvGbWM6du51/GXdIdbMVbW0KzyNmb9A2PYUAv96H0ReCNRuTamtzKO/oTP5YigHMq0rQBbKn8p7Tv3cnte/DwtHUg5++/akba4P1COXq+BrufLOx5plFatyC4AYjnSGZPdagTfpozhHv1XEVtVgJrcU7MvsXW+nnQnAMQ3ipcswG9Mbvimb3YwpnZJdyQgoz1RMCiGcOkjzRC3L7kOp3Fg2siawIt1gA/g9B7ONqjYBp+9r0c5n+8rt8ay6QhqOB4eRMzRES94EVv5XLFTQdgrHQZuFdiaZszjJjSSQJ0jLyke2pbhHnNTi6R0axLiSVg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v4 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer Date: Thu, 19 Dec 2024 13:23:10 +0200 Message-ID: <20241219112315.2461048-2-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: 7bd80c8b-fe9e-468d-34bf-08dd201f9310 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 079cA5k2B6NNOKVdYDdf2lu4RveChMdDwMTnR6gFHnoIJOZUOMR+m65/z5SuWrP0JbYuIv1THCBT00IO1L9W5KmASwxutCkwfp6HJqnl96rEXCliYxEDwuAuZGDL8nvGmLVOePOuBN3BIPDszEka3aCQHeSYlM7MpWAkI5bqWUpDlHPiNxotYK0wSeIgMD7ub1DryrzIL4XTZY7dcuVGGtNFMGeRc6BmVfFT3+m8JBpBUMdEpRvivqAr7mlij/Kmw83jjoRxpvZGWjwYv4S2kAd2Y9gf0f58evi4VlUjIYohivV1NhD+5mpjYN4vaMpHqAoWjeM2d+pDB45SrKg238o0Xe6c9Vvke4125KXzQY6JuiyPe5y1cffbLIAJ/tAxWS1ky0TOdEwUVohKES8TwQ74EqPuTzE3n5abnR3e6enbcAc4HukbtufMzYJxJ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;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4SPRMB0023.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tY8RuJXEi+eMHOHerqIBZ4Xk1bS+oJcEs52uhXruNJ/EbCaGJ4ZtzaGaAFR8CeFpPcLckMuXA7eU4gCJeOZT2sXSWdT/HJ4YN/PyU8XZRqLArxcueTG9uMzlJtDaOEOO2kWEWBHSMUHKWuFcJnTOZ1AHB17vj4tUkl6+zjsHMH2h/tFCwnXmmqTPL01vifSlL3ChX/KDw1hB0+Te5oOpn33O0Ax0L48PLm32V31nqCG0RunIXWdvmXzK/5jsvyn+1e6phZ3rZib0lt05lppuNuxAOYTuG+M6qOD1oh86eIdsAxURv8PfBuPtRuLWfVxiesz3NyzosXfPjTpxgju7YJjzisl3Hmkta8h+8udFUcAk2sYr/ZHtiNImJdbaQk5ISLjXJL+mQyYt92td8oMI+MmWuijklTqTkSdAHJlLifHydI80og+5DXHY63do/BOFlga5cdyHnW7K4dNrG+nfreCN523u5PqAZQAtl09cndYD9FQeG/eDPafch3flzsNCXAK3qWqILswK4uM2Sa/aLCrKiUd/5D5QF7m7uZmoGmMJNv1XOW4NNpWe8N1/eiL+eI5ed4ZxII5OwpxXQbI08n1vfYuwl/KKHrs1VMM4vnZphYugrYfOpAx7qYmgDaohhDsVB9nY/f/bQxsXm9+NgmWctoMyR9vxEhQMAANklhq0rN2EN/A7UubTWUud1Bj+bLn++KEUR9aZcF7ZKE9QIK3MGbMZetjPQI583+zADwy5Cch9kUO43V8+fF0VmKakGfWC8PKtGWStJvPXoMa8/KfRWDaBJjz436NAXC8f5aCACvuy+SAlyesQ6H9tfEXi+VvMXfTe/kXAywztV9H/0BzdPzE4U9K4DZrKSTtCobMUPGh4c5cokd6pT9xn2s3Yh/g/RGdp/zvWywq23ZVfLqXryPIGbL9+M30mlg04AqwT+Az2zC0amXmW7prcCV20Vk99pyuVF600McM8PfZ1E17HWBEE1ScV41kzUVHn8wZo8r7RTBZsS2upWXkdwafwJELCVDPAJIMNdEYk2CYENi6Jl8cDl5jbFlW3/7d45WFmjQAaOiwZRk8EmkigCnS2YK0C9h+yL3XcvurqZN19kGkfbJiugmgMvKWm8sxpbJgM4I4+mHEBcZa0Efmvj8A6CCH8/B6y2wiMHDUjv6jeIhlZWymntlIRZNqFlTt7bb7NLc6VHvdPpieXWng7qAE5nkncn2NZO3tpP+sB/9Oc9EieMiwvBg1wMLFG14t8vEPeMiCMv6oUJQHHaXx+EL73cwB6E7Rk52/PjPkiR8+H/71JdYzNu/P45juLCHBfBMN1k3yd5sNhTVn7EB+Tc1WiaY0veZRyJKifm58oxqalth9k96wb7Q5ez9ayJkx8deF7bK9NZWdgZzN+IhAkNdSAY9KX7aMl6bmYaS0h/oU7aEHuwW4yK7RRrB4IJUGm4ws76RB/DdZTCafMXgfhlXEYTOcmn3KRRO2mhcKurfVMaq6sbhlj1UOdJHiz7UBIJC/v/OiwFRWI/+xBiLY7NI3m5LIxHgPUo8cQF7iWTh4joYpZ+dVGoEDUsNimbu1qxvmCiqAh8ZZtQ2ycEp3kIYfDqFHxPsUrolit12JPZYQQgQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7bd80c8b-fe9e-468d-34bf-08dd201f9310 X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:34.1397 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: tYgIk0NJj2thMVHZtQ5vu+i3GMjVQ6iPLr1nBZbGkFxwieZY+QmmnEk7HyAlIZXIvIE2M2qBK1ZZ5s6fsqlMwwnYtjcPMRdTBI8OSdhUK0w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Introduce the SCMI-SMC layer to have some basic degree of awareness about SCMI calls that are based on the ARM System Control and Management Interface (SCMI) specification (DEN0056E). The SCMI specification includes various protocols for managing system-level resources, such as: clocks, pins, reset, system power, power domains, performance domains, etc. The clients are named "SCMI agents" and the server is named "SCMI platform". Only support the shared-memory based transport with SMCs as the doorbell mechanism for notifying the platform. Also, this implementation only handles the "arm,scmi-smc" compatible, requiring the following properties: - "arm,smc-id" (unique SMC ID) - "shmem" (one or more phandles pointing to shmem zones for each channel) The initialization is done as initcall, since we need SMCs, and PSCI should already probe EL3 FW for SMCCC support. If no "arm,scmi-smc" compatible node is found in the host DT, the initialization fails silently, as it's not mandatory. Otherwise, we get the 'arm,smc-id' DT property from the node, to know the SCMI SMC ID we handle. The 'shmem' memory ranges are not validated, as the SMC calls are only passed through to EL3 FW if coming from the hardware domain. Create a new 'firmware' folder to keep the SCMI code separate from the generic ARM code. Signed-off-by: Andrei Cherechesu Reviewed-by: Stefano Stabellini Acked-by: Michal Orzel --- xen/arch/arm/Kconfig | 2 + xen/arch/arm/Makefile | 1 + xen/arch/arm/firmware/Kconfig | 13 ++ xen/arch/arm/firmware/Makefile | 1 + xen/arch/arm/firmware/scmi-smc.c | 162 +++++++++++++++++++ xen/arch/arm/include/asm/firmware/scmi-smc.h | 41 +++++ 6 files changed, 220 insertions(+) create mode 100644 xen/arch/arm/firmware/Kconfig create mode 100644 xen/arch/arm/firmware/Makefile create mode 100644 xen/arch/arm/firmware/scmi-smc.c create mode 100644 xen/arch/arm/include/asm/firmware/scmi-smc.h diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 604aba4996..23dc7162a7 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -271,6 +271,8 @@ config PARTIAL_EMULATION not been emulated to their complete functionality. Enabling this might result in unwanted/non-spec compliant behavior. +source "arch/arm/firmware/Kconfig" + endmenu menu "ARM errata workaround via the alternative framework" diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index e4ad1ce851..8c696c2011 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_HAS_PCI) += pci/ ifneq ($(CONFIG_NO_PLAT),y) obj-y += platforms/ endif +obj-y += firmware/ obj-$(CONFIG_TEE) += tee/ obj-$(CONFIG_HAS_VPCI) += vpci.o diff --git a/xen/arch/arm/firmware/Kconfig b/xen/arch/arm/firmware/Kconfig new file mode 100644 index 0000000000..817da745fd --- /dev/null +++ b/xen/arch/arm/firmware/Kconfig @@ -0,0 +1,13 @@ +menu "Firmware Drivers" + +config SCMI_SMC + bool "Forward SCMI over SMC calls from hwdom to EL3 firmware" + default y + help + This option enables basic awareness for SCMI calls using SMC as + doorbell mechanism and Shared Memory for transport ("arm,scmi-smc" + compatible only). The value of "arm,smc-id" DT property from SCMI + firmware node is used to trap and forward corresponding SCMI SMCs + to firmware running at EL3, for calls coming from the hardware domain. + +endmenu diff --git a/xen/arch/arm/firmware/Makefile b/xen/arch/arm/firmware/Makefile new file mode 100644 index 0000000000..a5e4542666 --- /dev/null +++ b/xen/arch/arm/firmware/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_SCMI_SMC) += scmi-smc.o diff --git a/xen/arch/arm/firmware/scmi-smc.c b/xen/arch/arm/firmware/scmi-smc.c new file mode 100644 index 0000000000..33473c04b1 --- /dev/null +++ b/xen/arch/arm/firmware/scmi-smc.c @@ -0,0 +1,162 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/arch/arm/firmware/scmi-smc.c + * + * ARM System Control and Management Interface (SCMI) over SMC + * Generic handling layer + * + * Andrei Cherechesu + * Copyright 2024 NXP + */ + +#include +#include +#include +#include +#include +#include + +#include +#include + +#define SCMI_SMC_ID_PROP "arm,smc-id" + +static bool __ro_after_init scmi_enabled; +static uint32_t __ro_after_init scmi_smc_id; + +/* + * Check if provided SMC Function Identifier matches the one known by the SCMI + * layer, as read from DT prop 'arm,smc-id' during initialiation. + */ +static bool scmi_is_valid_smc_id(uint32_t fid) +{ + return (fid == scmi_smc_id); +} + +/* + * Generic handler for SCMI-SMC requests, currently only forwarding the + * request to FW running at EL3 if it came from the hardware domain. + * Called from the vSMC layer for SiP SMCs, since SCMI calls are usually + * provided this way. + * + * Returns true if SMC was handled (regardless of response), false otherwise. + */ +bool scmi_handle_smc(struct cpu_user_regs *regs) +{ + uint32_t fid = (uint32_t)get_user_reg(regs, 0); + struct arm_smccc_res res; + + if ( !scmi_enabled ) + return false; + + if ( !scmi_is_valid_smc_id(fid) ) + return false; + + /* Only the hardware domain should use SCMI calls */ + if ( !is_hardware_domain(current->domain) ) + { + gdprintk(XENLOG_WARNING, "SCMI: Unprivileged access attempt\n"); + return false; + } + + /* For the moment, forward the SCMI Request to FW running at EL3 */ + arm_smccc_1_1_smc(fid, + get_user_reg(regs, 1), + get_user_reg(regs, 2), + get_user_reg(regs, 3), + get_user_reg(regs, 4), + get_user_reg(regs, 5), + get_user_reg(regs, 6), + get_user_reg(regs, 7), + &res); + + set_user_reg(regs, 0, res.a0); + set_user_reg(regs, 1, res.a1); + set_user_reg(regs, 2, res.a2); + set_user_reg(regs, 3, res.a3); + + return true; +} + +static int __init scmi_check_smccc_ver(void) +{ + if ( smccc_ver < ARM_SMCCC_VERSION_1_1 ) + { + printk(XENLOG_WARNING + "SCMI: No SMCCC 1.1 support, SCMI calls forwarding disabled\n"); + return -ENOSYS; + } + + return 0; +} + +static int __init scmi_dt_init_smccc(void) +{ + static const struct dt_device_match scmi_ids[] __initconst = + { + /* We only support "arm,scmi-smc" binding for now */ + DT_MATCH_COMPATIBLE("arm,scmi-smc"), + { /* sentinel */ }, + }; + const struct dt_device_node *scmi_node; + int ret; + + /* If no SCMI firmware node found, fail silently as it's not mandatory */ + scmi_node = dt_find_matching_node(NULL, scmi_ids); + if ( !scmi_node ) + return -EOPNOTSUPP; + + ret = dt_property_read_u32(scmi_node, SCMI_SMC_ID_PROP, &scmi_smc_id); + if ( !ret ) + { + printk(XENLOG_ERR "SCMI: No valid \"%s\" property in \"%s\" DT node\n", + SCMI_SMC_ID_PROP, scmi_node->full_name); + return -ENOENT; + } + + scmi_enabled = true; + + return 0; +} + +/* Initialize the SCMI layer based on SMCs and Device-tree */ +static int __init scmi_init(void) +{ + int ret; + + if ( !acpi_disabled ) + { + printk(XENLOG_WARNING "SCMI is not supported when using ACPI\n"); + return -EINVAL; + } + + ret = scmi_check_smccc_ver(); + if ( ret ) + return ret; + + ret = scmi_dt_init_smccc(); + if ( ret == -EOPNOTSUPP ) + return ret; + if ( ret ) + goto err; + + printk(XENLOG_INFO "Using SCMI with SMC ID: 0x%x\n", scmi_smc_id); + + return 0; + + err: + printk(XENLOG_ERR "SCMI: Initialization failed (ret = %d)\n", ret); + return ret; +} + +__initcall(scmi_init); + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ diff --git a/xen/arch/arm/include/asm/firmware/scmi-smc.h b/xen/arch/arm/include/asm/firmware/scmi-smc.h new file mode 100644 index 0000000000..6b1a164a40 --- /dev/null +++ b/xen/arch/arm/include/asm/firmware/scmi-smc.h @@ -0,0 +1,41 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/arch/arm/include/asm/firmware/scmi-smc.h + * + * ARM System Control and Management Interface (SCMI) over SMC + * Generic handling layer + * + * Andrei Cherechesu + * Copyright 2024 NXP + */ + +#ifndef __ASM_SCMI_SMC_H__ +#define __ASM_SCMI_SMC_H__ + +#include + +struct cpu_user_regs; + +#ifdef CONFIG_SCMI_SMC + +bool scmi_handle_smc(struct cpu_user_regs *regs); + +#else + +static inline bool scmi_handle_smc(struct cpu_user_regs *regs) +{ + return false; +} + +#endif /* CONFIG_SCMI_SMC */ + +#endif /* __ASM_SCMI_H__ */ + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ From patchwork Thu Dec 19 11:23:11 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914969 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 571D0E77184 for ; Thu, 19 Dec 2024 11:23:51 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861110.1273109 (Exim 4.92) (envelope-from ) id 1tOEd3-0008GY-Ps; Thu, 19 Dec 2024 11:23:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861110.1273109; Thu, 19 Dec 2024 11:23:41 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd3-0008G3-JI; Thu, 19 Dec 2024 11:23:41 +0000 Received: by outflank-mailman (input) for mailman id 861110; Thu, 19 Dec 2024 11:23:40 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd2-00089J-QL for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:40 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [2a01:111:f403:c20a::7]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b2423776-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:39 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:37 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:37 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b2423776-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bXq0wmAxhELERVWndeEwt+Nj/om35zrQ+84GeuEKc5n9mcXm37B4Ojz5bsl71e8ph201BrHh5Kiaj9UTv2B/xMy7hquK7OfcL7cGjMtKe7xGWZRGreSfV48vbR+ltw6VgRzZ0pyGwK6qwvgKl0b7hIdpk/Neh01vW5A63XztwX0UY21q2fULiTKeDLzGTTaNpSNuINJIqey/Q+HOvldRN6yl+HKgCUgzqgH+hVw5bIakuri4NNF3bBOzvYypRfnohBHiEKsSkRt2XsZUxfGoIo/SbH1izIgo4lldx02qLas/Ps4nFKjvNS+o0hESXM8Rktc4zphGXAO+6Ili1he8aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vl6a2ZFCdB7uSAUka3CQGXl5zPhfOlTYRKt+89VAhOE=; b=UnlXPIGAiagkfEFV9OSUSG9JR7i+b0mHEpuNpjAoai2UhoD8aFasckl/P2dpzQW2SmkwURYZwC/EcY/QmxxTsdGqZC1mF1pxiyVd+YrnLFFyB+epozl/DSlR2brI+o0ZQTWt2Nddefu57cMjgw9IopHvPnFm0yOykjXGzgiLIvTqV0CvWLRercDAPPnwl4mM0oCT5n1q2odMP7ual4i6XywKdjC5LTJOodKDwlfKB2nHke36vH2QimnijeTUJHBaisJRb/KhUgOoSouLMQllYIBHC3JUQr065n68kPqusvxczzd1r6o56s052PokfnHjA2Fg9rQ+xyutzqBp9biiMg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vl6a2ZFCdB7uSAUka3CQGXl5zPhfOlTYRKt+89VAhOE=; b=IrSZ20TEnqTZxX74TgBNTXBsIxapUBMi0VQVjgmxivTmCuOWZA8Td+f2//ceBxVDMLKxFLDUsaENJ/bA5i83F+a3GVGbNcOeSuYLTjAucm6fLRjvgE5A6Bf6WVDbppL7Fvo+1FFbY9CNqZTbKNgiO794ALK6ezqprpLpVtQ0L3qH0UFTWbuRfAnForxcTs+btPVBoPw2qdL43ApmDiRidUX63gnQX6ov7nJLQXwafIlS4dDT4k+IVD+FJ/cfFhGdHXh+sYFL/OhAcjag+mVSItHlQiU8QT4i7ygK4TbUdjta796WGRYWXKSdbdPGh/ju6qyIuQ1gGIJTUcbIr3hk3A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Julien Grall Subject: [PATCH v4 2/6] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls Date: Thu, 19 Dec 2024 13:23:11 +0200 Message-ID: <20241219112315.2461048-3-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: 09499d96-fb3d-45bb-fe50-08dd201f93a7 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 9owx1PcL99jevXt75Sfru1/e5yXeizbiVeYLeIAVIEn4HGVSSY136cYlG2CF43m5GXoU8xWlyLUknVchvC/kLJppChLeUqZ7y+d9lUZcKC3Npxn8oCjyXftNzopNV///7cPJXlOZGy0SlaRRdLNZTf6IqF1d/wIGmhSEBsj3v5/97ce4Rn16bEY/7EA4plwifJxvfHxmbEBEHsamxJ97ofWYMaPUAMLfRnZ3Wp3E+KxbgbEWP0WEL0a6/YGB4dBZ193iPYhEgjXEbIBN8cCziZ4rBfNdss7nRXQQKvTlFPyJZPDx7uvz7fXe0Fb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SBPORfiw1HyA9OQCkp/03nZqHTfWOTTcBJ1Xy0NUnQrZYw7tJ3fxg2Ue5Farpt3Ew X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4SPRMB0023.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Agv5RufhN3Wy3eEeOzXVIycdXX3R6+Y1c6G1TwzTPzl9sfvYnBCCAWEFRk4J5+OFS9uDe3/hA7XJwZGD6RaFHtVpG44wLti7HVzatGzRoV6bg7WrhySO3OMVIVYQPNPH1HbGnvfWNx0P/+NLIGfEIRkB06vqDhE2DHeovoW4LH4+l3BT53Kj7qRCp3B3jdCXG/spLCuyWsOrqvHTeoaxBVJPPIO3hlLGdR6+KB//2zTIBrCMFkYht8eQEdN6xvGoayJlVnRNb8BK76b5Mw3g4e0NH7kts/ksf77FzA4DFBoBnlxzRk1VMn84FXiX3Wi1QBCgYETxYnikrZxdouOVvIRAYtYR107QKJeJ5tRRMBZLqwLW7Zkjxej5QvXWaTl1S8w9Hgan5OcwTPuSlbiTt0WFNJNEaoD3P131ENIftydgkAQxKmYPN4uxVrPDWHnJZkav/IqNE9V9mOMhArNXmsLJ/hTLOweK1K8QfpINBBSdvp4kVI0MYaVPT5kAuXRJcDRleP4i5hTDFls+xdXVgjC8mpgc5iTe3T81eG2XeCHSwvp6vkye/hEDl9xiYn52adK/uHiea3CR5TIxHMh84l2+pNbzVdj27HrZ/2U1BIZdloJkjsK05zLxmQOUXHnhfK5hpypWQQDcN2wlDNvdCPQoVdyAICro8BouZ/Q1vux4fSZ7ZASBsV2o+/jOGCoRWe61wUcLo8TuBTX/GC0N1yb6uQlEXpnnLYuxI9MSZCTUsf1Eryjj1DpfESlgfDh/7kd2DJc6NIOURlRj+IIr1yzrOZLYSNLV2LSl5WfHjrCmZvHwrWtI1994txU6EALKuEtwEQ5gIIbVQcYy/9+lKD3lyajPxdupi+76626J73RBoYjSF3ZqsxEQ1k5fmYlD2MlzHtkGKAppQTebdf1AD9idSLBnpA5raDfKAI/900j5CIvbD1Gp3l2mdyuTZUnFQqnR6tujcStGtC5IvU8OX4ys9DVLBSU5p6M9Jw/Fe/gszFWrYA2oOyRjHu1KgF0ANoPV45XUxHhp9sXAZLt3K9YP0XagtzbXHySDfFH/BN0vvFFXEf0aKQQJxnOqpGg8hVYqwoGx4/zVBX7QoYlUG8vdt+xQD92bvCwJbSRTcQUWj1lbXoqWmCszZKH41b8SWj3iwmcez0XMqbufmYaWS3RFKTgRNYvWne13ntIub8/M3Tc40OuKWmj+eGHihLjHZY3bWPbH4iDExHyfACh6HUDu6d7B3KnrY0d/jj654rIiQBCEzyYZAsWnb57pgLhrC1IPfmfvPAIU+LRAjRrEkJeG6CEVZ+gPKiauAl7RPTMvrDgex0FLifOpKD6K9dn1BcWS/V3VhbU7Wb+WdBHlrHukbKDtZcBj/HNszRAPJwi4vG67TDif42hhkgA+IsUIlRzVlbm4WpS6UNZ7mXcdzS+z9YUanjsK8se7lPz6IIIr40TMgBIDAcPsUy55PosFh1A1Vty10RFW7nQMc7tcswLOYEDIN7IWbwopL5H3Vgqils3c0nEWpU0D0f6qd8/p/P3EYh+dNrqNUxF3cHqxaeRp0zqGoPgX+eefaMpEO4xhkhSj7kK+egmBxKI6TuDH0ukyifbyBB/cpeRFI0qNew== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 09499d96-fb3d-45bb-fe50-08dd201f93a7 X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:35.1356 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: yINuT/MC29Taswd4lu0pbGfsr53IdC5QOesUADz92PIj39aQaffeXz11m1S/5spg3rKLEkmABPL7iD43DDzLeIoNmtUcNuMK1AVpDuI52is= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Change the handling of SiP SMC calls to be more generic, instead of directly relying on the `platform_smc()` callback implementation. Try to handle the SiP SMC first through the `platform_smc()` callback (if implemented). Otherwise, try to handle it as SCMI message. Signed-off-by: Andrei Cherechesu Reviewed-by: Stefano Stabellini Acked-by: Julien Grall --- xen/arch/arm/vsmc.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/vsmc.c b/xen/arch/arm/vsmc.c index f679cced7f..62d8117a12 100644 --- a/xen/arch/arm/vsmc.c +++ b/xen/arch/arm/vsmc.c @@ -20,6 +20,7 @@ #include #include #include +#include /* Number of functions currently supported by Hypervisor Service. */ #define XEN_SMCCC_FUNCTION_COUNT 3 @@ -224,6 +225,16 @@ static bool handle_sssc(struct cpu_user_regs *regs) } } +/* Secure Calls defined by the Silicon Provider (SiP) */ +static bool handle_sip(struct cpu_user_regs *regs) +{ + /* Firstly, let each platform define custom handling for these SMCs */ + if ( platform_smc(regs) ) + return true; + + return scmi_handle_smc(regs); +} + /* * vsmccc_handle_call() - handle SMC/HVC call according to ARM SMCCC. * returns true if that was valid SMCCC call (even if function number @@ -288,7 +299,7 @@ static bool vsmccc_handle_call(struct cpu_user_regs *regs) handled = handle_sssc(regs); break; case ARM_SMCCC_OWNER_SIP: - handled = platform_smc(regs); + handled = handle_sip(regs); break; case ARM_SMCCC_OWNER_TRUSTED_APP ... ARM_SMCCC_OWNER_TRUSTED_APP_END: case ARM_SMCCC_OWNER_TRUSTED_OS ... ARM_SMCCC_OWNER_TRUSTED_OS_END: From patchwork Thu Dec 19 11:23:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914974 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E8B3E7718D for ; Thu, 19 Dec 2024 11:23:55 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861114.1273152 (Exim 4.92) (envelope-from ) id 1tOEd8-0000xR-Ct; Thu, 19 Dec 2024 11:23:46 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861114.1273152; Thu, 19 Dec 2024 11:23:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd8-0000wy-6v; Thu, 19 Dec 2024 11:23:46 +0000 Received: by outflank-mailman (input) for mailman id 861114; Thu, 19 Dec 2024 11:23:44 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd6-00089J-Ql for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:44 +0000 Received: from AM0PR83CU005.outbound.protection.outlook.com (mail-westeuropeazlp170100000.outbound.protection.outlook.com [2a01:111:f403:c201::]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b43a3612-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:43 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:38 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:38 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b43a3612-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=urH1RkzBUk+6oYu9Sp+9O7VS9INPRNMrPcWOH4cUSzBbQnO2ece4LYHe9RKx/KXFvAqrd+Cgj1IXM/FieR2ixAZpG8dQ6x3eSO1D17Z1ZQpctkKQhUsUAc1byBiDPlruuYiYZAEVcYYJD4cMaHmUDs4FotlncNKmoAVg4B+DypqCVB730O+ciH9eUaRQgbyn5NO4nGssP79W0eBRckLagnKV+izhoX9np7zoLOxgnNKP+PhBW+SlimFVOP7h8NYXc2bxk7HaKirfY/YD+b7i/PRbnHH+rmJOZ4LZDF3NOwEdyTPBcJHsDRC1rnbSRsAEJezlADiuvFI27vNEn7OKHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=1/W+hjvEQAfrqy6fE9YS8QKciaTcdeloCtPRibShYIg=; b=oIhCr1MjOVLE8ZLKBg+WbH/CfOvO9aUkYwY2URLduJG0V6O1D+Abkp9LD1AHtpHkNGJK5QD4l5iBufAA8GJ2QxB95ckA1ja4EUuv7OmC2AtBB9TfAq3hPzfc1FAAfoKuILZOPuQNWxxYVdeIOoUAuy7MwjfJnUrHJErcnAEDBAFviwS6VJHHJlMpewaOQMGjEifveJiI02Czmexhrr9/o21moYwL8xdnD+fY7YoJGeykq21U5PIdH/jucoTfjx+IDoYQa1M4Z27gV1GLBd4OsLhTzhyTQQPVnHDxHVIB16PGdHZxKAxPPd+fH+Bsb/M3Q5LVoXpefUPsSpl24g/mLg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1/W+hjvEQAfrqy6fE9YS8QKciaTcdeloCtPRibShYIg=; b=IOC+ylazakVlbPGLQ3LZU0v4IcE5VNeoCqlnqeigpgkeGCc3ZgipzSKUqOMkKTSsu7spBoTPEexomzTfogBOyefswgzXSHuKK4nLLLSI27VFFsxuDLG/i2wdlhuPgBwRWTfwlQsIqqniUgMwah5qqYa6DlBqPAhBYz30txB2hY36EoPSCaZOwoXpcV98r5YpaoV7o39c+yAPpgUp5zfDCOwT4eynuzlcqQ7dJkTauyIoYYAtnkok1qqV4k7umd+D3QCPrS0b6brT2YaRfObtwDW5qzcJXC0EI8367PhseOiMh/1gQj/OxAOvJZtPNLRskzxijohE1EdokANPd8+2iA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v4 3/6] xen/arm: platforms: Add NXP S32G3 Processors config Date: Thu, 19 Dec 2024 13:23:12 +0200 Message-ID: <20241219112315.2461048-4-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: 78eace15-e1aa-44d0-b28d-08dd201f9435 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: C64+CwkbKASyhUzKmCrrl8EfEFFjBA20RmbxA7AHcxrh6qvlymEfgiBvK+/0MqoatiQ9LyP+KSbeaUyIzNq3tCORlzJ+WzC1l0zYnUMVWOa+kk7QqUlUpHdCRhc9zO0ZeKm/9yHW+bVyPf4ov0RU+UL4soHUTnOiiKh9jfQOgdk9s63AL4J7EnGdSXbzcGEJPsdm7L2VsATg0n3pep9wBmACRBOQKuIEPNS5h89s0heVQmORry3i6V3YAkYF7bmt4+MKO/g2h+e9ZxG5SLNxv4Zoim8pbvyCQJJP+u+1AMh7lG9zUQNFtDGF6ov45yp9JZ2M0UcO9ujodhkbB60r6Z3/Zv2DJDAQmFhS3/loKTulzL8AUsU4n+xz0Guo0aclc2AQai1FeH9qj845mO+9Ycha87BCFGQyMRkGv3myFyMxJ436rl7t1hmmaACIJ7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;IPV:NLI;SFV:NSPM;H:PA4SPRMB0023.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4UxHNc9T3b5o6zHqgZ5ZpIuekFfTLaPbDSWycPKDjtD5HKyAL956ME76rUlhA4I76uoSjot069A6j/bSxZArK001otST+cdYHqnNCGR+SywK8KYyy+OYI82JJIkjNrsxZxBjz8yzvRuA+GkEReNBpDoJ/lDXin4aPuwPMIWjcfM+fv/yXAArfuSasgfwpPXECBzsfufBtGPx1yka0KjKwSISgRk1t48TFe0/lXOVlLNEmxzZ+SdxN3nNUpurs7ObotgEPCJndaBW5vjF1iD+Ta/wyRpDdLh1Kk1LlFe9i4FIPrq1hPj3ozGxqY5VOP+Mn8NvQStreRWMF/U+XTPlWplbxumPERi6Fgx4HzC4F/zi0Yk5sclQsRnvMEEXvy0/qnS1JQ01yoxZUSFaWhW0rOhnHhWq4mydp77BphwiTjqiz+9wHRWNvEz0BUcmI6k2SV6WY6cPkKKvTdkxAIIay4otkoI0Ff1xPG2gOexVyPlh4333pEpbKD4qSRgFhfbP5stHgW/AQAsJWcUfOI0rYtI6MwnhAbCamcKOCfW5PyOHCs8Oqw0bbrchMQKG6gIdPp3S2kYjHieBDam+GJoWG92WpDSXc/Dk9bmr2SPOpYsjdkTu833XVMSHeW1aCcU3FDOw7GYl4KUWwWJu99J/xFch+z2bhPuMVlyAjHysEJ1smQzuWVMlfWlPzSWPabik8G/+SQuMM53Fw68LMl+0R3Dvl74qsfJLCQujGOyNj+GKoAnxpltcz/UX/qB5f9xIwACnian8xHs8Hk8oRESfmOyrx89r0V8Wfy7eIdUBn75kKyeH4GrYj7Nhqwgwj7jG3ASxhVo86YtnpWdpo0yZs4lNFRvRj0YoULvgqsogJWhYlLrcqDiAkr4wrTFVeRerxtst2w9z5+bDsAvVKej3mChohW2yC5gIx3x1DV+ULqXsBH6oBQPAqbXCUt7nhQvqUnohUFXLRsirg4m6aL3IngmJVSRzOXPsdafv0w6wkW8JGB4S/wV33TW2W13JOqK8268BmYdCbvXVvAZuc1a4ewUeRotvSDPwStNe6l7uqwyvno6h4pv+8Q/TzkCuKaJKkonvOBESheb15sriTaqALv3GEIctxB1KiRQikDu1L11LU6kFV7bKPagq+pILQV22Fzgar+pMLU38jzuJYwgztLSJtiZUki+F0Na5N3bVeV/LoXygTBwnJsAtMsf0L/KyzAYpD8S0pqj0VJZGzkeklaMNePUMVKUmzTUcEG+BjIc3EGMhenjbkD0vWHSbYI35GNNsi2wTN1Pl2fcRHgD7qmxogpwLOnLdungYrQuZLP+IjPM4rYMBI/oUVFND2fUfGKOEh/V9dkriAOCiBvOZOEe4YNrRGnqKGW6TeXaspp+5ryrxx2aJze6cHVeN8iE7hEW5Jguq0bykL5Bc0qe2ExTPOUEJ8YkS1XpHst3C5OOa1THCLc5vzdJHCH2qyD8T06yR6XWAWkK7GYaKLhxCOk6OCLcPGPzbyZSk4BbBno38LXY0mKLIHmkkL91+rBm3NHdqJ68SGOH5rIQeTVTSM4cPYUl9UyAdOCCQj2fPgNyq80AI7U+LG3D98wR8Si9VeRm7qxmNcve3uIsbRMwZSA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 78eace15-e1aa-44d0-b28d-08dd201f9435 X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:36.0655 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Jg6FlOgjuR+ticnup6XPmxdGRNapzwBSh1cjy5KO68cUFRUQm/ohQtllV16D8swoC3/gPJNS2S0y39yMl2spbLz9cNuKusvMU5mmj6HphsY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Platforms based on NXP S32G3 processors use the NXP LINFlexD UART driver for console by default, and rely on Dom0 having access to SCMI services for system-level resources from firmware at EL3. Signed-off-by: Andrei Cherechesu Reviewed-by: Bertrand Marquis --- xen/arch/arm/platforms/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/arm/platforms/Kconfig b/xen/arch/arm/platforms/Kconfig index 02322c259c..6dbf6ec87b 100644 --- a/xen/arch/arm/platforms/Kconfig +++ b/xen/arch/arm/platforms/Kconfig @@ -37,6 +37,14 @@ config MPSOC help Enable all the required drivers for Xilinx Ultrascale+ MPSoC +config S32G3 + bool "NXP S32G3 Processors support" + depends on ARM_64 + select HAS_LINFLEX + select SCMI_SMC + help + Enable all the required drivers for NXP S32G3 Processors Family + config NO_PLAT bool "No Platforms" help From patchwork Thu Dec 19 11:23:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914972 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2EEA2E7718C for ; Thu, 19 Dec 2024 11:23:55 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861111.1273122 (Exim 4.92) (envelope-from ) id 1tOEd6-0000IP-8E; Thu, 19 Dec 2024 11:23:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861111.1273122; Thu, 19 Dec 2024 11:23:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd6-0000I2-5Q; Thu, 19 Dec 2024 11:23:44 +0000 Received: by outflank-mailman (input) for mailman id 861111; Thu, 19 Dec 2024 11:23:41 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd3-00089J-Qg for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:41 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [2a01:111:f403:c20a::7]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b278c8ef-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:40 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:38 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:38 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b278c8ef-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=WNKwD6UqSYkW/MZ6v3FY1+O3rCl+SF4ToaWdB8bLguFn5chHF6mSaOyedXnjG7UfYZe4WnVX3DN0gnJidRCECIsblMaq/cLf2mXq+G0AY4wa1tif9b6n8mugSscAAl9TrU99vw0gaGqa8InMhu5pauPu131r2SW+QSIwVHmp2euLGY8p0nOYUncqAcMwMz3K+K36JG3OqXPHkNTGIwuNw+eruwnn8/p2v0ColOEwGsWeT7tv25OkkTV3qqRuE6AgqFRpT9HJpnFYjk9+3OUfZvMPXy8Ho5GbrwrCZfkp6GzmKscaQgkSPtDQ/hiA1z9BAWaP3czxu+a7K+fl+2dg0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MMUaJq6ve1Tou6rEBX7gkP59r1mDg0K+CG0KwNKwM5I=; b=RFyWCFJ0Z4VtkQsap1BJvBPeZOETI3ueJKek8KU2W3QRbAiV3kvWEv9zQYKq0ZUf7nYFhqgDYgG13yI092sdDqrs8R4xVyEpwq4mS29vXMFrkDK4sjACaBIw7wK7ON1ksM6vIfImdEy1EVa0PkZFjR0NL12MEifE0mW40VjFmerBrcJ6/OYfVJ4bNH+Ey2dTgSAKTv53UsedY3w2GvFbbV3e3S6uQeQKlKNK0cigCM75gxH7IwN0NU0GBPbV1FFHVEzqAGQ6OkTnve1Bwt3N/+IZUBegSfUHDC2HMRecu46FNpd0oHPZDfPUn51b/c4BMHU1aTPS9mt2uJPz5SaIQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MMUaJq6ve1Tou6rEBX7gkP59r1mDg0K+CG0KwNKwM5I=; b=NqzEBju8LouqijJTigN9UpM3Ps9rJRNWkGM/J4e635i0XVu2mBFNeEImo8qX6UsnH6MDQV6NnjBgjAA0nA9I2OffOCT7Lhd3dr52kmHWnf7ad6+I0tE4UabvTxn4ylI62q+VT+S0um+7bajNGvF3q9A8oc2gioxl8HMu5IZ1Hmnt8enrg8CPAuVa1WUvaCuFzfkKnVSkiNkxCKyWJrThdzkTFqJlQdA55DRG1QXqL02dBQdXdnn80jeawXnahErQMGN0LEh/Ytbev8TeR6d8SGmG4OnUtcVG39sq0hQHXpotFowOW5+/P+XOXvbUhlSNx8GRsvcvByDqbEerQuSX1A== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Oleksii Kurochko , Community Manager , Bertrand Marquis Subject: [PATCH v4 4/6] CHANGELOG.md: Add NXP S32G3 and SCMI-SMC layer support mentions Date: Thu, 19 Dec 2024 13:23:13 +0200 Message-ID: <20241219112315.2461048-5-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: 90ffc055-fad0-4332-b5d9-08dd201f94b4 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: /eE8bZiKVFMNEkukrSrq4N10Unuyppeuzaix6fJ43ZbfHgTJ2HMvK4+QumGB47fDlOXmES1UFNTm/lRFL0m85tpsz033nuHwpxtQ4BjieYYCrWEMO2ZVx87CAqMfJt9/QPqkBii+fq/0rKhBgOh9JDDQqwGmzejmhb99ej8upz0hDM64cVjVuUr4FDh6tiDLkwxTjs6tQzneAp+2QPc0309dRu+mLWcNH6QXc9na5WreFvV3Q7yA76R4Ri+52DpFWxyzQfsMkJsBeW8enr/dyqzlMkdmY3bL7dDWA8WRFzTKTlYUBKkZQ3su6zoYSp3i3R/KaysI4lUIx1jheyDQ2ApqeDsXRI5Hdv2soY1K2idvHV5fIIiD48wbLXpzvWj/mpoQENIMYmMhw7I6rgxr9VCzk7yBvSYia3v3zP+pmnm18Z7Ij2rVnuf6yg3EtlBOflaJP8gE2Q1DzjJsFPyxfKUlD6x2k1IcW32Trv5PZBI5bTFva4Zwc5BbgfXVpiXeCTeQkj2OLS9eYFuRA8VeuxLP+RwBYdUER2nLhVtddMNn/VEr7kslTSmmArMrLvA6hXV6t+g6M02ySCxJfmAmZD2nQtCpUzFv2HDsqE58z7BlLRiKsKnv/paZVO2IsecZvPmg5Z4Yt1GK9tqx3LOzqjoUnAVCFm+Lkzz7oJeS+pdNDtMZvNQ9+uWq4DHpiiKqgxGYkonwXd1VbNrflMBbGno8ILqc+I4Y6TiKUqjeNaovd/AqUlDlv+GNge5gyg7IEML3Ir4tCDcAQnbfYABCQK37DKqQkrnEn6akjpRgAyjIIGJ2kogk1PlhgIIh71ZF88AKGiE7gWn3MLKrXYV8sh7xREkOO9Hp6UInxCrSycj3VfMRSw/JP6G8sHY8gCmG9qgGDknL3WoGdwz/WYoaetHwPGvRhLCpZxxWxJlGCrZfzEr7Du5uWPOCD05EQTSM0VtK1DUoNjYqPrpNZoQ73MrrlxbTnFnqbyF28tTDWsxEL3pkVsea+tbrU63eEgdKS2SNAc/HX3JKHm8xLa4mNG3V5BziByJqNl3flLKxm8wV7Hngh6AGeoPMB+7W1WTqbARctAmWHFli3HZT1xO68QD3SMokKzj59mZ8ZQDB6AmYF5MJWfP03gWosdTUIvKbrXbpNgYFogTDRg/OrlUVzbUNrg48MYfXby8hA00uMe+7NIIQvOoZdR95uoE7NdJiVpoWKVx0/vdyuDo+wkHxs6vlrQ+u+Tfxg31P7+IEuloqAmXEFhcH7WMt5E93PwwNDbIo2TOva3YN9jraE2gR5NJ2k1Q0ORmRgOA2FB9tFv83a1D610/0ff6MqCw5cUapVCPsWjQSuXWTDe/UmEQU/ekMZcelqibfnH75RUr30wW9FVTmF7sVlNQ02qkiXZCl X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4SPRMB0023.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AGutJgO7Gf+eqtnufWV3vVyZYA3+TZ4h6QTxt4/AtKKFn4argOgNYY8RZhrXsknlHqcv7MeUNadMJcUL56Yzge99tk4lVSAInoGnAUXWE9xkff7/dI3nCyIf+KAxLp3HGkMtARRMffeoRhMIh3KARh522uoKyh75LH4XMUROFyQVTPa9DQQdsARolK+UDM6yIAaM6NCastq0UHtJizakP0UmU6pjjKjpAJ5GkaO1fwjfAP43EaaJ9XS9GwuwZAyazLFWBEsC034hqZdsfpvQ8v9Lfni9pGlEyegmMR5bFknIMd5/cVuZfO7RrM71RPfg27O70YX7JCwY/mJPV90vP9GpfOzowM5NiPSvq2tLB2rWaJiUFPRJ78c5NSSoQfpHfxiBbhhP/lzXRADPnLjG4gXTdKjETfRbv+Q1BrzUW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VI7OSz5lVHQB2zgAoZsWh8oTvtm7stVL93Ncw83RStiVmO7xZl4P0dJR6o50Pq10TJcwdRRZdfmg8/hzp7LPRicgpnWXiCm/Z8Ii9B04jPbnF5JLFXHqJehj+oA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90ffc055-fad0-4332-b5d9-08dd201f94b4 X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:36.8827 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Kmqnwft7PDrExYmMotRhpKZdWMMZmPlB2cMsQPPYJLsw4B+8Ftc5YIAUrxWTFP7+b0RfJp/rBjTpWATizhFTJX3TjGl/qh6JPgFfQfdjclo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Signed-off-by: Andrei Cherechesu Reviewed-by: Bertrand Marquis Acked-by: Oleksii Kurochko --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15f681459f..bda43b1efb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ### Added - On Arm: - Experimental support for Armv8-R. + - Support for NXP S32G3 Processors Family and NXP LINFlexD UART driver. + - Basic handling for SCMI requests over SMC using Shared Memory, by allowing + forwarding the calls to EL3 FW if coming from hwdom. - On x86: - xl suspend/resume subcommands. From patchwork Thu Dec 19 11:23:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914973 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 19F18E77184 for ; Thu, 19 Dec 2024 11:23:55 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861112.1273127 (Exim 4.92) (envelope-from ) id 1tOEd6-0000LV-IB; Thu, 19 Dec 2024 11:23:44 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861112.1273127; Thu, 19 Dec 2024 11:23:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd6-0000Kz-EJ; Thu, 19 Dec 2024 11:23:44 +0000 Received: by outflank-mailman (input) for mailman id 861112; Thu, 19 Dec 2024 11:23:42 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd4-00089J-Qi for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:42 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [2a01:111:f403:c20a::7]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b2ab163c-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:40 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:38 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:38 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b2ab163c-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ROtRYIQ3PqmooNE8ejhwSyf7apZFqZ70NhrIZL/G6S0ACoGgdO4sp2oMctSZtGJ+dID/8YvygkWvWJt1NJXXMSRQ3uokPa3l/GGfAIBBnYzrudO/qC0nhvrjyLLvPy4zd44XRHHc8o965OZeRY6aTTRCfLL2j3UdccYfXkhu9pf4JuCGL3hAIFOg0ZQws1B+T7YQ0fHneqyH9hD4O/rSUhoP8RewR9pOAstdO6FHzBDAOuHyPbZVqrWVN2wHreUxrqyxdA0TNx3YHnW+N6uEjDzhDB4+Wy5pvMSxOjudDXu87jQrM4tbLDrjqtAWbdXi2uyKL9bvPvHrUj1GWSGQeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=yuw7cnOM3mI8njSlNPRlEkwpuzbqcfYC3MCc/8dj7Xo=; b=v7xGyYWxbwBZT4s5qAP/p8tHqIM4q2ZGItoZ+q36BDRguyMn5fvYvtyc7KT7ZeVSalRsGdS9+D4u0T6PpOaFml9cu12LYdRqZxxi3lAIsAAKcb3whrfxX0wFVZUMtTn5/p9+fn4mW6Xa54jr5nY7XEEBxA8+8uP5furQ+lo1Zwdx0MrsuS0zMlD5LXiIHQYC5UGw8PCjF8UVFlad65fxF1lozbinxb9/qL0cRT6+jooN6/wLsp64j/TYIARhG2wS1wdJKpaapl+pDRrTyGO91qaBcZk+qIGx51p2z8UE56XeS5drEYb6im1XX/1evUzIBejoocL/LuyBLHi1OI6vTw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yuw7cnOM3mI8njSlNPRlEkwpuzbqcfYC3MCc/8dj7Xo=; b=UKwQ7S8wdL5cc7IW/J22zkostYVdG/KzUISzVbRqGxgJ2TlfuSjyibnm/1VU/wGQmmGF8cBY17w/gdnJqKKePdvzW8IwqBq4XkRhqMXU12TXmAA6zYHp73HVHvJ++vvXN1rQRG9zjtBrYyJpdDSYxC85R4cqOZz2t1Bikg7xBlFpqoEFbX7d6Df77UPhmuS2QmlMWlceSdYb48Gf+CWsWpJi2Dx/dHa5Erenj9ppCYe/HqJhK/XGNPS7OHTQqlQemVRCAy1tzfB/jBdGnQt9TiTLQ6TvoPayR7bX9Lv2qaPK9Koo3fqkVWYhHrRSis9DWX5FWaDQ0BukZEkcOx9Mlg== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Bertrand Marquis Subject: [PATCH v4 5/6] SUPPORT.md: Describe SCMI-SMC layer feature Date: Thu, 19 Dec 2024 13:23:14 +0200 Message-ID: <20241219112315.2461048-6-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: 147d0a65-5201-42f0-8741-08dd201f956b X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: 5Hl8bxjNXT6oLth6yT8TT7VQBxNQPzardcnuc6Iv+n7F3g4J6uSUPRPMl550BElEA9Wo6iLtvXJUujvTrdXvqd/VRNXR14aszYhSDpUn9Y/IcaA0HDKeskCDEtMh2ItG6LzFXqS7EdqjJFMqFi88zLfF+Ry+KJqqos5UC7eyEvYqpqjfqzWqfWMKzKGq7w54YLhYS+sRCAbN53khkvmNOVen6OcO06KlHf//S2d3Xp5FEzIE6eym2Lk9EgS2AXMYJFKlxxfNLjvIk5e/rzjCR7VtEh8giRzpqIJzTWlN9iBbnWU00G7mig1EyTrc+R3jB8XhRBYre/rG0u+Rg3B2SZL/ENOyFbHtGWwDDuhxeOcE9c9i5U9tA7aGI2KlAMfIr3xfSxdJvc8sSIeNF4CjifvjzvTEgE8iI7rG5HkTSY+Lcma8ZMbmmn1ly5rkPusvit2QBirWyTd0hJs/1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eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iMp3YRZa1Z0n1XEzbDBsJZXBidCwULkRxIiaY8wh6RtBGzbC8t07Ale0BEdU5Elo2fXw8dNedThCv7G8sdrcnLUo07uwxtZFWL0VzZTIEXnbDJ51DRdLK8mG3+fOwBc+GgqvUXEwWLIguhzE23KwqaYyn5yOg/JHkJhQUVYvTsAYtYbWeYdFOFkoHzZ2wCyCBRkcO3sSajuDgtuPk4SaLvgf2MYS60f3Owt8brnrVEDBpM8nNQ7kbMOaFXwG5z7FuarSkF4smRn3Dx+yaA+rKu7NNUN+ud/pF051/1UWKwVzo8vGC8RyrAy83885TEqJVatyeJgS4T6Z5zEOyQLJ+54Vt8OW/lewOCVNCJBk9YA26PndJy54bsxBbzpe+kDoiJO9eqY8Owmoxd8gLTOZ+pIeDGlPst96f9WJFhzE+a4bfeqeyxr/kdRtuXOlSI3XIvcca1tk0RHHfcOXdTCfPCixN8omkTU7bgDTDPDMb/N5tja5RQTFPcqQBbI2v58YHazP2RX9W7tnOnrYvFk+a5eEw/NkqFY6asa89QcfepqzYuBgXWz3HybVa7sWFK8m6JPBn0OnSMSKyq5RtcI/QzNdvahWw3XuAMHwalzUTAj54ch5jenqhlp8dVrArG4yXVyvoi3aqVVxoqAsg6tQcPvWO/KyAjKUXeQeevPk7q9043RRGH/t+TblIX/+76ENXoCGUXyMtRLP1hDNdsL7TjFLvrHXAiJV9B9QL6do6uwSlRjHoHen995x4EL2wrh6sQh4PZFIrYiT/MewElWwVkP8ECZfOxiIQAsrZ+Aulnp86/E1Dq8e/LNs92Qj5E/gHYw+rFsoObL+fIHYdxP8Rh0cjXQFguwh3UpIPwy3hVnMgdnfMlvUr6I92knzaGm4GlkInJs/aLpfeQiDeGt2Kc8psCk5OZ+sKiFBNvMHpHfkItXUWNFqgW76q/aOYWSCQZOFrJwkNfMeSQ0QnPkAApaNnCUq9SdMckznxDP7TzFeXSuYhyej9sbyjWFrcXhwcYTrEmCAPJPmtCZQo2EgtrC9SvoWNm8cOpVAe1iNUZOwl/zBKrLNPdMTl1ROm+sfmqDprApUs7TAbpgcCS7+BmLkcbBgiQPLjnk0UpQg2Aktr/Y0gdmhNdZUhXoCrLvTpdD8Od3AyafwT7RC4HukLL01qYhTwAZzHb9Xv6GrvHamskm2qOZ0gvA9ka0SdaoCwEqgSn3sn7BkJ0urwEYTMFfpK9+ru3lacDUh52t+eKMQ6YG+2sw35SYIDeuf6lfJ/FbWMWyVkdWof2yqtmOG7bLGbFWEhmfI+URVAD21RLlXWpHHQNVd76zhPPl6g4ZohUHLdE9XujbYak/raDnSRrUcko5C+1HKUbCcf/CxyGfdZYJKYaunuUHiuK6dw3JJAORke4dYkbcgZCPBjkobSK88Zv8h7jsunYkp5E+Lmm8jPSJ/hlOmLzVo2XMYI+B58OnjpVJpNF2uv1hSqANpXBmo26g+OYDyyq4xAxO++P/eDt3IqzFjldk5C4hwdmcIA8SY9CAfjl40xnf1kdJ8mIHRkX7g4U9j/0kVhPdlNArYKu2G7/E4CBvAHxMy7Z7YYDUZI4FqUv4XHuFrxsfQNQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 147d0a65-5201-42f0-8741-08dd201f956b X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:38.0989 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZjRqoNVUn3UYS2KfLq9sKoiqL5ahLcsQ7XOQ7gTHNCYjwUmPVTmJCPy3akLpO1m2bNodo9e1OH941FA174ZSGvOxz2/7rkOFuZrF8VgIjE0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Describe the layer which enables SCMI over SMC calls forwarding to EL3 FW if issued by the Hardware domain. If the SCMI firmware node is not found in the Host DT during initialization, it fails silently as it's not mandatory. The SCMI SMCs trapping at EL2 now lets hwdom perform SCMI ops for interacting with system-level resources almost as if it would be running natively. Signed-off-by: Andrei Cherechesu Reviewed-by: Bertrand Marquis Acked-by: Michal Orzel --- SUPPORT.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SUPPORT.md b/SUPPORT.md index 82239d0294..1f7867bd32 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -928,6 +928,14 @@ Add/Remove device tree nodes using a device tree overlay binary (.dtbo). Status: Tech Preview +### Arm: SCMI over SMC calls forwarding to EL3 Firmware + +Enable SCMI calls using SMC as doorbell mechanism and Shared Memory for +transport ("arm,scmi-smc" compatible only) to reach EL3 Firmware if issued +by hwdom. Some platforms use SCMI for access to system-level resources. + + Status: Supported + ## Virtual Hardware, QEMU This section describes supported devices available in HVM mode using a From patchwork Thu Dec 19 11:23:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13914975 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 47525E77184 for ; Thu, 19 Dec 2024 11:23:58 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.861113.1273134 (Exim 4.92) (envelope-from ) id 1tOEd7-0000UG-2Y; Thu, 19 Dec 2024 11:23:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 861113.1273134; Thu, 19 Dec 2024 11:23:45 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd6-0000S5-SG; Thu, 19 Dec 2024 11:23:44 +0000 Received: by outflank-mailman (input) for mailman id 861113; Thu, 19 Dec 2024 11:23:43 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tOEd5-00089J-Qh for xen-devel@lists.xenproject.org; Thu, 19 Dec 2024 11:23:43 +0000 Received: from PA4PR04CU001.outbound.protection.outlook.com (mail-francecentralazlp170130007.outbound.protection.outlook.com [2a01:111:f403:c20a::7]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b2de0e23-bdfb-11ef-a0d7-8be0dac302b0; Thu, 19 Dec 2024 12:23:40 +0100 (CET) Received: from PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) by PAWPR04MB9936.eurprd04.prod.outlook.com (2603:10a6:102:38b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.15; Thu, 19 Dec 2024 11:23:39 +0000 Received: from PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce]) by PA4SPRMB0023.eurprd04.prod.outlook.com ([fe80::fd16:4665:bad7:33ce%4]) with mapi id 15.20.8251.015; Thu, 19 Dec 2024 11:23:39 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: b2de0e23-bdfb-11ef-a0d7-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=qLZTV45yvFyoOeTMoSY/TRfQOLfVzIrfDqgCRDVZsNyfvs5bS9Mw2wdpV30/YlAtMseOEwlBVBjyHJ3tDUEbJV2bulcU0xA1rYEwhPyCCeyWASMvbn2JK7WyDnTQcXDjImN/XJ3NoXp0uxdlAreIdIL6VsUE2/2va1lgUo2re+YhHFuuuDWpNH3dxcZJKCtEqt2E018QTPjLrqJKRua25iV7jTNbHB6+kfJgMGc+AsJpg+nrOmk9/2WW2p/Q5HmUt0kjodd+i4YbA9AI5PCQtNiTVbdl0xK2P7ZgAjUt6rnNfEhGhWILOG06wxgFNgXxW10DWhzcdq+bnRKDtvFwQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=TE1ptO+swG0YleI2LOVgM8SYYL3IrYeRWVns++Tpy6o=; b=orhFQH/s1bNz6Mx7mV9Zy4wwQpIU2SY3lyN/pgXUkozN20fhGiUFCMWiSN8YlSIZLAO4X2O8zlzJg1fDr5W+QIhDAEHi3jqzqi+NOQ4BE2hBp4xYaYtMnhaOROL1iUNaK1K7Wl1GXgRdIc6LaTuaYzoMdAIp/11Qt853yaO4lbld24EDHuf9oiUrwUFaAhbqlKWSeuQJGzRkXskhsqwGE9t/IEIP8jAd93o3I5KADVwngNNXF3u3ZMpNRPTXIdqhHUfx3xP9CX0vkHh/Qv68Js/U0AKF7dPNiN8uiy6oEuEyEzQWVFmGaguGzVeHIXhxavmZFmcJT32G4QPHwKddqQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector1-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TE1ptO+swG0YleI2LOVgM8SYYL3IrYeRWVns++Tpy6o=; b=Pg2bSNHF6ZCY/IOIfk1mVt56ifZAv0aB2Cvydd82UK43ETA1BZ3SKHZAWjhXbfkx+ZY2H3viVzUD13j0lDQ1MpVLHPxRHWPv+d8evZRYi4RU6cE0xOShO04vUeLKP/HzEQOZpRs5gaWrGWU3KF2XM37cDaWH09jKJBx5leed+8WNp9bd+61sMs+EAuzFvgsXkfNd3GJN1+lt76d9/l45IVSRQ3XhrNDQBS/+rZVFlllxbG9y3lM5xizx/5X3nUZFy3EmQcKM35gfnd49gtWjq1GzF9gEPVJzSgpaW6DIKq5XnqRr+1lzzd/HJs7nA5B8bgS6h3Dm2xzEb8r5AOAfOw== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; From: "Andrei Cherechesu (OSS)" To: xen-devel@lists.xenproject.org Cc: S32@nxp.com, andrei.cherechesu@oss.nxp.com, Andrei Cherechesu , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Stefano Stabellini , Bertrand Marquis Subject: [PATCH v4 6/6] MAINTAINERS: Add myself as maintainer for NXP S32G3 Date: Thu, 19 Dec 2024 13:23:15 +0200 Message-ID: <20241219112315.2461048-7-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> References: <20241219112315.2461048-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR04CA0039.eurprd04.prod.outlook.com (2603:10a6:208:1::16) To PA4SPRMB0023.eurprd04.prod.outlook.com (2603:10a6:102:268::8) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4SPRMB0023:EE_|PAWPR04MB9936:EE_ X-MS-Office365-Filtering-Correlation-Id: b608cb2a-591d-463d-9148-08dd201f9617 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: BRMODXdnI4BtN/d2YjjS5js+PGDUEgq+pVLMwl5fr1HF1CQbgnKlR6cIoBH26TQ0QJldvvOz+MjIVGz0x8NvtibfNemjgVq+hi+K9+Y72DfF3fC13LtWG5a+TBHb7e+ex0qbNdGAnjVw96W4VvZZ4Rgn0MhAHPnm0jlWnrt38ZXZ5rilb1YgpJS2b0kMUKzvuKqy5OpzaDoWHcca/STXyBGHrV0ba9N79VZSf7+nvWQrdAJqBVeLZtWJJcJzAD08DcetyxyoD7jpk49hUEAUeXSiuyYOfKZoZEOn5Y5OEFbPlawuuIit7V00VQkTw5HfPiKuMFpaSposgKuJYiOsvmZsPbwAW0zI9hLSevVya3ll46Vo7mZSAPr6s0TOscVuLfVGEajMX5RRgEzT7FaE6tHIE76SucpTlfhj8WlJncWKkkeLMCXokc5jacugA5OvT5nZb99s+Z0Hp/6TTNNXU/yWT7sVWYbnwM5vw97FTY3sx0mG2HhXJ2EE0FMXmGBBKUKFF1XEoF3HPVQjcAi2ii5/7h3551IO/ijyfeNCMDrw0D/rLxfTjt2osIK9s0slKmqh5J+QnGOrAmetk2yE+U7iG7EWYCmvPDIY4q1zX/RgDZmq9J24C3ZsSipghga3ywbQ48jSXdclhvX+SPJ0xAtUc7diBUizCQgJghi3R3hqCi5ufVTkleiSZp6uk/3ng/YSGjnjS5UcizeWNsaSnVASYDlMuF9+7VCaIoCLZ6bbhJP+nPySdMXVqoXfS/MAo3RmmdgpI9mna0/hHVHf86GhLtC5EIEIBat/Zyfs6hTyNNBK1M1VdXrt4Cc5eSIurkCyX9NLGLExmUELtf7E/fQlbg01XSEAALlGfLlNkjuYAcHpiShEOTfLGaERV1kFkar6wmNgunFxhm9Mn8ftFaqEGznF68c2y81Gd4X2ika9WZVNHhIrqqB2+8xrwrkcFEy58DvortIT/eH+22FV3oUucZUNwQIxXhWqbSjS2rTmnpHTHzwoneJDyXmpS7Sa776UV6nQXysZiGMkh7Bx6lpkWdkoXGnyRZBNUtIObkaHp31/bA1AYb/F6rcOso7ySmDFTzWNLVptzYZLuTL9k8ex/YaVac7JCPGuabT1N5lMH2zQlp/HFcGUKet1W5yfe0WwbuVIvX/Yq7IQR7sF1awAtl6WJUkW5Rn0SGr0ZTRbI/Y6pFj//ne/kR7JHy9u0X8JFOJPVQMmQq8lNSO1/WfIKuaZOKQWmI/NsCN80zibIaMEsojb0BE71cqK164557WiIDyLRLoaD+pIXaxXyOOXoYoBlOqFIGFHUrmtOWYd8rOtRc2UU+g8owuTnFxWj/EDZCZ72d13go23tO43+SeV5y3zgrpM911AeJcotmbX3L+6dUw9Xk3NSdIfEgXE X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4SPRMB0023.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(52116014)(376014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cb4/heK7pNLDlYdgT+zgvM5wQeCxsV29scc4s+4jxa2eDw1YfbyglR5Esu6JvcOcIykQx1eP22JkPw/GAnGnEHXv/nDkONG73Rv+YBJu88x4OP3rOrUKy6Msj+Jam0Ht2LAfNp7xbVgW3oHSS9HZD+CfIdq8CmfuG8Rm1djOxRfCmQ1aTzc/xEDLjECqgayBXQokOgIgv5qy7UVIqCGrfUiaxrKXNaLr4UhDnRvuDi7qSL7ztT6gfK+tKHOfHP4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PddWcYzKq15VkTN9tNJAEf3uY9W/2HZaRowBEC5x/6KG4eKkCre3MYDGJqJ7Y3QlenmpIH3IEUnYdr5UfC+JjTFaWcNRL9FjGaw2xr/LfMyrCgssls9ehkbuWv89H6SQp9+tnKbhKJTxeFZuaBsSbIGOLmO3I9m0vLbjw8X6pwJc08cViBRVcriBPQ+rOb4lwJahGL4ecSy2BPRgeBIeS38ACqKM3SXseVZu5CTUcXYT6/u2Bw+G2ypQoh9kBsNwlb8dpTQVqTQWopK/n8Fkr9iQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b608cb2a-591d-463d-9148-08dd201f9617 X-MS-Exchange-CrossTenant-AuthSource: PA4SPRMB0023.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Dec 2024 11:23:39.1998 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: k8cA3hu3tsd2/NqqQen9Q0Uwgc4c1zeeLMQsQzb8g/h2tSItpWyEU8qILeUZAhabdHZLhRXzZvFsKsdBZN3KsMx6t8/bnq0rnxumfbclgUE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAWPR04MB9936 From: Andrei Cherechesu Add myself as maintainer for NXP S32G3 SoCs Family, and the S32 Linux Team as relevant reviewers list. Signed-off-by: Andrei Cherechesu Acked-by: Bertrand Marquis Acked-by: Michal Orzel --- MAINTAINERS | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 34ad49bc39..392f780f76 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -426,6 +426,12 @@ L: minios-devel@lists.xenproject.org T: git https://xenbits.xenproject.org/git-http/mini-os.git F: config/MiniOS.mk +NXP S32G3 PROCESSORS FAMILY SUPPORT +M: Andrei Cherechesu +L: NXP S32 Linux Team +F: xen/arch/arm/include/asm/linflex-uart.h +F: xen/drivers/char/linflex-uart.c + OCAML TOOLS M: Christian Lindig M: David Scott