From patchwork Wed Dec 18 10:11:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913328 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 EB35CE77187 for ; Wed, 18 Dec 2024 10:12:45 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860094.1272160 (Exim 4.92) (envelope-from ) id 1tNr2h-0006D1-7Z; Wed, 18 Dec 2024 10:12:35 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860094.1272160; Wed, 18 Dec 2024 10:12:35 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2h-0006Cu-4W; Wed, 18 Dec 2024 10:12:35 +0000 Received: by outflank-mailman (input) for mailman id 860094; Wed, 18 Dec 2024 10:12:33 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2f-0006CD-Oh for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:33 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 97903345-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:31 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:29 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12:28 +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: 97903345-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=PN+MqymSlI49WUPgqu0UMsf90iJWixxnV/TApLDkkAI+brhX7DuuNCZOyCBHK19VN56ja0kP0YBWx2P0jMt2U+jYdF7OYxtMrjGk+/4x0C15O/htICiAd6KbCBxpYJdkQ5R8GDIKMrblhJOHmmBwa+whydBcyMO7YRrHq67mkYILs7vjyFiXh6NgPDz8wmWcVEiP83r2yrDC0StQDd8h+1ptRVLngy3p73m7G0PGGoqjjDjzXem8yJgxgx2PkCq9v3pYOIWlIVXVEiBplDSd0poHE8BoJMUOruYn9QfaD4LS6pHLKePs7oy7YIG2sI/bEqHiXEVOYHpKBGm/4ih3tg== 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=NVUhy4h/8vFnBvQQe+bcSOsEufOWVq0iIZoms1ECpf0=; b=H5X6781bZGqB7t5GnlSxRYKjUoPw/raAyp4HvHOokGmLQb+1YLmIxMdelVmc0HptQkZoK2JaZjKQos5hGCNYeQWeZ7r/6xpGvPuAIpt1qBaTcvZswWpj0w26dGe5PeHy4nRMWhKy/bJugoxnayR9aImKb2rhj7bgIiVVFcaU95kUfE/ITTfAJDava+u2BFArKCml+Znm34Lf2kRafoo8w4dJkkzrN5k0qDgf/okAQ3QKkzO9Hks4BU5IkK/eX66bhh/Y1yIj99x98sEdU0ylCz4l1cplvfEtlWYDrSFHIV1/jDha7IRpcgQptb/vp+spTqm6ABIqiU+enoMFzbNtzQ== 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=NVUhy4h/8vFnBvQQe+bcSOsEufOWVq0iIZoms1ECpf0=; b=Rz+qCCPjijjGKCBhnqbq1h8YNH03xMw5feJWtTdSuyLOT24iZfJObdSTGqqTglBAvnSuPmfTvSVf7V+R7gQv+0qkMusnMmtu5akdko83F6yHGnzcbHOqKU2gUSPEz3yv3eq5Fk+58SWCzyVwVP+khTJr566HfmWUt4+TTKxSzqHHFIJo3x32Zu6wgDlfQ6ykdSsmb3XIw/4AIQkb/6AJxnUJtaazTFTd6PmFF13Cj+sV2/LrY01HG7MYjGOf6pvu/PSwMDC9AGLb7T9NFT/1YxYEPs6E0KL4H64j3R2ofhVFWeChu3z3kYyRvmdFb7bToGTFnnPtdejJGRoDie0gXw== 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 v3 1/6] xen/arm: firmware: Add SCMI over SMC calls handling layer Date: Wed, 18 Dec 2024 12:11:36 +0200 Message-ID: <20241218101142.1552618-2-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: 69c50f34-8999-4888-b1bf-08dd1f4c7a08 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: 22h9+N2vOk+m5zxQ9v2tZqcPKfgejn85RGhCYMeba0O6tLG1n9TN1LVolEkawVJ1GZliyvzOS5YzgSDMrPMDYvEa/xuKyMt9phdBEfYe/7VA0QrfBCcl8OsedhGbk65jj7HLiEqN6VlSowaBffWPNWSJGyuzFeRWXNemsZ3i5fwx3rpggvU4kb2HA4uB3kaMzatIw22CHLbSt5R7QjDy97xwli8DfDrGOSsjW6Wd+PwlBeEXKvElwvFWxhvlM9SW4UCFtEdBbLqA54Il6lAnxhDnF3Tv+S/JmGRfT951+U9HPlQrX1wUen2eXSk+9DdB38g1sGzHLSY4lshFocc4R6jgchELERqZp2UHgrY551NWDE8rCeBiRiwNcFY+Xj6L0eZBZGTZdt+2UEoK3+W4Elt4vACRnOVsy9Mo7tgWukD+/XiGDzZ7oX7Wnc/g8b4CZNMsm8yUbukZ3aS2bh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H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: V45rHnrkYoYLWxltnV72iVzNfrs4nV/xTeiddqoPfJxyO/6K8DrWAN1E+Hq83RyMGU9CC/1fewmWBLVhGFRQ7n8+5Rehozw1upwQYp0QDh+GDG+zI3WQsjvtYy/qmoct2cTYBISSMg1lXQlanIgjwCgtk4KlnBtjMhctKPnkCh7T0TLeKVLrNNi8tGU7R5bdmMiawtF8zpkWQaP3KBJFqcqkUA68PPQUH3UvNhEYBsdI2SeEleOsnjK2MOybirXNSx1QWu/W6Lb07qEp3JqFfwci2kB8v7lLfPm1WkAtynhDSLBhB3v4UsX09epHYB7FNrmXrVzFrgOpGtwlFLyTtW2ibyWUD89AvzUDnU7arAu+2dRy/VPmg67XbeHurgjNkhvawQOVWseo5jTBldCpt0Zo/rdQvE8kPTMa7iHSjM0A+V8Q38o05JZctqvhjgvRCX3vpLpRq/PkfgOevAZyAopuFnpKLiEdZ3YPbLQkqorIH0Hb3gjH5XzmvdE4oBufHSrQdqriu5ZU7+3OFXyeRN5RLw8plt8PxXp0MZ/RSuv2dQFTBeyEdAISPQ4pAdmZ3aUziqKwupY2YhnubPYA78w9JCUPEHlQq3EWUMQcfTMAsv+SRTVx/5Bz5IbMLT2ubZlFx89SVdRvvNrmiwPEiUO5T0eJ54+/DMB3X0jZqZl2CeHdaCxtPFjDtGTaqsSfpJgXN31gbkJb1e++X3n4v3gjwvU9ygqJgjXCw+KWtHUFUoT+epGdrdUqaS8gvsLgFJRMF58mJQF4gi2zyfQdrniQf0YmCdeigNEbr68JpD37A3R5FzKCmJHdC3ecjZpIeNRa69NfnAqzIh5/4e5fdkQqGVh1BMtZwTN4sqqRMRXmWZdLRJOX4EPDRJrnoSUD0AJBS+2vdHc6+SSsXPLdrioSGr52nponOSTEZmcgMsx+7Mef+CNffNbQ3ZbkfM8W5xJvmS1Q3Z6HNxLO1gf+lzj4Kv7yK8S1fnyAksg0weLqxvRJlJrcasoTff9tfELW6yqXr6mVqCZ3fgYMMArLbzqw/0vNGc3aO9YfWwGeiZys75iJ8F/e8G4CsVY21lNzPlLwOyqWFO2p8beMUfj8YsD4vm3aBM2zbW+MJm15puzohQyKULPUZXQB71ynlW3Yt+WUKr7gRILCadMLbnzDRFq3/0onxS9HZ167KTsXP8UoNRyTwogyXNW9jkqtqHKfmfyb7l7++xN9MaTD0ft5ZbXwnBxg7yroVbD6m7oGMJVC5gnX2A173fe17f2B0fmoBEXyHOrd/vYgOc9k6u3WoThfF6eAlW6HuiBiB8+Z4l2W/EVGdfX1pP0If1O4pWaM34ZAuPc+jcHQPyBityDScA+sk6cDc2g118lyLdU8RGrfx4q1Qyo8MQ0VqUQDmrA5crZrEV6BQM9TArAHIqQlwSG30F6OMxTkY7XiWHdTevg1d7wOWkKytZZEVEAwYdAoCawYYgXAqZG92iyPHxpR4HQETU40J5HTUR0htFTZ2BnEI1HmmQCmn/fybuj0+GMSwN02XOJ0Cs0NrfdJ+FK4T76OEa0KfINNSylWW8wKmVL6XQhT4ef8Wo7b8PVinyuJjVqPh4df65dyQq8uxk5xKw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 69c50f34-8999-4888-b1bf-08dd1f4c7a08 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:28.3683 (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: v4+PE+5P++M43Eci4BrXAi6MKYLKvz/233gPCdZMf9f8JHPANphJdvJSTj8c+N2uBNDHGh+ZB48R5krhFTCPRqZOXHLmzlgJWcB6l5vet9Q= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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 --- 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 | 166 +++++++++++++++++++ xen/arch/arm/include/asm/firmware/scmi-smc.h | 46 +++++ 6 files changed, 229 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..62657308d6 --- /dev/null +++ b/xen/arch/arm/firmware/scmi-smc.c @@ -0,0 +1,166 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * 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_support; +static uint32_t __ro_after_init scmi_smc_id; + +/* Check if SCMI layer correctly initialized and can be used. */ +bool scmi_is_enabled(void) +{ + return scmi_support; +} + +/* + * 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_is_valid_smc_id(fid) ) + return false; + + /* Only the hardware domain should use SCMI calls */ + if ( !is_hardware_domain(current->domain) ) + { + gprintk(XENLOG_ERR, "SCMI: Unprivileged %pd cannot use SCMI.\n", + current->domain); + 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_support = 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..57cc9eef86 --- /dev/null +++ b/xen/arch/arm/include/asm/firmware/scmi-smc.h @@ -0,0 +1,46 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * 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 +#include + +#ifdef CONFIG_SCMI_SMC + +bool scmi_is_enabled(void); +bool scmi_handle_smc(struct cpu_user_regs *regs); + +#else + +static inline bool scmi_is_enabled(void) +{ + return false; +} + +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 Wed Dec 18 10:11:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913330 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 41F30E77188 for ; Wed, 18 Dec 2024 10:12:48 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860095.1272170 (Exim 4.92) (envelope-from ) id 1tNr2i-0006SP-I8; Wed, 18 Dec 2024 10:12:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860095.1272170; Wed, 18 Dec 2024 10:12:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2i-0006SI-Ex; Wed, 18 Dec 2024 10:12:36 +0000 Received: by outflank-mailman (input) for mailman id 860095; Wed, 18 Dec 2024 10:12:35 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2h-0006CD-5Z for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:35 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 98d37f96-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:33 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:29 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12:29 +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: 98d37f96-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zPBKw+QBXayKwQJA1jzSdjayFgE0irfM2tBWNGDlUufLV9BsYEW2PJb7JhgGawgRFUuA6h1pjDshsuUyyNyjB5/wIRmk/6Okfj4IvExJ+uWjO3BqKDwKaWFURaLuy79PXwjWieq/FBZn/U9LSrDwg+IbAQkHqYvCvx5SjUX7zO9Wu2vC/xIaqHVoZZnXIhPiG8Z0+Bu6FaHCVdhbK05zVq0jeEB6G4XgdJPJLR05uscxnx1oguzCywCp57ccYMVVlv0Lw9yPv4fZx3b3mYrp9FPH24zSWkMLoIA8goj+ZJY8UPeiMm/n3Fo+jTNgoGSLtxhtLrvJaghDpYEFumHb3w== 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=TXpg2Ow88Eg+MIZFn0qzYuI7h2PxCnhsFX1nq8UccsY=; b=fbHAs1OmzPq+ZszFQiADe83xfl7cVaXDWFAWQm+vdafrG7QiOigVL+NPr3cj8BfiEvQ3XxdKDYjtQCuxmtd+gVqY5Cu0hc5njIBgv5EDt3fE8OoCiPZX5rWpfx1JnzbtC1raoKBg/lZFqOEzwIUSO9jyK5jTw6lEd4x/b8W/G6kpfEVJWsPqeJr+joY8oPqhQHMNkPUrV0wOtbiTc9Ci7JzSyqp1grPKhxqvd+xwKqeolxjDTVEhhX5dRMWIvCbwk/DpFdL8cppEVCevEJDDqtIIxGm0F4/0ajh+2Yy6XfqLRICUUar12zxCEI5bx2Gmd88pRGcV88c0h6T0aAFCTA== 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=TXpg2Ow88Eg+MIZFn0qzYuI7h2PxCnhsFX1nq8UccsY=; b=KN/MJuhXzY0sBw8Ia5pbG73W337qVRd0PnyUWvzth9J6XXCVeewVFdaNmf+70EFKkKF9qdEGkh57TJPGgad+VfNRaJNjc9urE228bGnCTyuXxUFVRwb/GlEExe3KJwv77pvq3lijsVQ2MoOaDYbBWnlYOP5+VGPS6VV+tYT5RCG7tgAlqtUeKHxvMsHHTw3qaTqDzrs7yZPDxbSgmV+S8ditBjpUSMuD2dUs9vWugyL80uSImGVT9lO5WA1t8keejfO26TxT1q4Kja/16sq/15A/PCNP10T1smCZsBAyKpS04QfejeM6C0R0xlrBPFb/D0sw1PUzhWXfZdSUQJI6aw== 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 v3 2/6] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls Date: Wed, 18 Dec 2024 12:11:37 +0200 Message-ID: <20241218101142.1552618-3-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: 6d762712-821b-475b-d510-08dd1f4c7ab4 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: RAerRyetckqOUvIN7YJi4W5NlqPaA7h3kkg1fm1aOb7l0njs1OLT/A1GVlDkbZqV4icz7R3gGdeRYUPb+vpWMGJk2ti/tvfd4ww/vSxlenyEYCPjcaVaHmwjoaiLfiKVQS6/ew+m3FW1yrOknvw20MzDrZa6vvTKef/K3TJsc520DqEy0C0aQyKYAHjbeUQ9uIQ/Xo9+iSDdi8D31+UJ4bZa++yJmwpzo/J8PkiWuKhEUvt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V+tqQc2/cTNiaJgRJzRTKQ+jXW76m0WYFM4iHhZB8GEpyiB2XBFTbWP//v6AaO1o2et8pWVT1RQoxHNmAO6v6zz5TxBr4FK5NIV4p2Srvik02gxEYYxgY= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W0w03VaXg7RX7xINlexV8PcQ3wVFWDT22+WI9QQzFKqLvGHuLzcuxo2H6Q1qks8VMXaYvBdrqo9GJPc2GtUJ1Hz+LDq7TOsXmbugN0311iVujsjET+/l+Q766pOeoziT5PGlsBisaFcXnLRcxyblJQlCUM5fKn1BGWXeonawABA3LXapDQxzAczuNqVirEj7QeLeZW4CTeBP+Sh3iynxBiaxp7D59EB6gZ1yugU8zuBqALq+r2b8Msw7gbyvMX6U6C9RqdC5x4glviREQkcwc7rZ4BeduE1yQ0ZMhntWK4X22WiNy7FNfsOxPJuqkD9xMXnx4Lbaj7tX4XBZzyVFnI8TKPLXlpwSOHigai7wn58HJQuzCF5PPQZVD9R6KZK0RPWncigEixsr+gJ0pUSh+QfNhrCaEpHaRTKT24MUuLpxhxKgDnVh12AqFXXuM10C5X6RgS9nr7guIv2eNERKFHXsNJKjY719Onxre3fsnMOdAD8O2NjAxG6cV98cLnuxG3E6b8HwXVYjbBG8eC+KisBt8COcehlL6HwV1VKj6+WUZbNi6ls/I6RLuyY6rtYALDgnWBH5cVE5KYrf+j5GzLuux40Nds5QYq7vRLsW6afwM1WRmjfpQ2E5BK/B9g0zzN0lJmUGz6QmabCiVQO+L4b5xXDreclopoGSKeeBizvUcWYdKcTur9NP7BWuHB2gVoxTdwltswawpMa+ux/qy6uhw8lpBdI2E0lPOdO5wRHp76vNsGcOapLf5uPuQUV0wUpdyrBZlzueIzvDNtZ51VxwyRGO/Kx5K7Nkx3woRyvr07WsMpaWGw2FxoNSjagjPzng30GkmxjkeseISwiNyCg7IXqQPi5iHdeKEdjZJN+jxt8DhdqdzAwG36u+Lk7JeUgA6YzvxSRA+1MewPgobNkIwZWwMBjrvaQYfA4PygXA10tTR4TJoCdhRHzI3cLTcqyyJe0irE2DhI5n7tihjHQ9tSYgcnxvH5zsymKUZ+D2yM6ncdpbNVKpccwM9HZ8Rssxp+85oZ41E7IEabriMz5ueuIVLW1B9RSMjyniZD0OzJi7WvkFAOwtTA+tlp0/Uk839m8L9jgWT4wqvFsRY6AO5FgtLqtjJe2YoFU/kcL+ifuEytUurXh/X1tJmys3MHIkyBl2QKm80wyobQyRUHum/w+KZVSfPEK2btbgkQycH5paZvoKVZPzLZlHLpGn2cMGb044ggoo8aqJkF662vJrnNggEANseO2g8a5KiXNDWAFOaSQ+BG35SUqdExKSjAQ/nOJ6C8EnVLcDqmu3K+gQmbgZ29qyuJayvFOrxyXPMfUmMmRFCcPKw9ddK4TKl90iR8LLpd1eWoZNr0yVlKGK/oZEkaNLMhSXVMxXXthSMJprbbOkogchPRymLAI0gSodh+NhkWZZDSCRd/ARx7wQnuvqbEDtIO8ebyRQkYsX5Byz5cu2oDjIgsI6m9ejTKTE/tfzmGR9PMEws2QesMXKk+nn3bpzcQwKD5IA4vAU6FJLOXV/KESa6GssfoTWeUOrLR+RvRld1w8a4PiJmxqttJoixcMzRLDxLK0ueqOGHO1hsYdHKQerOIMXc7dL2PK0tlPAFS4y5VYGAV5qoQ== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d762712-821b-475b-d510-08dd1f4c7ab4 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:29.4744 (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: CxAVD+5tjdDDXYp4sVR0U+eRIIv5q3asvbH3iUfKKEBBGHx0/fYb1x0vm+AQdsrfFu5yiwriv0b4JkZRiQqJkMpx9gaczZGfwt6SG6p7vfA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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). If not handled, check if the SCMI layer is available and 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 | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/vsmc.c b/xen/arch/arm/vsmc.c index f679cced7f..c4d225c45c 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,19 @@ 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; + + if ( scmi_is_enabled() ) + return scmi_handle_smc(regs); + + return false; +} + /* * 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 +302,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 Wed Dec 18 10:11:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913329 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 9B0E4E7718A for ; Wed, 18 Dec 2024 10:12:47 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860098.1272185 (Exim 4.92) (envelope-from ) id 1tNr2l-0006lx-5A; Wed, 18 Dec 2024 10:12:39 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860098.1272185; Wed, 18 Dec 2024 10:12:39 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2k-0006kX-Tw; Wed, 18 Dec 2024 10:12:38 +0000 Received: by outflank-mailman (input) for mailman id 860098; Wed, 18 Dec 2024 10:12:38 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2k-0006CD-6G for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:38 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9ac266a9-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:36 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:30 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12:30 +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: 9ac266a9-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IbOIIHWVsdGMr/RzIBs4sX4aUakJNDG7i5Hdmxo8EBLRdoHX75yrQ6HcTaQHplrKZg8KjFSYcZ1RPXJYOqJuSB53tkJmLSq7J7wSEy2vB2t/b6HDYtkt/MYVzn6wm7bihVGMbP0ktPRFIT2xWhzI912U640mP40Rqw1/tvXGcSsVjGjKVUBbVC6g6RdvUmlGS6NvPsubAJ9Jdap5hh2Bb8us4rGbk9Z6oIVJ0SlpCPucOCzIylrvZcLm9NyyjcrsG3O/WeUNpvM+cQGeXdyZmPDasD9wakmMQR9+AHp4mJ234HNHxBHx7oKBV13wfoSWzmXxN2VWrwkMVUE40Y6oGw== 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=LRb12Uxal/A5sZn+ymF9X7NeFCk+iQiwRZcfXUwRiQ8=; b=kA/Dk359FARQmcw4QaZe/S3+jTsjrFHrISb8mfRFWNRhtUjza4cDhwO/oKJPO6x8TWbIdDck716LS0rUwYECXgylJT5pHZGDjMFcFQm4/QdXw8rssWepzqMt67ZzttnU2+cS2/+teLvOXzwjfSgu7ZIHS0KsPCfzX26JdFTZU/bO10+JjZEEhoK8lDQtCDYXf5cKnDmUco+rR0vzPyB/QedZbre6QHT4t+qfk42IgXfzbC+w/wWQHn+j9rIOuVGN6ai8loBreNuuoGyM44WO3fF/yy0TGrg3EKGprC6j1RqeQUAQpmAUnNDvVqLNOvkMMmAvIQJaf/vF7zDoV+XhUw== 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=LRb12Uxal/A5sZn+ymF9X7NeFCk+iQiwRZcfXUwRiQ8=; b=qUgjug18f2iqMT8w1IFgCRj3crjC7E63NtEPR4sUqPQklYsOpD2AttVP3RaMtC1bZmBYLPEnR/ObOLmzT3CO1ZhxOPKPZmUaiBDGh+qGFYs+n9PI81/hNxAr1w21GDeMU9CU0Jrj05uUYVDcU/x5PiomdRtrfJSemkajX0CrkwoxBHsoJEG5OGe3ejtlWMirFZMAtEiNAp4PERovM6JIKlQ3LXSmaQdUxSgBBRlU9UFFHHOMNMUBVEWhZYOFwnquqQ97sZclnPSvd08GM+7FOoR83CIriCvR0E5jIAQLa2ZndVFqV1DZKSFjAfl7mHvDKcqaxMAPTPbpSz9jz4gA7A== 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 v3 3/6] xen/arm: platforms: Add NXP S32G3 Processors config Date: Wed, 18 Dec 2024 12:11:38 +0200 Message-ID: <20241218101142.1552618-4-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: 291be8be-45a4-4c64-6e7a-08dd1f4c7b7e 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: SlBRvxT23KSu13l9g76fDbE/tq5nO426Y3QM7S7I1BdCtqgxDTuvkKScGl4+9qIiA9dIDSkV80bbzUnGy97tvHJxzGZkqrKK0rjSkG1jt67plQK6yY8lRf+3GVjDUgEYNnVBfnJKLqEN7FmbVVWuFWnSbk4kfahU5v+rlmwQ7JfdYqesOYBOZoNX35r/UoARpyDDjhfoXsEEatg6Z+lJ1o7R+wLZ6PSj3ZzSTTuGCgjmQ9ncgx/1HEom486u97/zMZxawx6MpcsRByG9v0MZrSRhYnDkTjVr1fLhftndf9rsZ4lm/Of8jilS9JHo/OcP5QFnspadgFVZvgmwKPxCX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dCEv5HJh44YZrHN3MKTKq/Hrb0XxCHMI8jhjVmD0k7Tt X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: AUufk3eTSccV4vDLH1DcTcggEkLlWOjQEEZC+AJf+D6wFY24c9/CUgFMT+qFpfHh3zEbR2rNHPaP4c2B/zTaq5i/7cCoOfzOJ0KuQy5G5ljVaLpirBQ32xNPoIeZS0pocKAEtomDHL4Y+MaMsBz1ahnW+V2ki8/E45C7B+dOxwvxkc61hJAQAEgZVve3o1A8s/ICszoIobwOBMoPnXS81SfvS0l4nhV7G3IP1qtDAmHbcwUt70lm04yYUjyAc1Acb6EvolZ/niKvoiMpVM20NWZngv2tt7hS6J/L12nEszaiu8RBa0fzaK3Z3OsrAYnBjUczeMVwFhnYUsdFAhZIAX0W7dRgm0+8+FjpDrhFX35EOkeydbSxtIZAGaV1tdv4a58YH4NX5GYvc7sj/xJzE/Sf6IrMatPByAmULadQEjRnBtOzRi7Pg6aAwFfTzNYYIkn4H0tuFVvwlAnmBnpFQrzUklmlJIasy2wU+SykZB5aW5ea7coF+vyCpOTb99xP6SDFDH9JOLvc7iL76Ut36de3PLxk98b7JIK9p+FXKpURZ0logH6tzYirkqvBydl6L7Hw4bCUFVb4AKcVDNbiWsh1uOAoMdeZS5HL5jQt2zlUEqM2qZAbe1SZtXTcDV88OAtpzHuUjPJKg5kFyYhCKkNasRbO9MAdKNcADWo4yOAOuK3w7r5TTWY5e73IEnjKlxTdEesKKPahJ6YUF3TrSAsWZ9KAsKoeRydMBIeD8avKKfPS7ru6U1gm6lCKjykDhXXS+fvWL2pAZvCRK3of8DgAEwG+JgooMvTiGeZ4Q2fMxlxpvBr+x8WIG7mp3C4NaFIVNv/MrhkoAdu/beLPOACKGHlXVgG/5i9kxktQUYaz5B+XXxm03YlGpToNKMoFEQZUrnGI1k0YxVXBFPg4Lo66npnH6HEVf0/uKHr+mlS9QFPRTRSh6KoD/Y06GMTacPJDhXk4/9qBf7GW+50bEKVe/M6QU8pVo1uIvLWc7iMJxzhv9h5TOBRTm1Ri22Ww1y0Rye4EpqOsi0u5mWGJz4wu80BW7OaC0GrMTdrlkqPLya2jopqn9Mwyi+Gg/Wr+PKQF8sE3iAytZoMowcOFoio4eAj4g5WNuz06ATzsgCARxNKzVvIVinn+MAyGATGnb3o1vnJ8m1IHCcv9fjxuUht9J4gYar1w6XfVqFk9+ngbiltBz4TlB7d4b02x01PhzSh2Huxs1Lfp7/K5AW1TJOoQeValIup/rSI8vSKDwxBr5Xij63ECoAF5hnhzHn7UjjltTaTVaI1cI3fdn1Fh21Ikuihhfgm35xAmO9n7xdc6fSuAQTcKp+P1698s3u3ssANRV6ygngyp0ih+uyWVpvSR30a1Mg7NKawLj6aSbHTh1f+WK5I1zUibdfyq1Qv2GpgcPlBHQi/5U2Ai32Ww6olDg225LdatHfaOsW3HDOAT7BqGFmJkKjlMgBSc2pGLSwB3p0HtKe9YapXqRH2jNFwbDJ6iO+uN4sSVfwGmYlRBI6p7V/F7EXM9HrIVC2Z3VYp1wzF1EmK9INnq6RB1e1rBCtFpcq6XDsnZcpUQaR7oSlNXGRqMnSb+p0RNEkZLluaVWFAxYIEJRzjMHj85lw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 291be8be-45a4-4c64-6e7a-08dd1f4c7b7e X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:30.7793 (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: 0UxvkFCU6kyZ1t6s5YrCv/qSCTEWvAF2kVSKDjSJKmXMKJIQ9RSOU1mzBpOulJJZLfRG5NIBzWRSggX+k9B/7pCRD8U28/OARfxnAWpKLZA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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 Wed Dec 18 10:11:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913331 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 AAC4CE7718B for ; Wed, 18 Dec 2024 10:12:47 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860097.1272181 (Exim 4.92) (envelope-from ) id 1tNr2k-0006jI-Rb; Wed, 18 Dec 2024 10:12:38 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860097.1272181; Wed, 18 Dec 2024 10:12:38 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2k-0006j5-Ly; Wed, 18 Dec 2024 10:12:38 +0000 Received: by outflank-mailman (input) for mailman id 860097; Wed, 18 Dec 2024 10:12:36 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2i-0006CD-Ln for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:36 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 99db5b92-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:35 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:31 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12:31 +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: 99db5b92-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=aLdTkwbiACPER+oNnFSZeB7O5o85zc6gDG4DzUA6btanyN1vBld5VB1kQ+rjt6cJfo/A+uKRcpLs61u/CjniwPrYfBoYob5kTjXNuFWyoHBnmGV7rNlH6WsCG0KAODhAm3XWQYDMBZ8atyNWXyZ82eSWnwoFTIdfb8H4nfwIEcvO8hDgsa0NSMHzra0V06PZd4uOPrG4wY5cNrS7eY/WIuqx0PkxxYVpQvE6dEp4aHmHS/89/fJmpS9G3kHn2bzEmDcnYOG+h8g3N60FKw71qAi1spcoZYju6nzerA0cM4TGAQNxyPgSJpzD5MXg870+He75Z5rjMXsETUeJ2QeMmw== 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=alPIWHc1qzA8rblJaAC2okTD6jSXkIMNBqCwCgtHwlc=; b=yHagXES3McaAkBEYsWMfDqwOGxPsfA8kXdhen0+DcXy5M9wMdENyfHg33bMRj8VcoPSbcYFp4N+GYAprApiEDhOaNuGasR39JRpK9ierL/kB0bqIhQHYGTAFwgpnq7i2pFtRmfUeWKve1abM4rFNMPW29DopS0vLlVoRKCoireWeMISow5r4nWGigQ7KXn94/riuMbcE/8tM15my5tbipB81LmjwpQyJYYt86lP//UPTOBfDoRYS1D3wy0mTJYlZpXvCFL19XKgvNTT0hRo41JLDBrTdeazNzHSnNkqu4O1mv3DDzzNrVYMH7ZIQDuH+OTh677OM+m5QYXC+cQhaFg== 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=alPIWHc1qzA8rblJaAC2okTD6jSXkIMNBqCwCgtHwlc=; b=czUrLWgW56BAGl8Tdb6IveQiNPbcAdIHCayMgfPfkNPSJjDKJgNdaHdcqhNHvYvcgrJwKb4o0J6F7b8+lCarj9u1urR4CWdnspLjNW9o3Pc6soI4DelmMs1u0VmchYQplSpTNT/en6XqtMZWJstUZv8pyGlpt8rAvMDXmNgMDpyBQ/Lba4RKbofMSR5VxwSHclhYfYSeyJjodLuNHhji0oqBHxqN/2yEUbxG+1uKopkLRfhWKnPPJU+6kHesVY3P1iQ+HCvWh20NUERIkSbMxisQLSIcdYPGyo9u350SgFFXLCS4owRYBY1+LZS8QTWTKikv9JXOQeoETG4SHQQQQg== 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 Subject: [PATCH v3 4/6] CHANGELOG.md: Add NXP S32G3 and SCMI-SMC layer support mentions Date: Wed, 18 Dec 2024 12:11:39 +0200 Message-ID: <20241218101142.1552618-5-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: 665b6a2b-7a7d-4b29-41a7-08dd1f4c7bf9 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: nQbn55WdSXG7RPFvC1cS3KlEsQ2morlX+LSRzK8whpqZYJTGSEHyW1FfTEy6mdxxIKccVz5AkyHZr5WYs/36bXS5pqs4TdVOiJStGVHvZZ5E8qhTQfl/qknLwoXktPrKNBRDm9CyyE0H/vCtPKRLV1kksCIio9KIFGDckZxZ0cuWOWaHXLkKq7TOXo88uGBJJKdAhPo/b/2u2Oo8+Sd1ysWSgj+YfHrAE01iB6s37QaLU3w2RBXoabM7dMu4tdY57YfFMA29+YS8cfF6HN1gP/QAeu300qTbF5v6jpTHmoimyWAnSRU+S24BdrwP+w+nAkoRiVhJxgw4AqeAbe5IBGK54eRyhz2afWM1E6A1r6tedjWWF2lgBUvS7cBp4FscIfLOGGCoX3/fle+nDhvmA5kxn2/j2WICe5jFTWbIXAZuyo1tTdKlUXxSaIpE0ogOT68Bu9t8wHJ2uu5EXhUKJVqPpzZKgvegL3hVspK2qfzn+mFMhuMp+OFgESs7xNZoKiGg/cFlklq2oO7LFwPHtpDApgL32GbKd8lz6YxRTjPiyNOcUyDET5OOo726Etn4V5551I0DBOQjm2Ki4VLQMBuQMDMTI8luQVtOqpVk+khvKHizdD6uJ5oFT6m3GznMQETrYSGoXS4OgvQYiiVFIhWZ+uv5qagvg2wZ3WSbuukGyvqgm/zMh6feda7uQkFpLvisNma+Uh6SwTjQDBA8jvMqMRBf70/x5E4yBAkbLBfYOVI+QUIOLc2sJSEmEGHkyU1BxtVDPfAwNUr7H4ZBDldxmjBNgCOSTjigSiyK7SwqlewwZjLX/rOVWdxYhfkjmH+eaNqtoPr2WrItgrSW3hcKSf0WiRK12NLYN+PJMDysfvf23ouLurFB+cZxoDu7P4bnHCc0v4q+ax6KT8x81iyP85BDLtlbVC+AWiPc9Mljt6qd2mcCNQVK1dkuEMgWfNHJV55qFJKir1+wd8P4J/VuQjHhgYiLHbGrS1EruoOhe3UAhp1Ui9NLhAee7qpchDwtf2x0rNiQQEgrklN3H+ZoZ6GA4aDD6rOaK+GQ0ZWmEMOVciSuBMQhraftNoYv/aLyiBWLFqwlSwdUzv6M/CE2i69QsB+pvlw9jXuYnAGxfSy8Svu76u7ZUa9SKOgIypiRnq5p2RrXYXlVnCQV+vqxcxSu0ucN2zPFjno1GZvn9I4SWtDgTIOnfTAhmCpl4smG++zUY8OO3v4aX8MPA87vN+37WVqi1MQcNnwn+ze8O3Gf6V4UF8BN+5cUozJX+pll/lwimRED6MzNCwaNU3V8n0H6cks0vUw+7y35Ia3Ee4hU8XNGtR5NLpIyApssBu/gpUnR2615g5hbJ4kwRaHJSsxAWiZjVMh4hik6ehuAWwoCQx8L/1sxLTz1l8e7 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 2p9y69EEBOYVU+fLYRipmzUO/ZcS7Hphd1Tg63Vtx8uddm29cdR5c3UePh1GN3EbzoGBLGl4W+QGNOo0u6k0C22EvKZtGM6PmW/vxpTvButaC9daNmlH4aU8r83Z7nn7CX6wZkQrvmncvTJkQ7CLR01S2VPEjke8sOlsqcs2bfyUf5txDV007ZC5PdSpki3CwUE7kmc53kzqZODP/m7sObuogTS9f00Tfzn6JSr1T75j8cstq8AhiYSnMPnNM48Bo0PD0dUp9j7sEJRLacp0DlHQ2FujwpKP3FY+na3KBGgw/VOZ6vXIdFb4gZ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OqBE9KNZ32lcC3d3RPDjtqiZ863g1tZC0DZDuWP66dbDwNaZ9x6cJ8u4qeqUa9HUwytY4k1QENqsiMw1Oi6Ry4kILGl/3gR+06TKE8gjAfpD5q/HhDT2CToG6Jgz9bOyieXUIu5GwOURRY4zz3QqVgbMMersWKJeWKPgO3cs9MhiPrtoxAFCirBkaH+KoSU1BBvlZAmPMhAKdHSXjSFlgeXr2uVCEHo2YfW4JCVsy8b5u4A== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 665b6a2b-7a7d-4b29-41a7-08dd1f4c7bf9 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:31.6278 (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: hgqf5pjCfIjPj8AwMqeK1CL5E91gh4pGMgozj5th6a7CAaa53QJuXmUovtllPD/I1uF6AIy9qI37T94AiVzWjWM1NcmpkQCUZxC108xHaPw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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 Wed Dec 18 10:11:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913332 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 14BECE77187 for ; Wed, 18 Dec 2024 10:12:50 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860100.1272200 (Exim 4.92) (envelope-from ) id 1tNr2n-0007HH-IO; Wed, 18 Dec 2024 10:12:41 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860100.1272200; Wed, 18 Dec 2024 10:12: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 1tNr2n-0007H4-EB; Wed, 18 Dec 2024 10:12:41 +0000 Received: by outflank-mailman (input) for mailman id 860100; Wed, 18 Dec 2024 10:12:39 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2l-0006CD-Om for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:39 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9bad6762-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:38 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:32 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12:32 +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: 9bad6762-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ny6XGApHiDdDryB5G5h0Z9ShP/LdK49pzE166PxW5OYVUgInUmUdf0YwbBc/qSXvA8fwtcZuiSACgTNYI4hlMAF3CEjI8s4JNq8EpaRqFln9ihWzV5u0W7Fv9xbm/zw5nwfvXALEtQJD5eadFqFSUg4NMEDOesc2s/7XJYpfi2EfpgqL2j0x1TGtlokr0wqFZYsX9SRrOLLeAV0nz9ltZwhEL7cpjnuarHOkjP1N40v8X0x/2fiTh9tzEVY4wFx1QYkijudkEG/a9ufqAu+Qqh+UquJzYScEfNyJ2jWcibhzkXjbJCbMp0SjvkE3qbfJ5Vwv/ObjYsPftBwAJ/cU6g== 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=+ny/wNuZoyr66v5NmfQ0ulf2O/bvCewWrWpPK80nxoY=; b=pCYC7wZqPKOFrAkEjhEdyk0x/yhsYjQ5+NtxRxCPBctQAsCdJsFAz+GJn46CPmD8jIQRANfPKLx/cJGCftJ9Vgqh7kZtZKCsCS0XZkTrsiYw9u/wYfMp4mz/9Y7LHFbicmndo+v6VTrhsctkYsIUBS6sFznmFnClAaAg9d0V2a26PqBxadnYgHTgvNstZffgBqBeLW1XUw+myXBdmUCXsLFTsltYfwkG3LYbPTKobUihLUU4Boow3l3znK66C/FjuMD/ax09ZfET7DtDpH1VCc3Nf3PDXJuObFNni7GgzGyhGPv0GgIxzix0iqJrPMJzUj6CvX8nx46a8pgFV6Sm0w== 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=+ny/wNuZoyr66v5NmfQ0ulf2O/bvCewWrWpPK80nxoY=; b=iIHSX6dHOQJzhlMWx9UISqUwXvs5bdMu65SI+rI2eQTS28HDbP4uo/jfHyp0VF/1E+vsSxLeLhtOn8QlGuZnu8pUj+4S9LRpH6tfNCJapm/gSCQZv7krnOxugQO9nV/J71pQO9yxPxiPJ3XGUDcciZPgqaM2yCAAvf5g28v7YjPP3QP82nTIBrpu620EN97j0UmtCMiF5cGcFTONpx2Lx/duJJcBeCLaScn+ln9atmkjnP+zGcN4VstLyV89uxnvQfK3OlhZX+4+bS7EMPsBcsluH9d3y6mJ3iS14M1LWP8D+Po2aNNMnOpfznEcb01yO9t5519gUqtc2P03X6pHdg== 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 Subject: [PATCH v3 5/6] SUPPORT.md: Describe SCMI-SMC layer feature Date: Wed, 18 Dec 2024 12:11:40 +0200 Message-ID: <20241218101142.1552618-6-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: 564151a4-a3d4-4173-4e82-08dd1f4c7cad 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: z3IcyEBC31btxwQ+ffsMwhvvRaSlI+jgaqOBDy4BtiVDYFyUVzvB+f64cjxp7MtrIqADsnGM85iTvOCieB/A3DTd8dz8OQvLB1xdi5ZkblXAb1aBsV/jjjZDMrG6yDRBuUHaNv3cUbNgXAGakIwaJ+1us5Zye9N5aRwXy6JRHOexE8s9Xuw3tjQQdsNjtW6KEb2hz5Oh3x9YuBeuZYCNYXCDbfwPjPFZKJutQ4qoIu6gYZ1gwAFGrmaBZvYc5UjfbhbGJ40LDuC6k7ix84bMWnQqgBBgz2UbhMBDv1h3gebtd4EwB4eafsDObMTeZ89gQVC6//32bWAvoEzxYJnoAJQMZ2NXcMHEz1l5o3Kn67J8UtbxujeQdsXAS6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QPLmNI4wtuw5K X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: slpDCEM4WducXOVAVtDgdDeo6mdju3hQSAdGe9F1iPi+2AKYTXkwBCDdyxzzmJInXyl2AeyoGI9OzyVujXknqjfe9wH7OEhIkHI0953LBKYuSg7NZCS+/DzkpS/xyBuPprhJfjVetCvcgQznMCRUX//C66z+OXCnqJKzvwtPmdP9y+ElwbmH8ZaK3gXUBMEdlUbGUhA+TvDezmzGUNfjMdW4zGR/dxbbmhLZyT30ZPmKnUguGb66i7OpAInXSTtzms2EDNO4A0i4ZtP7Jg+d/V0uYrQIKUxPZazWRzeVuWudhqpm5+wnbSMBs6xO5ZPWp9JQtSUN0igjpI6RVPJsFlcxSN2mG5+i+5pJl83OmEMesgY8nE0hbU+od3etqK8Hg7Hp2ft5EoaAj294DTdczKyKVM9RasPckSqBfKH798h+c2LRrZ/J95iNiKLEcjYOmB7WTn78YzHYoMM7Gw80Zd3Tw2a6GUoThluohvc5PTdd2YTuJ1SSaYOiFbbBn5+bRrzC2BqZRQhVUCejhNGeHNaIrX7F/6AOZKe+Yn3qiOpzf4w61D52zLd8092J5wSkLquWkmjtJ6P5hl0zCqpWjmz90DATu9jukt4EI6XDqz7rnF1W4o14MmA44JaSg05e9B468eKYlEm+Oo5zR9UUiJmxnfsuCOd66GpamlIJ1+rTw4WRJpeHvk9n/ITmzBOAUOFJAqNgQb4MS3F/a6qgHcUHuW/JIqxfE3f1Px+M97FYxYHHz5IrKb/2XbC8MhDwzw5X77RZFK0hTsTksJTbi9C+l8517oWXhK7nC8QVruLKYMGUcCi9WF7qi35rkDV2Bmx+nppyox2+gKAXmeVZe4va+feSar/qgnG2JeP8ukEjB7E8w5XtqHuzGirSvuoUeSyJ9SEaMO2aR/GX50OP6NHFwpaWaLQh6/1ZfYkS/eJlmi9TxpF6SfJFDD2CxitfRgiElSHP0K+nFF56/YD+qvjV0miqmasme4VQiFAAq6bRSK6sNQbke6J7T7muCXGTsh6wrgWQxPj49vLkpIzrWTE+GP1Wbg1l8b5zshYmVZrOODPXawYAsG+IATI/VVRXX8nIQUTt1mSdIqt+xnaXZeg58QDsd5RKtXk96D4EUoAFDg4gA3qxckOMbDyj8ybVycs4ojvw2Ko5qtkh0H7QqY+HoqMGkH7vXlfZ2QxlaU2LJFMbq3kPERgl10wEqefL6On7TN+1w2gU3MrifdGvSO1uMzBDPir/hRDSRpJQQJqsT4rZrugex9yG5R5pop5MYhsZEpn5MxSYRWLimZXJcqKQbQi/mCd+cWq8pzHgkJvOd1u7wHXu0JHVZC4g7a9ag1Y0WPebPHJbe3fd6H287Rd3HzUUtayI1fZwUEjV7F/vO5AHVFBSYkuUEimEPFjsTVWoKEGCzFmxt1ij1/8adHlOo1TKxmGNBgXrblHtYBT78SfUYxf+jcS/3J4EpNtBDuF+a3VkQW0GrGJpsPmHRG6TOVg9aV2OYpfJqiclXnYDEZmGbHxnnb3La66DYefW14MI3YSDED1UJIpKB3hwkHPOxUYPh4L5co3AuEFQ1Fg++FL+t+sZhZ0gWDT9g8FNtCY5Q0NDFFQj7t+697K+Lg== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 564151a4-a3d4-4173-4e82-08dd1f4c7cad X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:32.8270 (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: PdD854vRjHxcVrurR5HHLj78dCWLYDnlM0IShip6H7zl92iKNs7ox1Dczmq7D2WtbYI7NSBwoXHXP2FLNEVSA23NA6LUb+AXouM1bX3B4SI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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 Wed Dec 18 10:11:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Cherechesu X-Patchwork-Id: 13913333 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 DE400E77188 for ; Wed, 18 Dec 2024 10:12:52 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.860101.1272211 (Exim 4.92) (envelope-from ) id 1tNr2o-0007Y7-UU; Wed, 18 Dec 2024 10:12:42 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 860101.1272211; Wed, 18 Dec 2024 10:12:42 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2o-0007XG-Ot; Wed, 18 Dec 2024 10:12:42 +0000 Received: by outflank-mailman (input) for mailman id 860101; Wed, 18 Dec 2024 10:12:41 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1tNr2n-0006CD-9B for xen-devel@lists.xenproject.org; Wed, 18 Dec 2024 10:12:41 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20614.outbound.protection.outlook.com [2a01:111:f403:2612::614]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9c97bc98-bd28-11ef-99a3-01e77a169b0f; Wed, 18 Dec 2024 11:12:39 +0100 (CET) Received: from DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) by VI1PR04MB10026.eurprd04.prod.outlook.com (2603:10a6:800:1df::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Wed, 18 Dec 2024 10:12:34 +0000 Received: from DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f]) by DU0PR04MB9561.eurprd04.prod.outlook.com ([fe80::9808:be1a:b32:173f%6]) with mapi id 15.20.8251.015; Wed, 18 Dec 2024 10:12: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: 9c97bc98-bd28-11ef-99a3-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=wlCoSQqz3mzdGdJHIhxwnlmMGJYNYs2cO0iI4KDAkAx4g339+rfKPfTp4w+OjRtf1pwlplpact36mTIsZp8kZVDTucmyY3+AAPKLwdVjdWfBpwRFyJIF72YsmMHT9EVmuVtpdkr591bKFFUFV0dplB3gtjx0iVXbg5Vt0HmEH7fOTs9VpnoTPE6oeiPxh7vvgQljsQ77DNGrM5QCAXZvgBR/oFt//bLw4LVm45YdLdMyom8O9LIah91qzeeqGjD6i0n5HVZ0Oq68V8mz2CqaWR1eTOEsissx6ALnF3cm3rl3j0JLlJxmWkcpv2mcSyXhu2lVap2HOswvocJu74fHdA== 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=XJpPySu7rJ3nqxUBq15kb8jVZtfuU9mQxzBBdWlN/io=; b=h5Hc5ZehWpsJeq12ymKGea6tyXK+zPOrYTi0fVlWnVKAxc+cXxKhdWV4OEZi7thOBkIAWJNAsvDpk6yX+kPd2gLAvgSnJT8rApbsBsKx3hG0qo9lNCb5rhinQs+AfRsa2LqnqXMto2ebYS7ZiIFu1Kl6mjledwu1uzRLD3QQfWg7xh50arlSkbfqHGkoa5EsdTgCzFFGfkFklhRJTSSP1vRQP+IVG0W/Hqt66ynWpCZROPWBkCsHvjSqv0NPXnGbAfPFbW174B9NrpD1I2qjSr/fr53VMf7VZ5ZOqh+/oxdvIcxuqtO5ghB/ZkiNbSEGSgY+h4xpcErvhfzpC6HU8g== 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=XJpPySu7rJ3nqxUBq15kb8jVZtfuU9mQxzBBdWlN/io=; b=pY3w97SwhKsa7/nPhWZ8Y6K7rS4vCrRo8yAAKIXFQ8MOHYKTAIK++Hb6maUEcItoEM2OEjxJdN7Gjm+db5WqyaYUAp7RFmZK4WFbazQmot2qjAIg1SZxaUgO0nYS0kkoNO4ihLKhqz3QvZys+n7AYCvc8A4RPUgPQ18B/2EeDS6qvYdx3CUyAg+lvBpM2VCbTmIDXzYHEPd9ACy1fy8zHmYa1cncNXqGdKlpdp8cJZEVf29qKxGV/1MA8TMV33QX7RntQvwRq7a3T1SIyZdCsQ7J0/j0EmlyZ/CKCFfX7nhK7NzgenRhhOV9L5XOwtGh113bNxh/VHt4P/VSZ7qOAQ== 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 Subject: [PATCH v3 6/6] MAINTAINERS: Add myself as maintainer for NXP S32G3 Date: Wed, 18 Dec 2024 12:11:41 +0200 Message-ID: <20241218101142.1552618-7-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> References: <20241218101142.1552618-1-andrei.cherechesu@oss.nxp.com> X-ClientProxiedBy: AM0PR02CA0228.eurprd02.prod.outlook.com (2603:10a6:20b:28f::35) To DU0PR04MB9561.eurprd04.prod.outlook.com (2603:10a6:10:312::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9561:EE_|VI1PR04MB10026:EE_ X-MS-Office365-Filtering-Correlation-Id: a8fc64ad-e49d-4149-7a5d-08dd1f4c7d6c 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|376014|1800799024|366016|52116014|38350700014; X-Microsoft-Antispam-Message-Info: NllIbjJTQHbp+BYoLdkOg//O5hslMc4UxJijfwfREp7I5Xi9kq5VHENjcx6lmsMtP3mRi5WEE2IboyJ4NQjfc2z4QfEuQSS9uBRtpY21B/0KUEPlk2l8XN5gRMgYEOVPmIVeYex4t1mUrQdNcXie0E3e7YYnuzHYcC4Ty/y1TalEvT4vp03FldJXiUWhHuiS3q35BHNFG6As6YN/oPqs4vJlzcqsixItDUcM3wSMqqBfE+BrUDQ8aMM0mpDXUqISXuFNWVL+E41akg8IgiVQsgI0FNK4JXQ2ECyq+HtafvdLnOC9kOKwnKPBH+khYaT+IgElfQBayDFSGulWIQNV4C+PjzbNyW53ku3uVRHpObd+929dFOeKs3lhykiaf3GzWHI86Q97YzGsMSU7AJBBeQKjOHHpfjPzcUanTRrcOM06TxJon0cJtCRWzqIab1AbjksriV4ssavtwHVrC2T9H/zoHSVUtuFQqyx8RWiNCluJS40ITnBWYegX45zigKgBkoKlwX+iA9YxEklqB5Xi0My5IXBELNgQkAU5XfZbihiFIOlhi0gF0ett1R3l4n/7hKWH5JnfWAj9FztU4xY8A9xg9B0CEwa2GnRlHaCFJ6CU2uu9lg28pIza/w7HL8gnmjv0asHVPW/UceVieMkBr8dnGywrN/6v1pCiCz/SbkBmOPvgi2t3spAH1jsfg2CPfaUSC+kZbKygLZQUVa88bgSxuTMNDdXuiJ85pmn2VaIqBNI3FFNtK1O0XGRBPHyDSX2mREnEJ/3b50/OoF3QeQfMm8GqfJh60BQVCPbPF8Tf5kMGN8L9AtnsL4GgbVEhIcqIyjy3MeK1U6a+/r9/IP1jjBIx3zzbjhNI1qi8N8IQqhC7AAeX+0XNJPxIxJpjC6AWg115kqXEAEYx93NevMTXgrWlCzT27a9nIgmakHHHQF7IKKMQN48M6R6JZI8WCWEG5MCDePDCsq4CMTT56PNrSqf7aJ9CI+qEHP9jlgSqi4v/eel+ehbYOnaBtLaH5i5iAHs8v4N4lUINrlPwbdVAw4HKisn9ds9s3d5TVb4inLGme/s/uEn8h1oVJsyaAuSiOzbe7MaknNPNkUD3B4WrakJGKi5lgUT6VjRi/QktlZSkDlpV5oZe1/0gckwqw0DbDIuueu2L1QsR45ZnfnDmLmF8GbOCUk727WsjH8EwkxJYnHZa8HPSwGfQZInLJn7vYEWPAYuEi8bP/+pcQpaG83bD4oyG5u5BD3l3pXFbqDPsNPYp96DjkdLUxydGeAwwMqtZZMtLVY7noGNuVBj33v6BdIs3nZQ+R1cQpIJFgiciiY5pZNOchxaqbDNCsHeVfh61H3c8oEuCaWSibju6A9MFqQoD3V+nYssJKvNG45kiRrJ+yuKwjU85XwMg X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9561.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(1800799024)(366016)(52116014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: +RdquEdzX4tg5fb8T6aI+/Ii8OqxlZkLMSln/DrWUhaOoozt4B7aMsrGhYNASt1Z90juT5uH4e3ej2wSA3sy4kY7QtYbd6xd52eoiUrhP8NBAEwzMKxCTi38Y6cxbQcqgQQgBNOhTlXYTuLEAjdZG47gmgMP91CI7B2RP1Lu4qjm8kNPNGlwMOY8xR8jPR2N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h9qiQGTRxIXhP179ldVTONJXhj/NRqiZ0Q4jZmzddMbGhX+iB2W1sKF6HXeLMvUt2ulNnrcWpExhKtOPW+/+DHJFyOXd9RRQmajonz4VHJu7/DLDJxktMquR3hhjQHfzY9TDFpZrbiWrru/xB9s+y5F1c9zJ9frR1vlitVip8ZPcEnpfuTHo0BREYFUtIJbnLJtSp5wK4i1YvPoT7sFAUWfPY9PKMHzxilwywAoAEUdRAil5CEYQUP2FFeo9KzCdY+tDCu6jn5K3nJVarIjH/refZeHPNwK0E7o9RjG+uWOp7712Mp55+qG1oxl7nK+FfEZ3Im4w47M356oWLhw2K3hXxDj/KCplw== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a8fc64ad-e49d-4149-7a5d-08dd1f4c7d6c X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9561.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 10:12:34.0479 (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: NlOAv3E6YJ4vKPctrhUKKUxXCg933q8HYhD5RyvlyY1To3m0yYcHexLb6wEDCtD9IGZOsmcVE8JvL+7Ul7QagXxn3/fR4UkTtt22KBmi7wo= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB10026 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