From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696888; cv=pass; d=zohomail.com; s=zohoarc; b=X60sRI+Nt8pj9Y5s3hXGNycZz2JP8vbE6k6Fk0uG3d0Axr5OlQPTYPNCnVJIl2RkLmVjup2P1RXL9vgMIMEq+29my4smr3+IiZgUj3uqsFmsteUI8DQwZhLxJO7opNDMmUvoLKXaxvqNUFbB9oIDa+sRSETB4sM1RKWmRxjq3es= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696888; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=2yD9dpyaC7j6AhB7GDz/Y8ULhUmp9nJk5P6ogCO53y4=; b=nLi6jGzEWYVeYW9NBV/PRNgANsuRcatCx5AQdM8kNdUb3sM0VFpj+fJD50lo3pUlCVjDEU3mQSKCP5Wfvn5a/WnCQqgTH2t2Uhvh0yNiaJA1tSZR7GNum3o0xRqNQbWdJTXvEO9C44ZDqyZAUXpsOuUSsPQxaVLGxf9oKl+1dUc= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696888743114.57298795649012; Mon, 30 Sep 2024 04:48:08 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807251.1218579 (Exim 4.92) (envelope-from ) id 1svEsK-0000FE-LO; Mon, 30 Sep 2024 11:47:36 +0000 Received: by outflank-mailman (output) from mailman id 807251.1218579; Mon, 30 Sep 2024 11:47: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 1svEsK-0000Ef-Fw; Mon, 30 Sep 2024 11:47:36 +0000 Received: by outflank-mailman (input) for mailman id 807251; Mon, 30 Sep 2024 11:47:35 +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 1svEsJ-0000Cy-K2 for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:35 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20604.outbound.protection.outlook.com [2a01:111:f403:2613::604]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c884e92c-7f21-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 13:47:34 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:31 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:31 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: c884e92c-7f21-11ef-a0ba-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=JTHmlJ0xH7JYPpijBCcdmyhmquTVzK4+bZPUX1/VVgemreMreueL0OZKJIM2j5KGfTllIynX6/1PF8eqnq/Sz6g849WrQjdYANl57Iw4CafOopvW22MTcGzMZRcmia+p3LO06M4QW9nJUegLGlpquG3fIb8lrGgbb+A56mZCULTH2UjejEM3VVVjmny0vfKH8PNVtGt13Z/8LnJYu9iMMtPpOGBHupAMvNqG5jSVcs1Lp0KX63ivWE5cb21bIzS/XXdL/OQdxI4tJ0w1ZXjDvRwSr7Ke6Zd5d/pW/KX77ZCMx45lY1fndpLFNw7FgXy3SfeSfkvvg35r7UDzh3dd9A== 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=2yD9dpyaC7j6AhB7GDz/Y8ULhUmp9nJk5P6ogCO53y4=; b=iHDD6eoSEwWxEsrpgcWebl1e7GV2/njwJBsWRRuthwBRCV31oQNk1E35s8Tw8Y6S04iYZtBUexf24KiiUr8TSx3Ytn3ldQpoRlKiZS5OE2v9/eWQauMiRw9RCPR49qn8ogFVLhiCMJW0ewKKsSGvOhT6sykE3yrJtZGkr0es68DT6FuuPhkd6Bz4qSrV+xRqFrAcduHsSQ/5gbciB1kqL8Bp72EQAUwicB4Aats//q+xXdJzOCFr0myaLJsqjtqFy9V3FjuvN+j//XbHGkimSTQJHVAGv+5se9UyNz9vPEWFIbFDz3qu8tIsdGIX90fQGXozLrDHoXrFPknV34e3+A== 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=2yD9dpyaC7j6AhB7GDz/Y8ULhUmp9nJk5P6ogCO53y4=; b=d1z8crshe/JiNw/1Eb3Ad7tyfqu4LQCLhHVeyIxpn7tf6OlcEa4YUHgVVhOCNh9t1qllWTYhOMpea2nlHEcn9ZhfYYsLltHWwKFlMRnkpI0JcV4jbGPPgvVI2L7M5JPuQqCjrzgYgyK+Ot4U1cxT/TUPzLqm+k+vGJ2/HBuqCIbZQaQf0EkbXfZs4ndtp8NmpuWPKNXvUCGxROSd2CT+kuqOT1VIrp4bz4cGoexscJWY8GVDSl/K3mdSizEP1VNFsmioh1/F9IinjGvuFEkf69Yf8k663rlVBo7ZsGQ1OYS2BS4eEyI96hXJrRVyiiY8ZFKL7BCkauC17c/jvtSH4Q== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Andrew Cooper , Jan Beulich , s32@nxp.com Subject: [PATCH v2 1/8] xen/arm: Add NXP LINFlexD UART Driver Date: Mon, 30 Sep 2024 14:47:07 +0300 Message-ID: <20240930114715.642978-2-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: dfbdb444-a6bd-408d-2995-08dce145aac2 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?cTdFMNG7v8sv2c5+XcT7KvTqQzUkkb/d6xnOWcCEiXbB3Gj1OCLaZyj0yWjx?= =?us-ascii?Q?FXcSl3DEBRhkAdqjPuxM0ldSPO29fYhNKyesQ5ljZugHjnloYi2mQnjQww1/?= =?us-ascii?Q?DnVMrc3XbWj5y8CHMVLhePeYQIzMomgXPfQNe9O8ZWjIVO5MrHzcug99eCnA?= =?us-ascii?Q?/guEqPfnoX6tCQNnxmSO9MtUL1jkvGYZH3bJNCthSl72aGU2Q6Jv7qoSYWKC?= =?us-ascii?Q?JHgTf465SdnmGTUJTuwIL5nO7ThkKjrJRLKvLZKRZQ99p22jOsRiqq1PFQJZ?= =?us-ascii?Q?XCv2wqs8SUiugaNmB49ocrAf99IBv86Y/PKZRvGcRfzO2FBu0byRucFX8hCC?= =?us-ascii?Q?H00NXJtlDbuIAu7Xy1CGWVKIkOyYMQFMPDl+RbagTLWtukCUQCQT2sLNavtd?= =?us-ascii?Q?SAodygBkZfo/+pcBr+L2AUrBKmaDbx0LT2uLs/AED4TsENzzR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ZlN4xAPQB4utklg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?V8/MiaKwAOlIR0IrGVmN53mXH6IQsOvgjiE1TZVuKdTLvKmXEOJfux39hRe7?= =?us-ascii?Q?aeuEjoT1k/kHVx4Y+jigtkfPQq66WoiyyrYWuWqdvzmVP3hl4BtdrcpFnePa?= =?us-ascii?Q?lvZEetJTnO55BlU2YNsESZyHje6TEUsVzdLuivX1dtYHI5p/MUMYo6ZBJDdG?= =?us-ascii?Q?X115odtjImJ+BWD3orc27YRbFjGFh960YQKxg9XijYJXdWz5EKHAG35oW1Lh?= =?us-ascii?Q?HbdkN3xm713syt+oN/Igt3FRr30VOM0Vgarwm1WeUQVpj7UBP5mV2SsY6iDp?= =?us-ascii?Q?dhp47iNs3MlLXOcaZmTh3/2xJZswOoSXfsOs2CwQBLhG2Um82NLVJqCoIJP4?= =?us-ascii?Q?l5hO1Wos//uEaPOLTmx2MVxQgJDMyLGsiH8zTrbEz5rj0PKPAHnSLeXbKd7G?= =?us-ascii?Q?VDtUOTynHt0KkUO5+d0mBq7t1wgt9gTfx7a04HmNUuWHcUo3cleAUbpFT5Jr?= =?us-ascii?Q?sN5OnHCsFhCAA3w781bmnLyVGbUeQGddchzvH6ico769+kwqeObIuj2xFoOF?= =?us-ascii?Q?ONrEXnasKnJUJMhAjg/+v2lomb/W4FP/W4r1a8L5csAQcIhkL0VN8B+C4YxP?= =?us-ascii?Q?ai+nZwhlwovkoQtREbTn1sfZ34kKEVPpCax0n+6g16U+oO385C4tIG/lpLjo?= =?us-ascii?Q?CLW4KK4wkRnAKsUwWrWf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BsfsZrjz8?= =?us-ascii?Q?Cm8uStkPWy/4cPQfqqcIlXNi4xTX9COvi2eJ6SOBkgjhTBvJcf6itPanFfte?= =?us-ascii?Q?cA=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dfbdb444-a6bd-408d-2995-08dce145aac2 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:31.5613 (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: +o8a38Wt2OsuSH+0pm6GYrSmix7UykbZn3u3wELuEf2b9/9TGIYaCeQ8eGRaji7DGg9FgA0Bu9r8vEEvvWh3vjDz/yuux6uGq7BCwKWy2ts= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696889743116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu The LINFlexD UART is an UART controller available on NXP S32 processors family targeting automotive (for example: S32G2, S32G3, S32R). S32G3 Reference Manual: https://www.nxp.com/webapp/Download?colCode=3DRMS32G3. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van der Perk Acked-by: Julien Grall --- xen/arch/arm/include/asm/linflex-uart.h | 63 ++++ xen/drivers/char/Kconfig | 8 + xen/drivers/char/Makefile | 1 + xen/drivers/char/linflex-uart.c | 381 ++++++++++++++++++++++++ 4 files changed, 453 insertions(+) create mode 100644 xen/arch/arm/include/asm/linflex-uart.h create mode 100644 xen/drivers/char/linflex-uart.c diff --git a/xen/arch/arm/include/asm/linflex-uart.h b/xen/arch/arm/include= /asm/linflex-uart.h new file mode 100644 index 0000000000..95dcbcb476 --- /dev/null +++ b/xen/arch/arm/include/asm/linflex-uart.h @@ -0,0 +1,63 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/arch/arm/include/asm/linflex-uart.h + * + * Common constant definition between early printk and the UART driver + * for NXP LINFlexD UART. + * + * Andrei Cherechesu + * Copyright 2018, 2021, 2024 NXP + */ + +#ifndef __ASM_ARM_LINFLEX_UART_H +#define __ASM_ARM_LINFLEX_UART_H + +/* 32-bit register offsets */ +#define LINCR1 (0x0) +#define LINIER (0x4) +#define LINSR (0x8) +#define UARTCR (0x10) +#define UARTSR (0x14) +#define LINFBRR (0x24) +#define LINIBRR (0x28) +#define BDRL (0x38) +#define BDRM (0x3C) +#define UARTPTO (0x50) + +#define LINCR1_INIT BIT(0, U) +#define LINCR1_MME BIT(4, U) +#define LINCR1_BF BIT(7, U) + +#define LINSR_LINS GENMASK(15, 12) +#define LINSR_LINS_INIT BIT(12, U) + +#define LINIER_DRIE BIT(2, U) +#define LINIER_DTIE BIT(1, U) + +#define UARTCR_UART BIT(0, U) +#define UARTCR_WL0 BIT(1, U) +#define UARTCR_PC0 BIT(3, U) +#define UARTCR_TXEN BIT(4, U) +#define UARTCR_RXEN BIT(5, U) +#define UARTCR_PC1 BIT(6, U) +#define UARTCR_TFBM BIT(8, U) +#define UARTCR_RFBM BIT(9, U) +#define UARTCR_RDFLRFC GENMASK(12, 10) +#define UARTCR_TDFLTFC GENMASK(15, 13) +#define UARTCR_ROSE BIT(23, U) +#define UARTCR_OSR_SHIFT (24) +#define UARTCR_OSR GENMASK(27, UARTCR_OSR_SHIFT) + +#define UARTSR_DTFTFF BIT(1, U) +#define UARTSR_DRFRFE BIT(2, U) + +#endif /* __ASM_ARM_LINFLEX_UART_H */ + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ diff --git a/xen/drivers/char/Kconfig b/xen/drivers/char/Kconfig index 3f836ab301..e175d07c02 100644 --- a/xen/drivers/char/Kconfig +++ b/xen/drivers/char/Kconfig @@ -13,6 +13,14 @@ config HAS_CADENCE_UART This selects the Xilinx Zynq Cadence UART. If you have a Xilinx Zynq based board, say Y. =20 +config HAS_LINFLEX + bool "NXP LINFlexD UART driver" + default y + depends on ARM_64 + help + This selects the NXP LINFlexD UART. If you have an NXP S32G or S32R + based board, say Y. + config HAS_IMX_LPUART bool "i.MX LPUART driver" default y diff --git a/xen/drivers/char/Makefile b/xen/drivers/char/Makefile index e7e374775d..d3b987da1d 100644 --- a/xen/drivers/char/Makefile +++ b/xen/drivers/char/Makefile @@ -10,6 +10,7 @@ obj-$(CONFIG_HAS_SCIF) +=3D scif-uart.o obj-$(CONFIG_HAS_EHCI) +=3D ehci-dbgp.o obj-$(CONFIG_XHCI) +=3D xhci-dbc.o obj-$(CONFIG_HAS_IMX_LPUART) +=3D imx-lpuart.o +obj-$(CONFIG_HAS_LINFLEX) +=3D linflex-uart.o obj-$(CONFIG_ARM) +=3D arm-uart.o obj-y +=3D serial.o obj-$(CONFIG_XEN_GUEST) +=3D xen_pv_console.o diff --git a/xen/drivers/char/linflex-uart.c b/xen/drivers/char/linflex-uar= t.c new file mode 100644 index 0000000000..2fa195cbf6 --- /dev/null +++ b/xen/drivers/char/linflex-uart.c @@ -0,0 +1,381 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/drivers/char/linflex-uart.c + * + * Driver for NXP LINFlexD UART. + * + * Andrei Cherechesu + * Copyright 2018, 2021-2022, 2024 NXP + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define LINFLEX_CLK_FREQ (125000000) +#define LINFLEX_MAX_BAUDRATE (2000000) +#define LINFLEX_BAUDRATE (115200) +#define LINFLEX_LDIV_MULTIPLIER (16) + +static struct linflex_uart { + uint32_t baud, clock_hz; + uint32_t irq; + char __iomem *regs; + struct irqaction irqaction; + struct vuart_info vuart; +} linflex_com; + +static uint32_t linflex_uart_readl(const struct linflex_uart *uart, + uint32_t off) +{ + return readl(uart->regs + off); +} + +static void linflex_uart_writel(const struct linflex_uart *uart, uint32_t = off, + uint32_t val) +{ + writel(val, uart->regs + off); +} + +static void linflex_uart_writeb(const struct linflex_uart *uart, uint32_t = off, + uint8_t val) +{ + writeb(val, uart->regs + off); +} + +static uint32_t linflex_uart_get_osr(uint32_t uartcr) +{ + return (uartcr & UARTCR_OSR) >> UARTCR_OSR_SHIFT; +} + +static bool linflex_uart_tx_fifo_mode(const struct linflex_uart *uart) +{ + return !!(linflex_uart_readl(uart, UARTCR) & UARTCR_TFBM); +} + +static bool linflex_uart_rx_fifo_mode(const struct linflex_uart *uart) +{ + return !!(linflex_uart_readl(uart, UARTCR) & UARTCR_RFBM); +} + +static uint32_t linflex_uart_ldiv_multiplier(const struct linflex_uart *ua= rt) +{ + uint32_t uartcr, mul =3D LINFLEX_LDIV_MULTIPLIER; + + uartcr =3D linflex_uart_readl(uart, UARTCR); + if ( uartcr & UARTCR_ROSE ) + mul =3D linflex_uart_get_osr(uartcr); + + return mul; +} + +static void linflex_uart_flush(struct serial_port *port) +{ + const struct linflex_uart *uart =3D port->uart; + + if ( linflex_uart_tx_fifo_mode(uart) ) + while ( linflex_uart_readl(uart, UARTCR) & UARTCR_TDFLTFC ) + cpu_relax(); + + if ( linflex_uart_rx_fifo_mode(uart) ) + while ( linflex_uart_readl(uart, UARTCR) & UARTCR_RDFLRFC ) + cpu_relax(); +} + +static void __init linflex_uart_init_preirq(struct serial_port *port) +{ + struct linflex_uart *uart =3D port->uart; + uint32_t ibr, fbr, divisr, dividr, ctrl; + + /* Disable RX/TX before init mode */ + ctrl =3D linflex_uart_readl(uart, UARTCR); + ctrl &=3D ~(UARTCR_RXEN | UARTCR_TXEN); + linflex_uart_writel(uart, UARTCR, ctrl); + + /* + * Smoothen the transition from early_printk by waiting + * for all pending characters to transmit + */ + linflex_uart_flush(port); + + /* Init mode */ + ctrl =3D LINCR1_INIT; + linflex_uart_writel(uart, LINCR1, ctrl); + + /* Waiting for init mode entry */ + while ( (linflex_uart_readl(uart, LINSR) & LINSR_LINS) !=3D LINSR_LINS= _INIT ) + cpu_relax(); + + /* Set Master Mode */ + ctrl |=3D LINCR1_MME; + linflex_uart_writel(uart, LINCR1, ctrl); + + if ( uart->baud > LINFLEX_MAX_BAUDRATE ) + uart->baud =3D LINFLEX_MAX_BAUDRATE; + + /* Provide data bits, parity, stop bit, etc */ + divisr =3D uart->clock_hz; + dividr =3D uart->baud * linflex_uart_ldiv_multiplier(uart); + + ibr =3D divisr / dividr; + fbr =3D ((divisr % dividr) * 16 / dividr) & 0xF; + + linflex_uart_writel(uart, LINIBRR, ibr); + linflex_uart_writel(uart, LINFBRR, fbr); + + /* Set preset timeout register value */ + linflex_uart_writel(uart, UARTPTO, 0xF); + + /* Setting UARTCR[UART] bit is required for writing other bits in UART= CR */ + linflex_uart_writel(uart, UARTCR, UARTCR_UART); + + /* 8 bit data, no parity, UART mode, Buffer mode */ + linflex_uart_writel(uart, UARTCR, UARTCR_PC1 | UARTCR_PC0 | UARTCR_WL0= | + UARTCR_UART); + + /* end init mode */ + ctrl =3D linflex_uart_readl(uart, LINCR1); + ctrl &=3D ~LINCR1_INIT; + linflex_uart_writel(uart, LINCR1, ctrl); + + /* Enable RX/TX after exiting init mode */ + ctrl =3D linflex_uart_readl(uart, UARTCR); + ctrl |=3D UARTCR_RXEN | UARTCR_TXEN; + linflex_uart_writel(uart, UARTCR, ctrl); +} + +static void linflex_uart_interrupt(int irq, void *data) +{ + struct serial_port *port =3D data; + const struct linflex_uart *uart =3D port->uart; + uint32_t sts; + + sts =3D linflex_uart_readl(uart, UARTSR); + + if ( sts & UARTSR_DRFRFE ) + serial_rx_interrupt(port); + + if ( sts & UARTSR_DTFTFF ) + serial_tx_interrupt(port); +} + +static void __init linflex_uart_init_postirq(struct serial_port *port) +{ + struct linflex_uart *uart =3D port->uart; + uint32_t temp; + + uart->irqaction.handler =3D linflex_uart_interrupt; + uart->irqaction.name =3D "linflex_uart"; + uart->irqaction.dev_id =3D port; + + if ( setup_irq(uart->irq, 0, &uart->irqaction) !=3D 0 ) + { + printk("linflex-uart: Failed to allocate IRQ %d\n", uart->irq); + return; + } + + /* Enable interrupts */ + temp =3D linflex_uart_readl(uart, LINIER); + temp |=3D (LINIER_DRIE | LINIER_DTIE); + linflex_uart_writel(uart, LINIER, temp); + printk("linflex-uart: IRQ %d enabled\n", uart->irq); +} + +static int linflex_uart_tx_ready(struct serial_port *port) +{ + const struct linflex_uart *uart =3D port->uart; + + if ( linflex_uart_tx_fifo_mode(uart) ) + return (linflex_uart_readl(uart, UARTSR) & UARTSR_DTFTFF) =3D=3D 0= ? 1 : 0; + + /* + * Buffer Mode =3D> TX is waited to be ready after sending a char, + * so we can assume it is always ready before. + */ + return 1; +} + +static void linflex_uart_putc(struct serial_port *port, char c) +{ + const struct linflex_uart *uart =3D port->uart; + uint32_t uartsr; + + if ( c =3D=3D '\n' ) + linflex_uart_putc(port, '\r'); + + linflex_uart_writeb(uart, BDRL, c); + + /* Buffer Mode */ + if ( !linflex_uart_tx_fifo_mode(uart) ) + { + while ( (linflex_uart_readl(uart, UARTSR) & UARTSR_DTFTFF) =3D=3D = 0 ) + cpu_relax(); + + uartsr =3D linflex_uart_readl(uart, UARTSR) | (UARTSR_DTFTFF); + linflex_uart_writel(uart, UARTSR, uartsr); + } +} + +static int linflex_uart_getc(struct serial_port *port, char *pc) +{ + const struct linflex_uart *uart =3D port->uart; + uint32_t ch, uartsr, rx_fifo_mode; + + rx_fifo_mode =3D linflex_uart_rx_fifo_mode(uart); + + if ( rx_fifo_mode ) + while ( linflex_uart_readl(uart, UARTSR) & UARTSR_DRFRFE ) + cpu_relax(); + else + while ( !(linflex_uart_readl(uart, UARTSR) & UARTSR_DRFRFE) ) + cpu_relax(); + + ch =3D linflex_uart_readl(uart, BDRM); + *pc =3D ch & 0xff; + + if ( !rx_fifo_mode ) { + uartsr =3D linflex_uart_readl(uart, UARTSR) | UARTSR_DRFRFE; + linflex_uart_writel(uart, UARTSR, uartsr); + } + + return 1; +} + +static int __init linflex_uart_irq(struct serial_port *port) +{ + const struct linflex_uart *uart =3D port->uart; + + return ((uart->irq > 0) ? uart->irq : -1); +} + +static const struct vuart_info *linflex_vuart_info(struct serial_port *por= t) +{ + const struct linflex_uart *uart =3D port->uart; + + return &uart->vuart; +} + +static void linflex_uart_start_tx(struct serial_port *port) +{ + const struct linflex_uart *uart =3D port->uart; + uint32_t temp; + + temp =3D linflex_uart_readl(uart, LINIER); + linflex_uart_writel(uart, LINIER, temp | LINIER_DTIE); +} + +static void linflex_uart_stop_tx(struct serial_port *port) +{ + const struct linflex_uart *uart =3D port->uart; + uint32_t temp; + + temp =3D linflex_uart_readl(uart, LINIER); + temp &=3D ~(LINIER_DTIE); + linflex_uart_writel(uart, LINIER, temp); +} + +static struct uart_driver __read_mostly linflex_uart_driver =3D { + .init_preirq =3D linflex_uart_init_preirq, + .init_postirq =3D linflex_uart_init_postirq, + .tx_ready =3D linflex_uart_tx_ready, + .putc =3D linflex_uart_putc, + .flush =3D linflex_uart_flush, + .getc =3D linflex_uart_getc, + .irq =3D linflex_uart_irq, + .start_tx =3D linflex_uart_start_tx, + .stop_tx =3D linflex_uart_stop_tx, + .vuart_info =3D linflex_vuart_info, +}; + +static int __init linflex_uart_init(struct dt_device_node *dev, const void= *data) +{ + const char *config =3D data; + struct linflex_uart *uart; + paddr_t addr, size; + uint32_t baud =3D 0; + int res; + + if ( strcmp(config, "") ) + { + baud =3D simple_strtoul(config, &config, 10); + if ( strcmp(config, "") ) + printk("linflex-uart: Only baud rate is configurable, discardi= ng other options: %s\n", + config); + } + else + { + /* Configuration not provided, use a default one */ + baud =3D LINFLEX_BAUDRATE; + printk("linflex-uart: Baud rate not provided, using %d as default\= n", + baud); + } + + uart =3D &linflex_com; + + res =3D dt_device_get_paddr(dev, 0, &addr, &size); + if ( res ) + { + printk("linflex-uart: Unable to retrieve the base address of the U= ART\n"); + return res; + } + + res =3D platform_get_irq(dev, 0); + if ( res < 0 ) + { + printk("linflex-uart: Unable to retrieve the IRQ\n"); + return -EINVAL; + } + uart->irq =3D res; + + uart->regs =3D ioremap_nocache(addr, size); + if ( !uart->regs ) + { + printk("linflex-uart: Unable to map the UART memory\n"); + return -ENOMEM; + } + + uart->baud =3D baud; + uart->clock_hz =3D LINFLEX_CLK_FREQ; + + uart->vuart.base_addr =3D addr; + uart->vuart.size =3D size; + uart->vuart.data_off =3D BDRL; + uart->vuart.status_off =3D UARTSR; + uart->vuart.status =3D UARTSR_DTFTFF; + + /* Register with generic serial driver */ + serial_register_uart(SERHND_DTUART, &linflex_uart_driver, uart); + + dt_device_set_used_by(dev, DOMID_XEN); + + return 0; +} + +static const struct dt_device_match linflex_uart_dt_compat[] __initconst = =3D +{ + DT_MATCH_COMPATIBLE("nxp,s32g2-linflexuart"), + DT_MATCH_COMPATIBLE("nxp,s32g3-linflexuart"), + DT_MATCH_COMPATIBLE("fsl,s32v234-linflexuart"), + { /* sentinel */ }, +}; + +DT_DEVICE_START(linflex_uart, "NXP LINFlexD UART", DEVICE_SERIAL) + .dt_match =3D linflex_uart_dt_compat, + .init =3D linflex_uart_init, +DT_DEVICE_END + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696887; cv=pass; d=zohomail.com; s=zohoarc; b=I+os0SVqHssv7oX3ohr3AGaZ1YTqc1lTgUPjlaj5Mf/zS51YLnM/QFVGr2HqmzxYQQrZsmYbcBcYKEtKAl0uchZ2MA05cS0z3h5NaSPGjgyKrzzPzKG0BLnZqRflPpE+0sEhvKFZLXqkLL8tlsfy3cnI7NJ4Xxyyx1B1oLtDbyM= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696887; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XqXlCdVjUT3pnys22jpUDXfmJf7XqwEbQ1D4Bno9CNY=; b=B+SgOghG7BsZn5IYhT8JH4WSJu93KjksWlz6ebCMX/8blvxo2thB0/QsVczktpt2w47zyhVpY5McXw29E0uUk1YIFu5Cr5urvSzhunuDlKBraQsazz5YN0GOs92N+IJCDzXHqUFqQSuLksDZHKC0y4IMr+KkZ02fxrfHGe0djgY= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696887688727.7263972151602; Mon, 30 Sep 2024 04:48:07 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807252.1218593 (Exim 4.92) (envelope-from ) id 1svEsL-0000gP-Tk; Mon, 30 Sep 2024 11:47:37 +0000 Received: by outflank-mailman (output) from mailman id 807252.1218593; Mon, 30 Sep 2024 11:47:37 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svEsL-0000gI-Pu; Mon, 30 Sep 2024 11:47:37 +0000 Received: by outflank-mailman (input) for mailman id 807252; Mon, 30 Sep 2024 11:47:36 +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 1svEsK-0000Cy-KK for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:36 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20604.outbound.protection.outlook.com [2a01:111:f403:2613::604]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c8e1ec86-7f21-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 13:47:35 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:32 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:32 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: c8e1ec86-7f21-11ef-a0ba-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XnFL9mAX0A6+3PNmDCr3zbsV5TEaKxBBm11xZXDCVcP3i59NL0Pg9AokhWgMmse4EDWgKU0l4uVD53cjeTDMiz2OiP2jFV0rdrIFoSWXjgsJ/vWW/gjO8GW1g8O51IXJSWhaqOz9RwO1sxPHM1JET5dF+qR24Spc+JVkUzEQPy0qkla6iYdkY7pNIOuO8f3Xhmf9j49ycefg1GJ6rmYnRqNyfEpiCX9Z/p32qEmVm5N8x7LKivGBAXIYUwHjF6uFRU3AO2YyoVZZyu3kpRVeFxqDM1tt9cAq0QHD2il3x58ILdFEXy0YPsfMvfJS6LrorZVRNd50BO5sTTZU70wHfw== 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=XqXlCdVjUT3pnys22jpUDXfmJf7XqwEbQ1D4Bno9CNY=; b=k7033n+eqWqct7VXLGZtpV+jeHm3CkI+BJaCyltMuZJoK+1oWpC0VO+KtR9xN2meTUhKpfWMYgJasTBikTeGzOEie1kkEBZDzelNaoOQQbU2aQpM00an5aYTpZIwpLrh0GxUdMoeUisY3ns9OuQ1OQF+5wdXjtQL0SAW9riEzUrA2q3dZ1396lfxtxMTOfDLMExfZSF0JFblgRU5uGREJpKf2/Qxctl1/ZqrJdB+JO9sP2kjfYnDp6O7VljNnfrrUMHWfbrVxwWbVkE6L/d/i6doDPKWcf7y/EzHzzKiSG0FBzUHr1SqQChFsL6/BEJ1lWso9+SHbCzXvHL9a43aVg== 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=XqXlCdVjUT3pnys22jpUDXfmJf7XqwEbQ1D4Bno9CNY=; b=vKNQrVwCnup+P9M6CPo5ZktKx6m0TAhj4OdPbc1Fzu2kmC0I2kfIF6tEOmUmSAwXn2Am5aZY5OttmzOAPsI+r5bHkLJ8KZf0BGsLzRbkql59Rl/53IDogKwR6NSmHWti9QQFLXPBi9FWIAEWtZbi1oGIK4CRJEXUhDyk8thauKTvlah/C2EsTnbrIQvLQKsd3Luf7yutHm2Hj3eGTY8uZcPEJSjDT3BcUDWgOO0GU80VqibQPeF7Uoz6Kzo0YQiomRESnSUkV3Gx0Dzb4+UN0JWSyQskWJ/5kk+5I+a1YQSOxfP5Q9Cys1P2bcFbP4i3wjULKHSUZPmOXTDIi9NXWw== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , Julien Grall Subject: [PATCH v2 2/8] xen/arm: Add NXP LINFlexD UART early printk support Date: Mon, 30 Sep 2024 14:47:08 +0300 Message-ID: <20240930114715.642978-3-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: 11fbbcbf-a3b8-4934-f894-08dce145ab64 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?RsYE4EDMQwmD93BnqXN7njHfjj1rOK///GDoy2PxInVmbWPRgaNlvAYQ0wdP?= =?us-ascii?Q?fC1xT38Wh3H4yu9K+No+R3vXIkQtmlU5OZ7PN9T6hRABNHxw/lAYZvEDTMlz?= =?us-ascii?Q?THk1T+N+1XzxYWhEY2rGWazqtNmQcLqXY1tOHe4moTZbJCqHvrmvyv/u7y+g?= =?us-ascii?Q?V5VRXVMtsVUP8P8heUjoDIEplz+nQSmQU2DDFp9afazNle6DTKUfcEOJSV8v?= =?us-ascii?Q?QKGQC/9zGcEC25tJu1GEMsYDVG9vK2I1VWpX8lrYuRALhSGc7RiXlaovHgu9?= =?us-ascii?Q?D4vJ+u/e396ysnebSJULdBciI+E1FhCP7Iu/x6gXMQtT/EHiGPkp4WDeDvIc?= =?us-ascii?Q?sUv87Tfu8JYptKGCWVIkf0ACjGg4LMy3Xp9zzb/2CrMHNanQkOBoV9ZLX9G6?= =?us-ascii?Q?6UhQXtSguOLq0KpWFS1yc8pOEqz/YIGecjuzvZotHiWka7wOY22XzHlnKZ5Z?= =?us-ascii?Q?jyKbpnvbc9F1cv8mshz+TyyxMLgMVAwqMz7N9Rp9zWRyFkNYSY/qjZd/Yewo?= =?us-ascii?Q?mijA9MR6BOOsp5M9OWLyFCeRbQ74ECYO22qJIsYd+ftWsGcqcE4pNeLtgQK1?= =?us-ascii?Q?+pmEHrCgUT36cadjF6wkCbhvQYvu9n9lkPMf99d57JatBRBRyCR/a9IlmrnK?= =?us-ascii?Q?/LcLQEPbUZ53wOvgRzec/E/g9GWb4ounpzccbWXIFWdHnTXeKbmiysom9Vby?= =?us-ascii?Q?4KZbn4VbQEesUXCWk7IKJdAOYytck7lH7JaTeG071A2gSzAvQ6qWHWL1jyKi?= =?us-ascii?Q?3Alk09c91YTllIru8hNA4Lt+r7qG5jBxM2y/pgu6rbrClVSgvLtVywSQB39z?= =?us-ascii?Q?9UuktIacMmq4nJnZOIdJcPWnkfIuY+SuvP006XXP6sWeNVm8RWIJlkzZdTeK?= =?us-ascii?Q?Xgr9NYB+pQT0jH8Betw64zuMt6dFRuFimz1bLPBDKImR6GnYTuujyI9q3Zzi?= =?us-ascii?Q?e3/kQP8tp2g3QQVT84iVTBFJ2lUnLTtbUvpGvuGcHlJtmGMFk7lnj+K/I5ZJ?= =?us-ascii?Q?b+54za7Ug04w4joID5Pdb/88LP3KNf5YwRG5allRVTJ3/GvR3tA9gZYBNGcI?= =?us-ascii?Q?7pUgiEaLJLsDn6K5pWN/7HSsJygZjRQzQnlzIxa7o4/ATAVc7SzIYU+9q9PN?= =?us-ascii?Q?uEHX6enm8YtbAkkHiJTFpUQ76S3zbztyI5/qbivV3lqAmJzPwlwi1MhI25nG?= =?us-ascii?Q?6BKJXCn5sG8L76Kc1RISlhPwKWUufKxy1+sWfwSvnO9yFz++BncMW4cO6sdc?= =?us-ascii?Q?pHLUxOsKsmYdmN2LsYCd84dWs6f+9MFJi5MpiyIGxXRrrhcGZ3GdZRlISfd5?= =?us-ascii?Q?lz8K7Z4rSkIQgCyK26aFn9zx4g6sOxCbJY2xqrWoZHqx+A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?bxyLSXUGR+CSjGtt8M8P+1rnKyTUiIDotuJyfPriDkbnyqRQ3VCrmPhfRmfL?= =?us-ascii?Q?Af1xOiO8GbDD4cY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i4bzUpP+9hVl?= =?us-ascii?Q?nAQPm5rG91nrxx3j73J9TDExoaZ46fs65TJJoxgtKpXUJBfWthIwEJM+mWGG?= =?us-ascii?Q?7iP0/z+mO3lxidyuu+ctRqbSO/pC2WlY3iwWcA8DIVVoitxnYuKOJYs2I33w?= =?us-ascii?Q?7CDyYO96EgRlLLmkfkaUbwckxQlbfybvG+K/Wn/EgsCoct8Q2uztcaT7gJo6?= =?us-ascii?Q?AofCAoOTReukVsUMRmEmCK2Em/iNkuIhmPylIw/qh8+pCLHVGb/Z3G40sETn?= =?us-ascii?Q?a4xq00kclYQxvSsQDPkq0g6GLSIoAWkAOo/cqyDldHxP9INSFJecljOTruRy?= =?us-ascii?Q?uVL0auNUJUhEJo4vhLPaft68Y8we+DUg6Xn9Crb/mivwogg8BM/yMrIDeN8q?= =?us-ascii?Q?juN9wiimLQ870SipyyYnC1QRpb1Iskjd0QTNSdbtX5nZDajAa3Rv18iFxvXQ?= =?us-ascii?Q?R7XSIBtPOZe3J3YFvArCZSHFxZcEhfc38AvjkgOlaWSyUlP5dpXAP99xOgUY?= =?us-ascii?Q?Gh3FBe12DTfICdrJWSmqc9zJXe3cv5LF1lG4Z7C2AkvKdhwGJ0IwqnV/eGVL?= =?us-ascii?Q?OnvvqvUzBgUEIm3W71p6jKLmgAsN8IBqF1cLBdA2QQMrZnFJ4EZbX1reHcaM?= =?us-ascii?Q?x6qJDJOhB5JSdKveXVzsZTgw6Bu84dsZ5aQLX5CStkJIUuotblItIJIFBU+f?= =?us-ascii?Q?Iw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11fbbcbf-a3b8-4934-f894-08dce145ab64 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:32.6137 (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: RivES07KSmjU35HVIKyjgIz9UJSNM6nWeKhqP8Z+6/vSyCDrGow4OlM1OQaaKX8hMSey5ilRPb4CquXF+jMV3rusTZKhFy1OOnNinJgpzgI= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696889666116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu This adds support for early printk debug via the NXP LINFlexD UART controller. Signed-off-by: Andrei Cherechesu Signed-off-by: Peter van der Perk Acked-by: Julien Grall --- xen/arch/arm/Kconfig.debug | 12 ++++++ xen/arch/arm/arm64/debug-linflex.inc | 58 ++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 xen/arch/arm/arm64/debug-linflex.inc diff --git a/xen/arch/arm/Kconfig.debug b/xen/arch/arm/Kconfig.debug index 2fa0acd2a3..7660e599c0 100644 --- a/xen/arch/arm/Kconfig.debug +++ b/xen/arch/arm/Kconfig.debug @@ -44,6 +44,14 @@ choice Say Y here if you wish the early printk to direct their output to a i.MX LPUART. =20 + config EARLY_UART_CHOICE_LINFLEX + select EARLY_UART_LINFLEX + depends on ARM_64 + bool "Early printk via NXP LINFlexD UART" + help + Say Y here if you wish the early printk to direct their + output to an NXP LINFlexD UART. + config EARLY_UART_CHOICE_MESON select EARLY_UART_MESON depends on ARM_64 @@ -89,6 +97,9 @@ config EARLY_UART_EXYNOS4210 config EARLY_UART_IMX_LPUART select EARLY_PRINTK bool +config EARLY_UART_LINFLEX + select EARLY_PRINTK + bool config EARLY_UART_MESON select EARLY_PRINTK bool @@ -167,6 +178,7 @@ config EARLY_PRINTK_INC default "debug-cadence.inc" if EARLY_UART_CADENCE default "debug-exynos4210.inc" if EARLY_UART_EXYNOS4210 default "debug-imx-lpuart.inc" if EARLY_UART_IMX_LPUART + default "debug-linflex.inc" if EARLY_UART_LINFLEX default "debug-meson.inc" if EARLY_UART_MESON default "debug-mvebu.inc" if EARLY_UART_MVEBU default "debug-pl011.inc" if EARLY_UART_PL011 diff --git a/xen/arch/arm/arm64/debug-linflex.inc b/xen/arch/arm/arm64/debu= g-linflex.inc new file mode 100644 index 0000000000..cf4f5ce224 --- /dev/null +++ b/xen/arch/arm/arm64/debug-linflex.inc @@ -0,0 +1,58 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/arch/arm/arm64/debug-linflex.inc + * + * NXP LINFlexD UART specific debug code + * + * Andrei Cherechesu + * Copyright 2018, 2021, 2023-2024 NXP + */ + +#include +#include + +/* + * wait LINFlexD UART to be ready to transmit + * xb: register which contains the UART base address + * c: scratch register number + */ +.macro early_uart_ready xb, c + ldr w\c, [\xb, #UARTCR] /* <=3D Control Register */ + and w\c, w\c, #UARTCR_TFBM /* Check Buffer/FIFO (0/1) Mode */ + cbz w\c, 2f /* Buffer Mode =3D> return */ +1: + ldrb w\c, [\xb, #UARTSR] /* <=3D Status Register */ + tst w\c, #UARTSR_DTFTFF /* FIFO Mode =3D> Check DTF bit */ + b.ne 1b +2: +.endm + +/* + * LINFlexD UART transmit character + * xb: register which contains the UART base address + * wt: register which contains the character to transmit + */ +.macro early_uart_transmit xb, wt + strb \wt, [\xb, #BDRL] + + ldr \wt, [\xb, #UARTCR] /* <=3D Control Register */ + and \wt, \wt, #UARTCR_TFBM /* Check Buffer/FIFO (0/1) Mode */ + cbnz \wt, 2f /* FIFO Mode =3D> goto exit */ + +3: /* Buffer Mode */ + ldrb \wt, [\xb, #UARTSR] /* <=3D Status Register */ + and \wt, \wt, #UARTSR_DTFTFF /* Check Transmission Completed */ + cbz \wt, 3b + + ldr \wt, [\xb, #UARTSR] /* <=3D Status Register */ + orr \wt, \wt, #UARTSR_DTFTFF /* Clear DTF bit */ + str \wt, [\xb, #UARTSR] +2: +.endm + +/* + * Local variables: + * mode: ASM + * indent-tabs-mode: nil + * End: + */ --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696888; cv=pass; d=zohomail.com; s=zohoarc; b=DBS4xbYnf6K4p45UUbnirFJ/QQ/QctxHmT4Xshl1swmbjT+4C0+jN032mkhXOtU2w2SmbDJXD3zPjQQAO23yYqyXXRHC/62gJGbRyocojeC1hZXi2HICxXz1soxDMYzaHH9iBNd+sVJE2+w6iFHVJ9RHLX+axWND7KLW4RR/3+I= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696888; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=6y/NKPJmOcBVTeXUQHUvTBNywNYLbjwPhMoJ6DJlPcY=; b=LRpWx4NjJRxVbHrLozCUMqGnHtmBOfOzvEwTUdUJTIDSvkvgCeZdxeCAEM0+I9OYskzGh8tgwNsN/e/wqMAx1anXo7pZafvfAaxnSFWw1Kb1OGj+S9TGiDvdcgvXvrjOCe0mOfJWoDvHmgAWe83/6pWZEJ0d4RWv5SgMDNRTjck= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696888661678.9185245753235; Mon, 30 Sep 2024 04:48:08 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807253.1218597 (Exim 4.92) (envelope-from ) id 1svEsM-0000jj-8T; Mon, 30 Sep 2024 11:47:38 +0000 Received: by outflank-mailman (output) from mailman id 807253.1218597; Mon, 30 Sep 2024 11:47: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 1svEsM-0000im-3U; Mon, 30 Sep 2024 11:47:38 +0000 Received: by outflank-mailman (input) for mailman id 807253; Mon, 30 Sep 2024 11:47:37 +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 1svEsL-0000Cy-Ke for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:37 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20603.outbound.protection.outlook.com [2a01:111:f403:2613::603]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c9445154-7f21-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 13:47:36 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:34 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:33 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: c9445154-7f21-11ef-a0ba-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xm+o2I8NUtHsZTt1Y1ueSqpRH+16cETNR6Bow8ZnJPMVCsq8UyhnprbruzcQvrnUOpt7Kaa0ZmNoL976kL3wcUeQbB4QOfLStP3JqBjWZQLNnYU/0nNJSva66T1Tb2YeSwfpOPtrjwgkt9eNjbeQLa5lhDNcU0tj+rTkZuxdqQdjmR9CtsrdYOiXEqeT96/e4ZVTbb7f2S7s9eovorAhoUQC5q8/22iFmhbR8YI5mpwOwfaGySgUzwiuY1zcmkw1YR6XMGUlUx8afQ7L81/XilPo6KnXAN4VMOweRbGz9TLhm5Wr6rQIMlbFQF2WZKC2oPxIdBx4bd3NfKuuJOTV7Q== 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=6y/NKPJmOcBVTeXUQHUvTBNywNYLbjwPhMoJ6DJlPcY=; b=AosIIBCy8M5jBn6Rc0RhUtkTZP/eCf6sjtxUBZx3Z5nqkqfRBxZ6+sTe5tAf5LO52e8v6ja0nnK//MOt5IXK59aSyZ45Fg/E+FX1WmWc3NKLPQWR+YGnGscuqOO4lMhYbKcWtctK2O3xr+tZW6aLPKJ1Ykohz4emzIZmXAGcjJUETE2UupOqPzTTxuC5bH2QATUdIC02IMIEeh2YPoRuMaKrdb/Xwslbg9BKldseFtalL4h+CLtjsRXOMbJ+XP2q51RY75hJSa+Nkd/0TGaJ9u4Yvelhc/cvQqHn2xKXtYvxBYDSISynMWBAM+Z/2qza0rJcMoDT7sPNzmQGGLM32g== 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=6y/NKPJmOcBVTeXUQHUvTBNywNYLbjwPhMoJ6DJlPcY=; b=JXdciUNgtYOCIL0hEi6fsCHoSW+2w5lmLHz+UcrfADE+e81BXJVt54Vp+cV4Y/wGmw4v+saRjVsSFkv2Szn/l9TzaVB7itcZdEibwkD7SyhyO4AEoGlUWEKMTpe1ewDVmAG6jBeQMuYgbG6/iuaHGPTAG6EfBDzyjxd7WE82dBna/vLkv5LrAziF8ICHkztRVhYGnbwetB0SHlIBl3oiKCGX32pMT07S+otA4RSb8OAUiABsVjNrIcoCUhaINQLXzDPaxS7B1RDH6bhhDK/engWvnZ2lOsw6dplRH3EaEN0q+v43Jt51d/2LzjF+Lnzcf9aF9BbdifCpDwlKhGLw+A== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v2 3/8] xen/arm: Add SCMI over SMC calls handling layer Date: Mon, 30 Sep 2024 14:47:09 +0300 Message-ID: <20240930114715.642978-4-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: 1219c388-7294-4ce3-2c00-08dce145ac24 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?rkxtPpvcfCBPXx0XJJ4PyPGxSCcfZWHECTmOj/QBppX3UXidsSxfJIRUQ9Xg?= =?us-ascii?Q?bqNj60q2W0d7Qe5DVfupBVI0FYCgzmO+9hmOkzcBBo3gmOk5vrvVYWVhw7ja?= =?us-ascii?Q?WhNL8NU2pstqC3aZsFdBKvUPSRWrV7NGP0v0/LY140geZrVosB7ynkBj1vZe?= =?us-ascii?Q?IFzd7mpd6j9/D2xQC6bIN+nvPIn5450Dd7WX3b+QqfNRf8pjdz4oDBR546n2?= =?us-ascii?Q?vuxfmMiZcj1cfHFq7qThyblbfq/juK2u0fLMARSElAcrj81LyIqYI9RL5H6K?= =?us-ascii?Q?A9VxX7NeeC11bYd83ZpZcsBhNoUef3MZNxJmi16XBHWMTN6W9vAUzZP78a0g?= =?us-ascii?Q?AehLoyw+CbaHCy3GiwDp8zfiTrwqdkPfx839QC+7OGftbnhvewS7dWxD9IRD?= =?us-ascii?Q?YE4DqZh396OseUBA1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zr?= =?us-ascii?Q?BkmppeJ7G4TTqVAHDnHrO7bfO/kLQPLHpoaZ4mvYbLrj5A=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?7Ngxtn/jbSYmDMNZnmH5DldOaodu+aNHgW7UImEj+kbiIhKllx+I+1qSjWyi?= =?us-ascii?Q?ODHEd53SR+thcG+7SNO4bHOuf3cpjxQ4cuhYsVkZ/U18Ue5wGpB/F2jtBZ3P?= =?us-ascii?Q?V0jTMDq8XrKmVdigecBXyP/YrO4Omg8tkco2mKH4FyYrVz/vEJD1cx/8xeb9?= =?us-ascii?Q?ow7k4GkoJTjHmZ1FAVXxHP0cmN8bwtT/6zF/dFxHXxpzGFoaRMaZi2Z6OBwg?= =?us-ascii?Q?7d3BIpYisk72TfgmgZLXRJ+X95wfIJdM4LO2hDKbMHXfM9489O45lMLqxKpk?= =?us-ascii?Q?RnxxeXVBBMik40WnLvnrbzBzJeikuZNqtm8ued2svrQHtm8295ONNIUXcu0I?= =?us-ascii?Q?giJWhNJrjNyzS3bT8PaSvNg54dlbkiL2h+J8f4XHY/zevwR2G/G76CYBCb8Y?= =?us-ascii?Q?UHmb3rVTzJKUC2kaOwpGKm+xZRy0jEEclDFOyhfbjVhvgYh2y6dOicXsUo4c?= =?us-ascii?Q?VwnPZTRoPpIm850Bnq3JU67ZbqwA/sQkNEKeTeei2J1762eKoHMmO111/qrB?= =?us-ascii?Q?Rz6ip8/mLxzyd4KxIAt7hrkmkQ4/zZoecTGcL+OkT42Hk9/Gt0Y4A7d+K5+h?= =?us-ascii?Q?9smfpzgiJkI81DmzoqS9BnQz6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?Q?5oIV6xbMtQWFhIXJkLWKLnimgAN1fzM6jZ4oNobxZy37m5ndO5r/jZ9lKrGC?= =?us-ascii?Q?53HrAmjyPjsXO5vw9SEC608Sp/gWLKTIHd6GkudpX1wOu6x1eROTQruXc3Vr?= =?us-ascii?Q?iw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1219c388-7294-4ce3-2c00-08dce145ac24 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:33.9135 (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: WNmPZTRZGzEXgxXI0ncRT7H0U892NdjTA78EqCQqYusXWUb2EDPqy6NsoZsK+FrH7yuuTeGU7JfCYHL3j9fZgEtxA76xq3QKof/izrUvn8I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696889746116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu Introduce the SCMI layer to have some basic degree of awareness about SMC 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 'presmp_initcall', since we need SMCs and PSCI should already probe EL3 FW for supporting SMCCC. If no "arm,scmi-smc" compatible node is found in Dom0's 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 Dom0 and as if Dom0 would be natively running. Signed-off-by: Andrei Cherechesu Reviewed-by: Stefano Stabellini --- xen/arch/arm/Kconfig | 10 ++ xen/arch/arm/Makefile | 1 + xen/arch/arm/include/asm/scmi-smc.h | 52 +++++++++ xen/arch/arm/scmi-smc.c | 163 ++++++++++++++++++++++++++++ 4 files changed, 226 insertions(+) create mode 100644 xen/arch/arm/include/asm/scmi-smc.h create mode 100644 xen/arch/arm/scmi-smc.c diff --git a/xen/arch/arm/Kconfig b/xen/arch/arm/Kconfig index 323c967361..adf53e2de1 100644 --- a/xen/arch/arm/Kconfig +++ b/xen/arch/arm/Kconfig @@ -245,6 +245,16 @@ config PARTIAL_EMULATION not been emulated to their complete functionality. Enabling this might result in unwanted/non-spec compliant behavior. =20 +config SCMI_SMC + bool "Enable forwarding SCMI over SMC calls from Dom0 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, if the call comes from Dom0. + endmenu =20 menu "ARM errata workaround via the alternative framework" diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 7792bff597..b85ad9c13f 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -45,6 +45,7 @@ obj-y +=3D platform_hypercall.o obj-y +=3D physdev.o obj-y +=3D processor.o obj-y +=3D psci.o +obj-$(CONFIG_SCMI_SMC) +=3D scmi-smc.o obj-y +=3D setup.o obj-y +=3D shutdown.o obj-y +=3D smp.o diff --git a/xen/arch/arm/include/asm/scmi-smc.h b/xen/arch/arm/include/asm= /scmi-smc.h new file mode 100644 index 0000000000..c6c0079e86 --- /dev/null +++ b/xen/arch/arm/include/asm/scmi-smc.h @@ -0,0 +1,52 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * xen/arch/arm/include/asm/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_is_valid_smc_id(uint32_t fid); +bool scmi_handle_smc(struct cpu_user_regs *regs); + +#else + +static inline bool scmi_is_enabled(void) +{ + return false; +} + +static inline bool scmi_is_valid_smc_id(uint32_t fid) +{ + 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: + */ diff --git a/xen/arch/arm/scmi-smc.c b/xen/arch/arm/scmi-smc.c new file mode 100644 index 0000000000..373ca7ba5f --- /dev/null +++ b/xen/arch/arm/scmi-smc.c @@ -0,0 +1,163 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * xen/arch/arm/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 scmi_support; +static uint32_t 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. + */ +bool scmi_is_valid_smc_id(uint32_t fid) +{ + return (fid =3D=3D scmi_smc_id); +} + +/* + * Generic handler for SCMI-SMC requests, currently only forwarding the + * request to FW running at EL3 if it came from Dom0. Is called from the v= SMC + * layer for SiP SMCs, since SCMI calls are usually provided this way. + * Can also be called from `platform_smc()` plat-specific callback. + * + * Returns true if SMC was handled (regardless of response), false otherwi= se. + */ +bool scmi_handle_smc(struct cpu_user_regs *regs) +{ + struct arm_smccc_res res; + + /* Only the hardware domain should use SCMI calls */ + if ( !is_hardware_domain(current->domain) ) + { + gprintk(XENLOG_ERR, "SCMI: Unprivileged d%d cannot use SCMI.\n", + current->domain->domain_id); + return false; + } + + /* For the moment, forward the SCMI Request to FW running at EL3 */ + arm_smccc_1_1_smc(scmi_smc_id, + 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_ERR + "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 =3D + { + /* We only support "arm,scmi-smc" binding for now */ + DT_MATCH_COMPATIBLE("arm,scmi-smc"), + { /* sentinel */ }, + }; + const struct dt_device_node *scmi_node; + const char *smc_id_prop =3D SCMI_SMC_ID_PROP; + int ret; + + /* If no SCMI firmware node found, fail silently as it's not mandatory= */ + scmi_node =3D dt_find_matching_node(NULL, scmi_ids); + if ( !scmi_node ) + return -EOPNOTSUPP; + + ret =3D dt_property_read_u32(scmi_node, smc_id_prop, &scmi_smc_id); + if ( !ret ) + { + printk(XENLOG_ERR "SCMI: No valid \"%s\" property in \"%s\" DT nod= e\n", + smc_id_prop, scmi_node->full_name); + return -ENOENT; + } + + scmi_support =3D 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("SCMI is not supported when using ACPI\n"); + return -EINVAL; + } + + ret =3D scmi_check_smccc_ver(); + if ( ret ) + goto err; + + ret =3D scmi_dt_init_smccc(); + if ( ret =3D=3D -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 =3D %d)\n", ret); + return ret; +} + +presmp_initcall(scmi_init); + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * tab-width: 4 + * indent-tabs-mode: nil + * End: + */ --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696891; cv=pass; d=zohomail.com; s=zohoarc; b=cQCo4HsULKT2Olbxbs0I7iZD6j7ZFfjdsdEmVbXTLFDOZCNBOPu4saFmeu1kLjpTHUVgTur9h7LbG3eZfcstmMiEdP2P68TqpTC4O761QJve+j06cORkuAlaJtbGNEh21ZYVpiI4j5zUmz93RsE9olMMKTAvPLMATJsEXq8CRiM= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696891; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=DoDhdTF0A/O26QnYxCxxYly+yAcFFjFRVafIQNru3ks=; b=bo+k0oGm4XkM9qEP3y5lC/rZGxnv8wzlUdqV7KCmpekGwgf5IybhqS8wFl6GXojOQ4BSgb7yG1hkKQ/otHnk4zc7xmVfHBEEzFiMvvZuhDSrb8gA4tzdirgqdxLJKX4mRbDd+flR9sVyzWy7Yzkkq019vWNahg9nVNTldMJ+wlk= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696891680239.52529577620612; Mon, 30 Sep 2024 04:48:11 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807254.1218613 (Exim 4.92) (envelope-from ) id 1svEsN-0001B3-LB; Mon, 30 Sep 2024 11:47:39 +0000 Received: by outflank-mailman (output) from mailman id 807254.1218613; Mon, 30 Sep 2024 11:47: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 1svEsN-0001Aw-I4; Mon, 30 Sep 2024 11:47:39 +0000 Received: by outflank-mailman (input) for mailman id 807254; Mon, 30 Sep 2024 11:47:38 +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 1svEsM-0000Cy-Ke for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:38 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20629.outbound.protection.outlook.com [2a01:111:f403:2613::629]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id c9ca7cda-7f21-11ef-a0ba-8be0dac302b0; Mon, 30 Sep 2024 13:47:37 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:35 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:34 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: c9ca7cda-7f21-11ef-a0ba-8be0dac302b0 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eswTL4dCWaUGm2FhyGxDJgZShHhEtcrCiidfky5fGZQRo5kU9YfB3F3Y550aoHZ59jqGm9L9SNc9HT+yHC3Ha74dZFoty/dXwvX2v7aysdBw4jzp0EHo+1SAq2yXLoLeXYzGW4kk2PQ0PDAVAmRf27Tn5aUq7oRMi8yhWDQ38On7SZEGUkh8iyCMtoeTUKr3RP6Pnne47jvg7/VhB4ONtFNgeldGIer+0WofFOIzuI8dC3T8V9mR+VdsPwdxz8ZujIibVN9zL6nkbe7EdoXEwrQVHU7y8WOSkitK36Brc3w2Zve4P5mBDZeTpGVsy5N8L0vAROhsiCDHKaLJYDK2Fg== 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=DoDhdTF0A/O26QnYxCxxYly+yAcFFjFRVafIQNru3ks=; b=qTj713nPY0q1JtOAEtohKEh3LtvoS1eauVmGxypPPFoLE/dxPTCA9ViMHqLN9QVKFwSu/6D128l6mWnESenoN0Y/mI9YSig7/XElcTWyoZeW9zM3M4UWCJVTSmknVDNQ4gTIyUYV4pEweJY+zX8COX7VldQHLjuP/U+uI1yct2FCh+CSGj+6alDHjTYF1q0WSK6tnpJbn7hg8yfOEjwQ/2niWO8hJanlTNRZb+w5y9oalSdvSqIF7rQP3Tg8A5w15b3upZ4w7tuz/8qo2I6A9M5N6LFuAo34VuTdy2RIsHG8jDayviC3iNHGQwd2C9Riv2v1LRQUROcKkvsYJY870Q== 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=DoDhdTF0A/O26QnYxCxxYly+yAcFFjFRVafIQNru3ks=; b=Lgj1ntiAjzjZjTpUJWElA49MLuuXQa2AcuVlLM805VSQg+rOAcxy7JwYuA3RfFEoALAIslXCPs/YY9juTSItuwGlRO8l9wujQECcL0ATLMGUSUGVsRHiCD+UOYZYYxV6jtif2LcdFdsT1AJUcLlwUsgr87LRhABKqmpUDCMsBXFCRdN5ZnHwis2itQSLMmpQo19n24JDJXWzjMAtHTU6mDKl3nQ04vCp1otA7zX0f7uiZ9Wahr1dFxZElYlfVAIXK5mNyzUXaZdVwetUzDzumgmjJFT9G2HWuOSfVDGCHOYsrQ1MeRBvZNln0SxJk3AaA2XaoyY28+kraEocdeXPOw== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk Subject: [PATCH v2 4/8] xen/arm: vsmc: Enable handling SiP-owned SCMI SMC calls Date: Mon, 30 Sep 2024 14:47:10 +0300 Message-ID: <20240930114715.642978-5-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: 6495c173-cd34-4d0b-c602-08dce145acc4 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?IhKpMS2LSaTUDsXr4ohdnuP+L/Lo27SbxC+0gVVAflBJ1TYr75rvjS5987/5?= =?us-ascii?Q?x58RD23a5SMVc4rcUBeI8vY9KazP9zRjnPKYhv6e5k1YGdYc1A3wVaQC/oh5?= =?us-ascii?Q?7LqsbvSqqBQvB7p8wqVvZF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?Q?kPrjYUKOgTsrwHt8/i25iS1zOhYHXSOp5heUFWVS5Tobop3qzYTAOfxcq0xG?= =?us-ascii?Q?p+bit4PtKsLz/xqGt4+QJBPVx/CIu0SnCnDG6WNyiGJmH1jgiV9eectHTeVM?= =?us-ascii?Q?QeUO2nYrvLywrII9otFIJYNs4Oxz3eLOLzYz+8cNYypv8DcNUMbYxc6trvlk?= =?us-ascii?Q?xa5TwDHptuQt/nFkszfIvQ0aJ0M5wXrqhHLdsi5uZyKVNF8/Fkls+pLbaJ39?= =?us-ascii?Q?igBdkBLpo3p0D5zUxmKDo7o/Zm8xNkdQmtv3Qk/bRJ2aHOhflvtczeWZu2Hs?= =?us-ascii?Q?X71dR92DT//SFNlopYItUl9CAIkg49/iDAn4876COstpDw=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?ciWkBClUl86MQvUKEwJEpHFhHrtkzaBBnec/QbheaI+3qCb0iWPB+v25nM5x?= =?us-ascii?Q?pxLcg9faFZGAYGPkTGW0pcqOq0BKuJBVMOIXfx76gYaQsGNVy0ORCyvZDs8p?= =?us-ascii?Q?IPDyBwR4VyrujHPdWMhc6wESo8D0ElkZ1MnQ4gZsLDxwtQHiDues88CL5YIi?= =?us-ascii?Q?rJfQiXy5qC/VN4c9T0I6wKwGWaUqvEuchej1TVDOKpqfHumSUi7A+CjLPC/s?= =?us-ascii?Q?FfoLG7BSB0w4D5JpJEV3LT4RQZq76mQLJz25jU1fozSouj9KfEDsBZH55itN?= =?us-ascii?Q?d/ryqvjS+30CzvgkBA4ivif41jj/buT0bit7HkEbDSY6kQlvkNaH9Z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BZx/gRe4UCPvKEtSm05IGbOzvP6tLJ0ycPu5Eszt?= =?us-ascii?Q?S7Cvkj7phhYieCxwTnTNn527QXRe5Sv9Aqmu6dynwfjMu0kKkZuhDwX8lWHk?= =?us-ascii?Q?qloGXCElsSYGjEHwK+M4nB2H+xEgfXIwm6JnMooOgGEeGqSGncnxG8lUvi3g?= =?us-ascii?Q?gjR2N8qXTSqPzHpjiZsLCIM/sC3E8z9Q85gWdNO+1oABhiwsf9bp+nY7qRig?= =?us-ascii?Q?7fnq5ekkBn2Py0g5xiYdAsjZJ/qoXUyP6C9mikjEjKOPVRLLsyRqvNFhAz0j?= =?us-ascii?Q?3LY29iw6+ShXH+GmzrhLRMb3h0v0Lygms8VkiMDDzbgiLatZIfd9adNfDX2e?= =?us-ascii?Q?LHf9Yt2842uTrcKHyPcGoimpGb7At7yGSrkMxMOdKr9tH+qtVb5u8Do4S/I5?= =?us-ascii?Q?5g=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6495c173-cd34-4d0b-c602-08dce145acc4 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:34.9063 (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: 9aWJ3JREzReLbf2a2z/nY2+xwcHzurCDas5SQ1Ecs6tkk4DwjH3hzEn5Vr8Hgrc57YWx8a37HKzel84VPiuTQvlgpr2+nH2zTvq4XAmmKB0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696893659116600 Content-Type: text/plain; charset="utf-8" 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 that the SMC is a valid SCMI message. Handle it then within the SCMI layer which forwards it to EL3 FW, only if the SMC comes from Dom0. Signed-off-by: Andrei Cherechesu Acked-by: Julien Grall Reviewed-by: Stefano Stabellini --- xen/arch/arm/vsmc.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/xen/arch/arm/vsmc.c b/xen/arch/arm/vsmc.c index 7f2f5eb9ce..0de194a132 100644 --- a/xen/arch/arm/vsmc.c +++ b/xen/arch/arm/vsmc.c @@ -14,6 +14,7 @@ #include #include #include +#include #include #include #include @@ -224,6 +225,22 @@ static bool handle_sssc(struct cpu_user_regs *regs) } } =20 +/* Secure Calls defined by the Silicon Provider (SiP) */ +static bool handle_sip(struct cpu_user_regs *regs) +{ + uint32_t fid =3D (uint32_t)get_user_reg(regs, 0); + + /* Firstly, let each platform define custom handling for these SMCs */ + if ( platform_smc(regs) ) + return true; + + /* Otherwise, if valid SCMI SMC, forward the call to EL3 */ + if ( scmi_is_enabled() && scmi_is_valid_smc_id(fid) ) + 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 +305,7 @@ static bool vsmccc_handle_call(struct cpu_user_regs *re= gs) handled =3D handle_sssc(regs); break; case ARM_SMCCC_OWNER_SIP: - handled =3D platform_smc(regs); + handled =3D handle_sip(regs); break; case ARM_SMCCC_OWNER_TRUSTED_APP ... ARM_SMCCC_OWNER_TRUSTED_APP_E= ND: case ARM_SMCCC_OWNER_TRUSTED_OS ... ARM_SMCCC_OWNER_TRUSTED_OS_END: --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696892; cv=pass; d=zohomail.com; s=zohoarc; b=S2wMKW0JfCCrBVefOnml4LTxMepDR8vBEZxrqcHCYuOhaLi0kSXomYBzSU2XoXbfu5LEiG/OwcXZl+n0iY4335z/CwH8n5Y9B1d3jhU1/SeJFZ6O4cjgZp8X5TT92FNWhS/MVi8Agxa51gqlFsn8LazPOrA7ubK8dmTZMyRvJPA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696892; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=wX/sA+HbyjLIrbQJLtP2qYPtkhD5N253XrdmtBbQxPg=; b=POHGGCgA86dELVo5Z7g14jFl65xGm+Cx575rE7iEr0JsmuFfEfxrmA8vGI4bvp1zJZE1NHO/YLKQkQQZYwM3EjdWLkY38Dy4uZX5NHV4S2x9E9Zl8wPVzAy6o/oO4HscQUyZ8M/ekEo548EbU/4xIHLAZ0q9tZ9kePauDjwPDhM= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 172769689240320.459698704813036; Mon, 30 Sep 2024 04:48:12 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807255.1218623 (Exim 4.92) (envelope-from ) id 1svEsP-0001TP-Vy; Mon, 30 Sep 2024 11:47:41 +0000 Received: by outflank-mailman (output) from mailman id 807255.1218623; Mon, 30 Sep 2024 11:47: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 1svEsP-0001TB-Qp; Mon, 30 Sep 2024 11:47:41 +0000 Received: by outflank-mailman (input) for mailman id 807255; Mon, 30 Sep 2024 11:47:40 +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 1svEsO-0001MH-Lx for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:40 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20605.outbound.protection.outlook.com [2a01:111:f403:2613::605]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id cacf8c2f-7f21-11ef-99a2-01e77a169b0f; Mon, 30 Sep 2024 13:47:38 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:36 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: cacf8c2f-7f21-11ef-99a2-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B1sBmOKJkp9yq3cPjJmOCtZURxJLsGYbYnWja8fNdCOfyFLKD1w/ixTiX/Io00GOZjcu6mKl5DQPUTQFhJQ4bKVlnN4nW5MQ+2rH6FwQURsBFZ0yhrTWZ43j5GIy3Dh7010Egg9zW+u84PjcCVreJluvgzZYbkZQ3VWf6Za2pASKHMM3RMASkcRYUvJBOhVp5M57EXneFFwU9PwEptkDUor/HikKM1NlsC9JQyEBMoqdEleRtF68pXbuPKh1Wa7zRh7mG/ti35p5h8nl6ZvEEOrx6nZcs05EHjV4qFk3cVsr60LAVNRUUZBnfjdHWaqt+W3i9Xwn1Ku9BO/4LhWG4w== 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=wX/sA+HbyjLIrbQJLtP2qYPtkhD5N253XrdmtBbQxPg=; b=IZ0PvksUZp7j1xOmGJymXfK7eRJggyh+PRJQQfNiYt2XWahJFDJIY5wQXEiO3xDGODekTwhJU2bmCpLWXHb9auU3tYgtamNCK/6L3t2wY4MO0wr0kY4vTWuMu4ZNZtNM3gshkOR6yG63U/5qenIrQfu8tWAYabwQ/RjAs+HC+yP7ijcauSvX7rdSVtPmY2iobAJDykEVzbFsLNcQ9Bd3r+otdVekfhvmezESdRW6OWlR4dLWFrTa8cYc/UAS4iCjZ4aGKbt8aefuk93bhdvI2xmrD0t7vvPUoGlDdiwPoGOFkpi+N/+D8g2GmYOkwMvft2QMyCny6lWbtUSEH3F6hQ== 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=wX/sA+HbyjLIrbQJLtP2qYPtkhD5N253XrdmtBbQxPg=; b=fbiZ7E3QakNJBW45SoL+lrEI7Hl/dYZw3FdSQZ+5FPO1FNfydWIfZL4PHtGTJMj1Hn0vc/w4BjnTtJ7PwhFzVVkz4cd1BgzC7McFOWo7JupJiD+T72UqmHDajn3VxnCrQFtKBOOpnueXsOMJbzGqV1oO5OBwi0pyZ7spPaCu5n7KayhcT0G2FXgcUlQWMgxRqGMU9CxeAfSE747vkAmjng3GZ/9ccfaE/RQwINWMXUo3mi6mM0CWTjx0aZGDtYKkLbklQcG4aipo8dwdsQJrK2kz0vT8Q9Rbq36fh6LT0WrIz8zIOGZqhQWZ0CHz4kgzUKTVyOIowEvexL7MPpp1cA== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Stefano Stabellini , Julien Grall , Bertrand Marquis , Michal Orzel , Volodymyr Babchuk , s32@nxp.com Subject: [PATCH v2 5/8] xen/arm: platforms: Add NXP S32CC platform code Date: Mon, 30 Sep 2024 14:47:11 +0300 Message-ID: <20240930114715.642978-6-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: 98730b9b-71fb-4a3c-42ef-08dce145ad66 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?E3g0GugfsiPtud6qW82PHGgoVx35DcM01XVdp3WErxzJtAtkz60Hn99+oE1n?= =?us-ascii?Q?wTv6xpj53ezyj1JNTtHGvfULr9dH9+V673XDrBmlZGELpD8piRJgZIp5aUUH?= =?us-ascii?Q?0+nLJF5Hdf0RyFQwDm9/XaNm+IJaTEKXPflVP2M3fzdq2hKQkBS8th0IQyQ1?= =?us-ascii?Q?7BhN7bIuMXNchvJ2bhWYpAap8+0SwSF/3qqXqOIsQvVNQFuczH8igrK2oufW?= =?us-ascii?Q?A0hao5u495WVqrnS7rQLmkc7R2Zi0QY3GK/E9HqIamkQKIjZJv2km1CWGnbD?= =?us-ascii?Q?e401v/VhU+5Vqol96IokQTJAsa/nPzM7aSE+gVjAMhBjfAmPn1ec9PQg6zt1?= =?us-ascii?Q?hBQmT/rjFyLAZTFzwcOG3OBWvx969fD5PExcdxFGzAbav4HaT+w8gzgvoAyN?= =?us-ascii?Q?Vz6hiqVcLEVk+liYd6UxFvf+0XmAxQkz/QvNuyBH1e9iR5mpg9bV0wEHyti9?= =?us-ascii?Q?wD+2TYxwNgc/7GZATT/sY3oVlmkKjdis0Xm7L8qEd14dQ3yzg/nLDg1jjSyI?=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:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MNdGevpOQHc65sCY8SzNnD8emq0+WCCb2by23UXm688n3+AglKXpA7GYa5/V?= =?us-ascii?Q?rI+/H5x22WuE0M1TpMr2E+92W3FUINucSG7D5IbA6m9lnSDohv6IXu7WLJ6V?= =?us-ascii?Q?beFAqfl47yLiknoMMJQjVRrOrI9ZQQGVv8J/twv0Ys3Vmn5Vz8o0ilJM6KVK?= =?us-ascii?Q?m5WBngnKW8h+ISegBEmMXTImqWLsdYST0k7Kt+ONG+eEJTZUV1AUmzKPlCMz?= =?us-ascii?Q?coKoPAUcam9Ho1areHlagkDf93QIbD+XEqpPFsplE3YIzZNqLxgVtjNBjgZz?= =?us-ascii?Q?NDRiB4dgMLSreDPeQgsgHmOIOfCQs5dcFtyCeDnWO2LSqMDSnoQinYcoFcAC?= =?us-ascii?Q?qdRAHMnZnipfnSuutiw3iFYU5N6bx13JJGaa1rV7zFwpPZlDCKJ6OhrCjPaV?= =?us-ascii?Q?AXbvSuCUEKe0huN0TrWVNi8RQMI2arNSlnrcZWjHTXpK5mPgnhl1/MqyoGkH?= =?us-ascii?Q?aYvjHgon1Is1Ji2nNz3vKZWyMrZrzSLSs+4p5uqJimRjpz9s05Dl+QaV3Ia/?= =?us-ascii?Q?vktDMqlIoo7mdn5LHf26dYjtyKmzGohF9BhrJEWzphRJBpXFPOFhzWVTCSpD?= =?us-ascii?Q?/lO1G2HHWSrV4EzXklMZFz/NlybLYj0mUIgdzvs9v6ujq+iyUXz/dOWVembK?= =?us-ascii?Q?pFTP1dEufpnnLzQtVaoN592hvqpMmvxS6qvD8yBkTRnVTGl8RlGEni79jjpH?= =?us-ascii?Q?NnysZnyb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5vk?= =?us-ascii?Q?Nw=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 98730b9b-71fb-4a3c-42ef-08dce145ad66 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:35.9870 (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: VMz2Ga6/eY4McP1BLH+ShRxpd8HidvSLgTzqTk/EXe6zH729eU6J7qMajvcvbvjSAqmweP5OrveJgUwwYohUcWmEALTN48o72z7FGuQJ2vQ= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696893665116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu Add code for NXP S32CC platforms (S32G2, S32G3, S32R45). S32CC platforms 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. Platform-related quirks will be addressed in following commits. Signed-off-by: Andrei Cherechesu Reviewed-by: Stefano Stabellini --- xen/arch/arm/platforms/Kconfig | 11 +++++++++++ xen/arch/arm/platforms/Makefile | 1 + xen/arch/arm/platforms/s32cc.c | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 xen/arch/arm/platforms/s32cc.c diff --git a/xen/arch/arm/platforms/Kconfig b/xen/arch/arm/platforms/Kconfig index 76f7e76b1b..9837cba475 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 =20 +config S32CC + bool "NXP S32CC platforms support" + depends on ARM_64 + select HAS_LINFLEX + select SCMI_SMC + help + Enable all the required drivers for NXP S32CC platforms + config NO_PLAT bool "No Platforms" help @@ -56,3 +64,6 @@ config MPSOC_PLATFORM bool default (ALL64_PLAT || MPSOC) =20 +config S32CC_PLATFORM + bool + default (ALL64_PLAT || S32CC) diff --git a/xen/arch/arm/platforms/Makefile b/xen/arch/arm/platforms/Makef= ile index bec6e55d1f..2c304b964d 100644 --- a/xen/arch/arm/platforms/Makefile +++ b/xen/arch/arm/platforms/Makefile @@ -10,5 +10,6 @@ obj-$(CONFIG_ALL64_PLAT) +=3D thunderx.o obj-$(CONFIG_ALL64_PLAT) +=3D xgene-storm.o obj-$(CONFIG_ALL64_PLAT) +=3D brcm-raspberry-pi.o obj-$(CONFIG_ALL64_PLAT) +=3D imx8qm.o +obj-$(CONFIG_S32CC_PLATFORM) +=3D s32cc.o obj-$(CONFIG_MPSOC_PLATFORM) +=3D xilinx-zynqmp.o obj-$(CONFIG_MPSOC_PLATFORM) +=3D xilinx-zynqmp-eemi.o diff --git a/xen/arch/arm/platforms/s32cc.c b/xen/arch/arm/platforms/s32cc.c new file mode 100644 index 0000000000..f99a2d56f6 --- /dev/null +++ b/xen/arch/arm/platforms/s32cc.c @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * xen/arch/arm/platforms/s32cc.c + * + * NXP S32CC Platform-specific settings + * + * Andrei Cherechesu + * Copyright 2021-2024 NXP + */ + +#include + +static const char * const s32cc_dt_compat[] __initconst =3D +{ + "nxp,s32g2", + "nxp,s32g3", + "nxp,s32r45", + NULL +}; + +PLATFORM_START(s32cc, "NXP S32CC") + .compatible =3D s32cc_dt_compat, +PLATFORM_END + +/* + * Local variables: + * mode: C + * c-file-style: "BSD" + * c-basic-offset: 4 + * indent-tabs-mode: nil + * End: + */ --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696884; cv=pass; d=zohomail.com; s=zohoarc; b=dwpAQn9AV1HR9a8hXc14YvAF9lC2zfPi4QgNi/G3v+Y0HiAGSWCIP8vxoYfUdPtB98OIMZU5mrDKkQ/VWmKqdZuDEhyIiVJiraDNmr5Y6eGkbmCyEBf0axCowc3+cudMdwB8+XiyLqunyiIF4Irsuhmxku+LdSRl6/qXb5L0G0E= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696884; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=UDUk5g7NendjaxUN9TFs53dKpySmOC0eSPjOxB+OIic=; b=I7trkWVGbOo4YAVK7/OBnThUw/KoGQteX1DnK/cWdTjfnLNYcU5zrxaVfBBpIzJ4Vt6TcBwMZsNm2sXtE8/aCqEKVcTojZJGoH1LycfYPIFpjzmt0AgX9BAja0PM/HVgdTLK0gvZEwy8lSdiyybMMPWvVMJgGVICEgng59tG3D0= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696884777534.3264138576363; Mon, 30 Sep 2024 04:48:04 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807256.1218632 (Exim 4.92) (envelope-from ) id 1svEsR-0001jz-8Z; Mon, 30 Sep 2024 11:47:43 +0000 Received: by outflank-mailman (output) from mailman id 807256.1218632; Mon, 30 Sep 2024 11:47:43 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1svEsR-0001jl-4v; Mon, 30 Sep 2024 11:47:43 +0000 Received: by outflank-mailman (input) for mailman id 807256; Mon, 30 Sep 2024 11:47: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 1svEsP-0001MH-Nw for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:41 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20605.outbound.protection.outlook.com [2a01:111:f403:2613::605]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id cbdacc01-7f21-11ef-99a2-01e77a169b0f; Mon, 30 Sep 2024 13:47:40 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:36 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: cbdacc01-7f21-11ef-99a2-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=q1hdMh48Y52Zlv7dSK6yuA9zl4EL4p03eeX4jcmCIo3p8BvY36GaRmaPbowQVXxyszTWBRbCn6jPV9X7K78WZjr8E9V4rQtaVz+yOWuDdFjRZtVTlfLwrNl6BaxhLHvZs1C4x15tCj9e4BBNtibX4MuoIv+Q3zpfO7E2TTqMO2ny53YlhwN0nU6Rzthyn+aKR+gScfOfGfCyJSQcB28FDD5C3TOensnbb570hvMMnS6pOWiMNMOs68ftx28tMZ2/nZUSuC+S/5rGqBH8a3UXe4nv51G+nUDhzrzg2iAcM8SLH4vZy1M/7+fn3HyDHSHeL4yJMGyPWM6PD1XBNdyFaw== 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=UDUk5g7NendjaxUN9TFs53dKpySmOC0eSPjOxB+OIic=; b=b+dKMISonR3sDLeuWBA5Ey/qMGFD+EYXMDxZxEyCrjOE4RZ/VgM7EFO4UqeWi2d1ozize87IAPvV/93Ebng11mLn3Rm6FUlBziGV/6fGFFnPU/uHJZI2aaEps74gE3hCQK8ow7xn1cLVaJ+IbgW/zfVHAf8MGXopD2LmJZhfxZdVeyS+YlfO39mROHA0zSpacXfLfrdxXm4FQSxFxF8oEFTRzWb7SwnoY4G6eyIN3GGZsAOqEmj0T0YQomJMtT87G9asqGIoskASzU2y5EW+CSSxe13ToxA02LeFnD3pUjMStkoX/sz6zw7ljKSaKMbHjkxVPNS3CXHWNyIUR1bIsA== 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=UDUk5g7NendjaxUN9TFs53dKpySmOC0eSPjOxB+OIic=; b=NVhsMy8aHXXiYATyoKkTOdXdy75j7C5PtFJcAyN+aas3aasJgzqFqIInB9yUtgaw2N8YMH+bDwIExFO22tpMKplmWw639Lz5/DvLoOwPczDGDT1kW30cN4YpF1jGOvc1e3TaJyKe8rctqW/IjiBUX1qvlnoUmcUuN0ZvNIuOC3xl/jTZ5Gj0qzSBXib2q0s4dm3zcIvGCQOUKvsVWV1gyFVehw8hsohQ4opQalnI54ViUJZk6WN90aVOD9TIrOtgEPYK5CNUtujbpaNBCamsLy0BZe0FhTfK6+xgw+b9vZtF4bAOq6em9lmYPgHAYav1VFn0D8pNlG/uQ9qbbelhIA== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Oleksii Kurochko , Community Manager Subject: [PATCH v2 6/8] CHANGELOG.md: Add NXP S32CC and SCMI-SMC layer support mentions Date: Mon, 30 Sep 2024 14:47:12 +0300 Message-ID: <20240930114715.642978-7-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: 7232ee7d-5e26-4c9e-a9f8-08dce145ade2 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?tJEGv8Y3j/lJJVphpPpl5NuzyRWiU31fl9IYgLbgLw+YGfUkU+QmJNqxWwcj?= =?us-ascii?Q?waWSCVw2aIhm6FYe6TUgBl8ZXAtjb1S1nL40NRM94+fOhYj4tY6P2GryPiX0?= =?us-ascii?Q?HBMwfbjBx/aazeYYW4sTuFStdgkbjmsG7mD9mgyH99GsZgdhTCIZOTdmPUE+?= =?us-ascii?Q?ib2WprHcLG1w0WMWH6Ht6oz6ORNfqbFB7mu0AhItg0pfv7AN0yu6w+RgX2tm?= =?us-ascii?Q?yT1CDXa5FSVKuQaEBwQnvmFeoLwoj4sCMR9cUTrpHMSQBPnJpojLafQeefUb?= =?us-ascii?Q?+VXjLqjDvUiP+ji6IXf5tdhHABdCCCR86+ys+0nYX6FD1SVN56CJerYEk/yA?= =?us-ascii?Q?riYUvLH+rLyfE9l0insKfqsqo0KgSfFwOc861bykTX5WtCqFgIbpZoy0tN0u?= =?us-ascii?Q?C6dy4iD54XaWH0w07QkaybGQMvcoTf72edkLevxwl57DdtXgH8AqrMN1XuxJ?= =?us-ascii?Q?9PkBJmp/DPehkO1otEyPpMWOhIXzAlioee68uHZ+/yopRmZohCVhW9IRs/PN?= =?us-ascii?Q?aWWQcq9uzU0L4Mnl4GJa9c3pvAPaS+41Nrx9dMjSgBe3G0LMdBGEcPuzWnZi?= =?us-ascii?Q?xG63PUJTR0fHexiZsSigvFzaj0EXoECOjzRNd1Wri8AVfU0ea0LM895IV6fM?= =?us-ascii?Q?0rdbc6IU3OTIKFl1Al4Jq8n3C4/ZC24U2TLOQDwyCrZM7rRg2SYQpnAEmwxE?= =?us-ascii?Q?6ssfExM/KEFlYAasAvPfZ11P8/sy4pIFj+15opPzled4GSV0zXC5JaOIex0a?= =?us-ascii?Q?YzhEPSraCkdByB5fSsg+xEI2/gDD/qdaPLYfjlHsaNv/lR3UVtGgEYePqV8/?= =?us-ascii?Q?4iK/cSvW8VyDvQoPJES+dfcoudk/APaKia5LCKGGphsS7Gq3PXXYPnaVZFYm?= =?us-ascii?Q?RA8+TvZLX+ZQuFnFeCZeWwKr/CEIItSNeR7HHkypcbKcKGt9ca0rCLev/2hn?= =?us-ascii?Q?DcU/bK+2SF1NfqFXMrq+P/MDKsIY3SuFMVTA8AXY06o4qwsAPA32v+54ZzTt?= =?us-ascii?Q?+wWPwVujoX/YJA9DJWVi5Qa6LhOO1AgO0hlCVPo4/z0UKtVBOKnX/BrfsYNe?= =?us-ascii?Q?GNfqHS5oqnNgMzTVfi3f4K/I1sUg2Ea2Trzca7pNq7e2MB9cKAmdB4AMmUPT?= =?us-ascii?Q?+ihCFQ2YldV/1SSSlkdt77ueDeZKCwSfxshZHKyn++AtdbJ1HXEY5HuDhdM7?= =?us-ascii?Q?5xJ+nkbtth0FMwxgIxXdL7uE0W21r/JjmINgOTUIqz2W2o8yHzJz3J7ah5Wz?= =?us-ascii?Q?8Fkb8ZQnpEwFDsRMZNfeTHW5ftARzocdbAwj5L/Ivg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YyF6OXU592xBQLU5qVmiGmYvITLjMwF4+dW17Nz9+G/UKyYCUjZvH6d/eq7O?= =?us-ascii?Q?pDOb/Oa3mBWW2HWxKOHFPJmYwDMPXXlez05bvhc8yieFmjI06CIypegahktk?= =?us-ascii?Q?glqY2CbFWi5HXPphqAKT5xSnWEnmrubOiJgT+G593iq1D859mCdwoT6/FpNN?= =?us-ascii?Q?Ph0EVfuG2R7e4V+2XgjvZzDQz7XNtorWMPADis8IWtqVtcPiI0wNsg0ChS5m?= =?us-ascii?Q?O/aYkA4pGCVuUVqKxxJQYR6XbXgJhgDDcM5kSPvwqDrP086eLafPaMqDPAi+?= =?us-ascii?Q?IzUEuQMjgyo0LSlU9m8qcKjrWDd+vgwgfsCnwdo6i1OOQa7TPtz9cAG3GCcq?= =?us-ascii?Q?26P6ek1yLNHEbnzpn+cDhYhleo28bvg0pysqLRH5F//Upt0gWuhgByicZ+dv?= =?us-ascii?Q?463YLUcYL8EZD924F9VFBN4Uxdk1QvN8OPFpNlccYNDMHbhjx9uWUkX6gRmP?= =?us-ascii?Q?hp+HaYbWSGNhGCl9QzprlYpwxw3l13yWW0EpnHIPTzoSt7Nk/yZk5x4PX3BG?= =?us-ascii?Q?Oe6DQX/psPlTBpxH2BhRAYfj5lORDMd/EShY7ofAAMVyJ2llmWfYnz5sIDXs?= =?us-ascii?Q?PLcAID8hp/6vfR8clnMQKWquKsiXXV/w61M0Df5lw9uAHpBJc37JB0Ku16G7?= =?us-ascii?Q?HNfxUQ3elk9mCiQYiex2zDvZAYmgzzCoF9A/MIYTydEBdBsrerrqlxrW45wh?= =?us-ascii?Q?y4qzWL/0IDF+MRAOcF3sUlJRmnIrJll31h+2y2g8F5+WzDZ5jZCYTCHVweCO?= =?us-ascii?Q?e3Do0FZwZxRREMiIz9AHGM0ALeLZB5e0YKTK2Vp/MgBpvvcJBDPW8ignK031?= =?us-ascii?Q?R+Li7vF5yucVd0+6etxDglQva5flDWopO9HPFf8VxDGXefbn4XXvSVr7lynT?= =?us-ascii?Q?QTKLR3uK0gWvd1vwXrOTX5NXrautT0/2QaRO12mI8XOv6b7YRxHnWo1Eiu8b?= =?us-ascii?Q?I/S9uHtO+vkfWsix0iCznQUApy8VW4pvcFfKWPcHc4hHdidKnYzJTpe0/emK?= =?us-ascii?Q?Qi2+Oq6nKsMvmkfEgjzelw35oTmesytBoP+pHbqltpxmwcfxMJiCcd4e0QSy?= =?us-ascii?Q?2R8hMZmvpjNbVR9g8sD2g6Zkd/eehSOQ+D6cavqN4UKbnDedr4Fexd2L+rPu?= =?us-ascii?Q?w9D6WY+DAJZP+Qmhw1mEegZXle8y6NoyKP2kDTUDG/E9EMnbeijwH1U2BMYc?= =?us-ascii?Q?NibNzW05ZHme4Vkf691XHxHRlWbAZ7inQq8dP47VsefhDJwJyW/0BpRFjROH?= =?us-ascii?Q?LhgCHybuJx0ACZ1mnK/HWk27gXQLcdML23MeARxcNyxD/u9BlQ3NMxVJsbH6?= =?us-ascii?Q?im72hF+M1SvK+u7t8dBsKmM61lLgbhfYKs9nh5cDfndtr/B36YL5aJGKgITi?= =?us-ascii?Q?1dPWdagV5uC767gNVJhEuM4KpjY72LYnUgMZ+QRLPOc85PIM8ndh0q+MvWyz?= =?us-ascii?Q?+jUuUiOUYUSVedVLfYAUqnN3c2+Jzg3r0g8hgouhZYqP4kpDaXmy4qkM5NPS?= =?us-ascii?Q?cW870S5DHUJ5KCXFNaU41SShhzxFCGkr2BPxtOM+aDwe/PaMTl4bqd76gTi+?= =?us-ascii?Q?VdvbnYAalEj5kyWkEFIiSzPctMS5RG+bQ5HUonuxXw6j/ridCX4MfNIxiUXH?= =?us-ascii?Q?xQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7232ee7d-5e26-4c9e-a9f8-08dce145ade2 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:36.8007 (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: P5SVg2NqELSdA4RP+HgM86UfgevTzNk672iAXsGtNXXsdYaCroaGaKOSelLmc/N7xWq/s6CQvj8WHB43l41SstuZBDq0VGp32zwGCtRCCC4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696885962116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu Signed-off-by: Andrei Cherechesu Acked-by: Stefano Stabellini --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26e7d8dd2a..66ea505843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ The format is based on [Keep a Changelog](https://keepac= hangelog.com/en/1.0.0/) - Prefer ACPI reboot over UEFI ResetSystem() run time service call. =20 ### Added + - On Arm: + - Add support for NXP S32CC platforms and NXP LINFlexD UART driver. + - Add basic handling for SCMI requests over SMC using Shared Memory, + by allowing forwarding the calls to EL3 FW if coming from Dom0. =20 ### Removed - On x86: --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696882; cv=pass; d=zohomail.com; s=zohoarc; b=YO5eNIKjEpu7+YaTU1uDijNNqVkCGxBGwrfePZLP8a/9zZLcD4THXof57uw9yYlASJb5jP69TbsQ5txFPbCmCCuDQFVc1lb3sHHdkiLTQe0sh6O5R06NuygWwCTQ+oaHg/BhRpV2yjGoFZHIyXe1b5heZWA8o1U/SzttR9us0EY= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696882; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LQbtAb9hJ3I+OfJY6XZzKHd/XY5t2JBFtgYrBFh+FZM=; b=cuk4C96dquzMclpogIWJt8xCCmdMEw/6GX4ycYNHL7cCKVT1yOjebZNpms7FPLtKgthN8nsvccygmiicRIYlNXu95fYO8wWDW3i1oNDWM5GM8KaRRD/L3ntDbo3iZw0YgoM0dksX4b68uvT1E0ltf5fsXf4jj6wAwm00vWyOtS8= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696882469844.3949113252635; Mon, 30 Sep 2024 04:48:02 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807257.1218643 (Exim 4.92) (envelope-from ) id 1svEsS-00022K-RG; Mon, 30 Sep 2024 11:47:44 +0000 Received: by outflank-mailman (output) from mailman id 807257.1218643; Mon, 30 Sep 2024 11:47: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 1svEsS-000229-N4; Mon, 30 Sep 2024 11:47:44 +0000 Received: by outflank-mailman (input) for mailman id 807257; Mon, 30 Sep 2024 11:47:43 +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 1svEsR-0001MH-5C for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:43 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20605.outbound.protection.outlook.com [2a01:111:f403:2613::605]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id ccb288b6-7f21-11ef-99a2-01e77a169b0f; Mon, 30 Sep 2024 13:47:41 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:37 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:37 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: ccb288b6-7f21-11ef-99a2-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Tzv1q2+Wn2uuctfPBeZCd3JIeORRNAdiUE/eC8dscHteLoeg8bHd1FzuC+ID39cxvIOMNDXOpGhATeQIdJSE4zrE4QYZUqGVBi/P63dsmTR/2/677GzKq2L6XpCUTZjU4aDzV8uz1VEZSJoJVCU+k/jmiaYj5LPHKWyVICsKs/cn42dEUXLKUcc4D71nkdtFxUoQmRevWyjrZs84SutXmcmr7RxC/igVLluy1S24xxIV8TKuN++D9rmN4hyVvHQ5h79sPUwUeR0wne1xbu1PgxPmBjQirWzL8VK2PqSlvtpFDZhMDVT4SMhxsfqmJqnBaUkDyRX99nvodiKF5SaSgA== 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=LQbtAb9hJ3I+OfJY6XZzKHd/XY5t2JBFtgYrBFh+FZM=; b=jevIdavlnL9ukievVENE/cntdzcA1Bwhjal4EOP106VFtveqR4BW95UjzUBGbfWfkJ57Ok9TLE0fQyMzFfk7M9TgjzKI8/nMs5fY95JhulvGa3tGi2IqRzdUxiobvgaMqdjosmCw+0HNvCqFFByvZ+r7elo+vu1lqRCrCTFY9tNHy4F6GbutJyVe3VxmPcN8zGvIb0edGTRu7i74Y2IZjA/LoMjSg0xTP/oUs/PKXio6To0d7n3EhnnhVa22EQjVDpsLzjTaALJ5bLypFpJAYMcBU9sriogr3SqxtrewgmcLTykjvaW+UvvfdnvgSK8S5EcHGz689trrBMaqcTtX7A== 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=LQbtAb9hJ3I+OfJY6XZzKHd/XY5t2JBFtgYrBFh+FZM=; b=W1qJt+9Ot+nKpGeLaU2mOI8h8CMRLhsJ7SGoZdC5HCJ3JOzsfQr56ZF7bWPwOVWT2QNL9JtyPtOVfh8u/vQlhdrgmL8CTqVEJL5MBOJRGkguPmd/ZAgws634W/2T7fK909Hew9xGXLNf+iY+t4x6ThjGxH5TCFHEWS0LPyBNwCgSOFJy4KIo7Cf9UwOiGSjGLoi8jrdgbnuNrxfSgpFObWaiF3HlcDLUa+5GkvQKdwo9tcYN6dawAu8YBdN5kuSrXetVdZZwm65FLZUukgdb9YjF1G6vfxrQY6DMnZss5u9NlhRdMdixdWGdaEKl+/ub9eloOpCN0akt6spQ/PmSWw== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v2 7/8] SUPPORT.md: Describe SCMI-SMC layer feature Date: Mon, 30 Sep 2024 14:47:13 +0300 Message-ID: <20240930114715.642978-8-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: d125378d-9d97-488a-758b-08dce145ae73 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?gdpuzTTcIZ3OQVraYVQyu45LMVLelITOL5mDbZbJedUinNIDg9idd9r2XU+f?= =?us-ascii?Q?YwBAL3Vr4cwxo918tgfBKNksDyy5GnA54SWQDoL5O51WDhwcghN34TnTTO2N?= =?us-ascii?Q?EgCXFb3hlkEEtDP78fDi/t8X/hKIir6hKCPI2BloDAI7X5XMd+epGaF5pCDr?= =?us-ascii?Q?0fyOAr9J8zzhbFUZoT3uuw6ON34kT4F1vOQwSJM7OfX9+f1KIUHGQafWiz3u?= =?us-ascii?Q?8b1Qw8Bd7zIEzTHLS7uVJy4LdXtpMmgu3emmN4s3+6kOSJrJK2TOab5xP6od?= =?us-ascii?Q?yoLoU/cGeAkfFe0TR1igxFuG07gLunkJebH6KXxtGUJtRCgQtv23r/spELKt?= =?us-ascii?Q?uD+FLgEwDo2+NP0WV5PhZbJKailLwhR8g4NWfaHBA5BpUTrMY8ObO0F+uIR+?= =?us-ascii?Q?45b2pxFh+6ULngC0iPF+wdTdccaW90ZYSkoSNBFt06/53c56EpNwDRehXoDN?= =?us-ascii?Q?ckbfU7mrckgR7EB7oGK7RmggnObaEZAc/SuSpy/j5rEK/5VaqDjbNWrBHcqX?= =?us-ascii?Q?lvXs2VT4seZiPQ1JluKL00h68hOm9sw1Z1Mb2YDyjVukzIEk302sBm/wEFtP?= =?us-ascii?Q?7RUfp9uwvqPt8YIicfCMQDu65E+9/EZQPtimO+McnQhOvq1Tw0603YY3Xpy2?= =?us-ascii?Q?PPYyFiKXhpKRCvZtlghDMLEAj70C+JAiqByjV++kZnp626+5sNYLeWqbldeu?= =?us-ascii?Q?h9qvfAVptn1z59jAcPWWMw7mi9lMMr2+M4tM1NEiUtTyDUaVJ/iVhTXSqCfC?= =?us-ascii?Q?q7shNm0+xGF7Px9KxyQD5osNvJCqpSATp206V6J3QMpiimHiLSvtFXqYTha+?= =?us-ascii?Q?55Wzyrh2w657Aw69es0ubqKrLqyWO3WvguiS22joz3pwq3I1JoBlL93hZPMA?= =?us-ascii?Q?3mOzUJzu4cOkE2lKQ3xMZN/BUKCzglkgTaqcO9kfg7VtcnPGPziTXUJkMfQa?= =?us-ascii?Q?TMu+0f8LMmO6GfeHMGd3WQQbgfHTGcntWib7x5DG+HkJJf4rWWSQWNf53ZsN?= =?us-ascii?Q?4rmFuaWYw6N2GunE57lGyZ9AgZ5ozJttCxUWDdCsF9oza42ZWP42DOlXWN4G?= =?us-ascii?Q?kjcAOxuw6gqIr8laT1FDrM1cqWGpGEy2j+IIvDQ1u1J7BhDRL8AwLKXAp3Do?= =?us-ascii?Q?XUzk4XY+VdQ4OK/+BZUM8xhwRzwe4Ytt6e2YPuqucvOZWamo8qE1KFqHs+qL?= =?us-ascii?Q?Zllqvs3zRfDCa5uCywZe5J++f3nG2OX8HPXguxCt5Twbc06y1ByGBVbDBhac?= =?us-ascii?Q?NBYMuLj03sEXTlWeZRYxcDCPeU9Euml5P5JjVasxz9NXj963Tlcrwd8ZMBLM?= =?us-ascii?Q?ZWOP+zJN6u27Zcp2xGGSV3KssQMeP2opN565UG/UtX+5Jg=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?4PKI1b/Yyg6QRmQomUchx+3HWezlUjr+XYJ4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82MJvYgx3m3NWR3L6d05u6HHX5aojrh3FWBzYjU7ffSp2iqqKFYYkRURy?= =?us-ascii?Q?bnQBagjiX/Tx2IjSNHuYhGLVyokQF+fzb0BFs+ixcDspB8r26gdVLqtgmCMb?= =?us-ascii?Q?juJbdJaJTwrspnSwcgTGU6+1CLBd4MRqZm8tYs4Q6ss+xIXN/YBWSf/IK/AQ?= =?us-ascii?Q?Q+vbjodX+pfpTaoIB+ev/g/jSjYvrvvrnNcr67hTqWV8eHRJPUvpO4BugbAp?= =?us-ascii?Q?LuZsJVAMOlF7hf/EVRARN2m21PZ+qrwlf3WEO/Qek1JFlBSbT+4eZbY9KSY3?= =?us-ascii?Q?K2olU/zn5POSvNx8O3yV48rzP4PzN6rmVmB7KAZwrAtWprLt8QvlS4BmK2eF?= =?us-ascii?Q?juyf9H7AVqxmHmVLHpEb0rKJtN8pf2RBxsYQhYwGXdRv80ssQ7+ic5zBDkJC?= =?us-ascii?Q?CdT1yO/guypMT4fKWhm1sZi8Uh7j8TDB4hxIbxiXQ1xKmWl9Txy4QbgfrCG6?= =?us-ascii?Q?iq5bJugC7gcbxkn+Rr7XwHl9GEpGuLVomLP39i8jLy8DvyzuPMEJtuYEmwpV?= =?us-ascii?Q?SWUpHMuqowwOzpgjAGBqW+8miIopD6ib3YDf/at92wxhsP1PVnLxzY3Ga0Ks?= =?us-ascii?Q?OFdbV++arwJoSVBS1Kb7HpfuwjTYLuHdXrykUk3ci+VnD03Chhk4Q4dyttVX?= =?us-ascii?Q?zrIPt457EfIr2QXNWhoSM2IVyDDxdtX/iV6932zGGj2Po8lwBbdkC2KLlzWq?= =?us-ascii?Q?zQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d125378d-9d97-488a-758b-08dce145ae73 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:37.7143 (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: CVcpik/V28ac0rVL3ahx41br1yldpXlLgujK0JbKeTScpx/77nE5WaSSmK0My5TFoV0gOjhP6ufZaY2sTeQriozt9jiJf5lD6tlZJBkOcOw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696883711116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu Describe the layer which enables SCMI over SMC calls forwarding to EL3 FW if issued by Dom0. If the SCMI firmware node is not found in Dom0's DT during initialization, it fails silently as it's not mandatory. The SCMI SMCs trapping at EL2 now lets Dom0 perform SCMI ops for interacting with system-level resources almost as if it would be running natively. Signed-off-by: Andrei Cherechesu --- SUPPORT.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/SUPPORT.md b/SUPPORT.md index 23dd7e6424..d8ffddfc44 100644 --- a/SUPPORT.md +++ b/SUPPORT.md @@ -927,6 +927,14 @@ Add/Remove device tree nodes using a device tree overl= ay binary (.dtbo). =20 Status: Tech Preview =20 +### 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 Dom0. Some platforms use SCMI for access to system-level resources. + + Status: Supported + ## Virtual Hardware, QEMU =20 This section describes supported devices available in HVM mode using a --=20 2.45.2 From nobody Fri Nov 22 02:31:42 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail(p=none dis=none) header.from=oss.nxp.com ARC-Seal: i=2; a=rsa-sha256; t=1727696891; cv=pass; d=zohomail.com; s=zohoarc; b=E31vOblhV81ULli0Qyequg4zj05WiRQLXlehyn5ShwwtknOPrI6EU0Us/+HarV9dPLfd1/joHyUIoisIZ72K2elCbBH+82qCcRCki6tPg3yd9dkieO13MC//sEg1o0+Q60CSukEAeu9JeFOpBRFMC3Cw5B8RMXy7FI0dll8SHLo= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1727696891; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rAMtW9aCVAKuBr/JchwN2dClQ0hPHo9johIwHXDxqOE=; b=eUBIrIHpynTQTUkEwAvhjL5Dd6imxZYdqgxUIkrwxId2YpVmEyWB2RcTUbz2FZi7LTd7RDDCqOBDge8GbeTn/y806/lKcXXchKr5B2AGk+L0IYinez8rX75aB0hmimVb5rdCKXrQ1FXM5NDOLPTne2lNOD1A5UrJvnHUiVoayWw= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; arc=pass (i=1 dmarc=pass fromdomain=oss.nxp.com); dmarc=fail header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1727696891128381.8374132640846; Mon, 30 Sep 2024 04:48:11 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.807258.1218653 (Exim 4.92) (envelope-from ) id 1svEsU-0002Kg-9O; Mon, 30 Sep 2024 11:47:46 +0000 Received: by outflank-mailman (output) from mailman id 807258.1218653; Mon, 30 Sep 2024 11:47: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 1svEsU-0002Ji-2W; Mon, 30 Sep 2024 11:47:46 +0000 Received: by outflank-mailman (input) for mailman id 807258; Mon, 30 Sep 2024 11:47:44 +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 1svEsS-0001MH-IH for xen-devel@lists.xenproject.org; Mon, 30 Sep 2024 11:47:44 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on20605.outbound.protection.outlook.com [2a01:111:f403:2613::605]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id cd8b2cc8-7f21-11ef-99a2-01e77a169b0f; Mon, 30 Sep 2024 13:47:43 +0200 (CEST) Received: from PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) by AS8PR04MB8357.eurprd04.prod.outlook.com (2603:10a6:20b:3f1::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8005.26; Mon, 30 Sep 2024 11:47:38 +0000 Received: from PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709]) by PA4PR04MB9565.eurprd04.prod.outlook.com ([fe80::d8ae:2e16:5a97:1709%4]) with mapi id 15.20.8005.024; Mon, 30 Sep 2024 11:47:38 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: cd8b2cc8-7f21-11ef-99a2-01e77a169b0f ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=xKkosaMA/kJDreAGgwdGmI0GSwtX4LXax79OMYcWvCt4Rsx75kOZFObvAiSz+s0Yk54C84U/vu3e5teOHEBjByoHl7eb8aHDze9kN9gm3AL4nuzOiBBhDxXNS1a6UjslOkST7sg9zLTlqlP/92otFsueDOBM9vBebpzzCxTND9go8/+ER3QuyBri3xVbUZSETmlXguIoEO6Aa+4ykq6VneA7qfVGvikODxUeDSFD0Czaqx6iwBcsxdHVE4q+FN8EC+EVeTWrgsj/iazaIVKP+ccMePjGmFrdzipe/sb3fqOvI2hEYRlylpwMWplzZagUurx4kHr9we0HQlyBo8LOGQ== 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=rAMtW9aCVAKuBr/JchwN2dClQ0hPHo9johIwHXDxqOE=; b=H+G6FhkD8YCrK5oYWBAVOd5nfXTH72wI6UxBdcWGDJMI4nRXX1j1aXG2x6vnh0km/Raur3OvwH7+D3+QA9QGSQ5kU0Hj6rwmP/ut0s/cye1sE3nc36SsERfO5UZGKWN2CUNiM20X6syrB7lnocXNFk5hWch6jvj+hzEexErYIKm66cG7ARagyiscrlaKJh9gYBF9PfUeHFtl9z1VyQqbQjumyWkckPSIYx8KLLZc0Ah3Lx/YLV7i4rCGGFLh2usJAt1muuUSarW2I1fY+d0C/BG7lqtDpDCjO1OyT4R3WMa8NsCbdx3LKqj3v6YAknAxh8IRYsFGIjIx0ARwU8gHIw== 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=rAMtW9aCVAKuBr/JchwN2dClQ0hPHo9johIwHXDxqOE=; b=uds+9idW+9q47aAcB0On0ocnmBCQ1qm3f5cOgr9NLpZRM4FX5nSt9lyxkx/xz8OyJUTGmEYFSclvoJ4ujG7/qPaFjoek+ZsjTBYBO8zYDcRa6yBNDcZjfC2x5lAdA1bQGi2hHxnUylbWYXIM8iFkVCoibPz6/EdlxUSS11xVpaweRvL9pJBPllnuGU7HQwXzUsrlqJi+mholkMF56UDO74E/fDlNfWVtNB6uuP3rcTDRxunM4ztc8wv0yE8+39xCCtCKfDl3w0G8SotcCUmdIfP7AFOasgX1Xxc8HdNjI9E0yg3rZOSk8CzFZ1PSEWm5J/6pbTOrfiryJJYxt0Ie1Q== 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: andrei.cherechesu@oss.nxp.com, S32@nxp.com, Andrei Cherechesu , Andrew Cooper , Jan Beulich , Julien Grall , Stefano Stabellini Subject: [PATCH v2 8/8] MAINTAINERS: Add myself as maintainer for NXP S32CC Date: Mon, 30 Sep 2024 14:47:14 +0300 Message-ID: <20240930114715.642978-9-andrei.cherechesu@oss.nxp.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> References: <20240930114715.642978-1-andrei.cherechesu@oss.nxp.com> Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: AM0PR10CA0016.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:17c::26) To PA4PR04MB9565.eurprd04.prod.outlook.com (2603:10a6:102:26b::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9565:EE_|AS8PR04MB8357:EE_ X-MS-Office365-Filtering-Correlation-Id: f4588e87-8720-4935-825f-08dce145aefb 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|52116014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?CcZTXaQE8111vEFCMu6GV45DMaHw9CPFQGIMnJ3ygCBc19W0k8LZLQUY/VDC?= =?us-ascii?Q?MS/+oHMoyVjM0utEt4GYvwLkltWRsdlASHFIll5pyb/FbKLkKIl9HUhhQcZT?= =?us-ascii?Q?YMXG2FXkS2LhO9YaTMK1waGqF03UC67K2rxN29qIysDUadrD8m8wgRebCWhC?= =?us-ascii?Q?CLQ1NaD9UzOmoxdLopkaZYr1//s2/Cw++0y4TuOmGkO310AmQTW7Hv+6mCyE?= =?us-ascii?Q?jN/mk6sm1/MeKBcBW7QbOTWPTQJFfuVWDVhR++4LMHtB1i5YRRBgy/uUV21X?= =?us-ascii?Q?athzsTh5/fM+bo8Zcvp4xI52RB1wY8qnDZXJhw18nvsGoGqeVr9V150T5aS5?= =?us-ascii?Q?ylDvK+T56NK+BvoecdvFNHkIdWmf0Kp8MVzPXZiTYm6+en2B8t8B3NypBpq5?= =?us-ascii?Q?7UNW3ymPTVcTj5AC+f7rjVDb7U5oHfWg7zr6xDrQ001SiinRmqAlkR/iU657?= =?us-ascii?Q?x4Fb7e+ulLh25DF2NzUleeBCdTTg9MYCskJg4yaQZGahCPlsGdMk9XsMcmxD?= =?us-ascii?Q?sa2LvzU2IIWp/FbWgvRofJSr/vrXM2UfkdpFniuWhpFeQ0V1uPii0Xvh8FWS?= =?us-ascii?Q?YYhEvWf8jMQq3WHPK7+84/t3dIt7xIUJ204WeOON8GjKZSVy7IIH/x0vbypA?= =?us-ascii?Q?IvNNQQnxs0jtWwxvfb8UYTY+wI5gqfkkqO6B4QhSqP1FdDOH6Kyt/4iZheLa?= =?us-ascii?Q?EA2LVz+Z90BV7n0w+UwH/By3aUgZv52/lbom/N131nf8yJCzfxZrfDyvMk3C?= =?us-ascii?Q?sxlOSSSaq52Of/yu1WMsS+s5IxZ94fJIGoQb1qmc/NnUpMb6FVruy3ZBwjKp?= =?us-ascii?Q?bx16pGpQIBNaCfz9eQB/9deB2P7HPuL9yF3mZIrHtWT2UVlAYRSIp10lmzS2?= =?us-ascii?Q?YyG/DiUDoP9rBl35P2b2XMjSJJcnpO5FIP1JSZChgj3QD75A42sZkF5oLlXn?= =?us-ascii?Q?NUEucSfBKy4poKw2bC0tGdYEGk6DHqOV6m74RUicMB02XbF2QafnFtRMiZf1?= =?us-ascii?Q?7PsyhnWhiC7eZTVfIzqZ3i5k9Bu8MkglNOAIrWoYOmau58er6kFZq9eWgzkA?= =?us-ascii?Q?SaueizYuIb/YKn7p+y1EbyO8jP5qNsRtoM7iy5uWAMqdG/65oFKJGmhnPBnI?= =?us-ascii?Q?2bGVcCNcrMevXb/SaP0clJqX4IoMFn1ss3j9cuVo3IvmC0f5e3qSjKChp0L7?= =?us-ascii?Q?Kvg9vl+elA+Xqw3gQJRq+sBonlrw9WFtbWemCJWeABohkn4T9zQ0Am5phjF+?= =?us-ascii?Q?PrUyjPtlFgTNn0NCqiCKuhbSq6UsH9DsvQhgrqhS9w=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9565.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(52116014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tz6H8dh1oktjji1ch/sB/8ltntC8bl9kZ6hiKnjRlmLKKIP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zgK0qB7kqebRLuDjO2QGQiOQ+NnO84uVdRJqZ7nnjY?= =?us-ascii?Q?LY6dqB65YGD7Ez9IsrvWvgpOQ0Za1Hr9iQ8+VOss0gTEUIZaOFHoG4JAHyIs?= =?us-ascii?Q?34oPVqVcrHgGJ3Akrcs+7SF7N++PooVnPy7013Yr7lq4wTDLKR4kM/NTa1r2?= =?us-ascii?Q?HClvHfjOv6TSgruobxwpNzPdDgjoSvdNmEWodysKc0PsCwdR6//gTBQqRoLp?= =?us-ascii?Q?/pmqSL6Sd7HONrVLlbxMQd1kZSRI8sJiYbXXaYYflP+WGC5yPGAtlgB9HCLM?= =?us-ascii?Q?Qtl9HlnM8sLpZoH3kqR+4f1UcD4RJKYe03z8PD/P0rVdNAaQSIpos9/lv10Z?= =?us-ascii?Q?c7wN4RlKOcOOYVlH+keaKxHTUanwi2Me0mDjyMAfxBkFPIJO1wHwPzqaxzdU?= =?us-ascii?Q?fpgwzoHbyppG4ADx6gT1nsmDHMf8v6KKksw/X5IoEoNUY3SehHEQZ6LY6VNY?= =?us-ascii?Q?pvRbBjFZ0Ubgl5i6CfbVqsdYvPK7rRzh9KWNVa3uk5UWXxnxYgQvtx0VnxpZ?= =?us-ascii?Q?U6F7r36uga1wFl0t7dSBTjonoqfW8iXA7Ggk3fOd+ctvw4zqS2R6eVM4VoQw?= =?us-ascii?Q?7UYpK1uVzikzv2CXndTNfLYPPKX9OQfppxCLbil18UCTabiTyVHAWY71WBFZ?= =?us-ascii?Q?ASSmxZypPV5W67uHXM+eMUkdsSdK6LmAwBStsRVwZRH1XtuzFn8X1eeYsVIV?= =?us-ascii?Q?eQ=3D=3D?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: f4588e87-8720-4935-825f-08dce145aefb X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9565.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Sep 2024 11:47:38.6419 (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: mragZ3WhIL3cABBzqPX1fA2I87mhzETkyrzeQUCGhe85Mu9JSsNaUMVqtSpZR+GpCK3yQj566c8+sO9tq9fjj1uToVeXkvKnSIoeKLVr/u4= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8357 X-ZohoMail-DKIM: pass (identity @NXP1.onmicrosoft.com) X-ZM-MESSAGEID: 1727696891638116600 Content-Type: text/plain; charset="utf-8" From: Andrei Cherechesu Add myself as maintainer for NXP S32CC SoCs Family, and the S32 Linux Team as relevant reviewers list. Also add the linflex-uart.c driver to the list of other UART drivers in the ARM section. Signed-off-by: Andrei Cherechesu Acked-by: Stefano Stabellini --- MAINTAINERS | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index fb0ebf0939..2e273a5c78 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -249,6 +249,7 @@ F: xen/drivers/char/arm-uart.c F: xen/drivers/char/cadence-uart.c F: xen/drivers/char/exynos4210-uart.c F: xen/drivers/char/imx-lpuart.c +F: xen/drivers/char/linflex-uart.c F: xen/drivers/char/meson-uart.c F: xen/drivers/char/mvebu-uart.c F: xen/drivers/char/omap-uart.c @@ -428,6 +429,13 @@ L: minios-devel@lists.xenproject.org T: git https://xenbits.xenproject.org/git-http/mini-os.git F: config/MiniOS.mk =20 +NXP S32CC FAMILY SUPPORT +M: Andrei Cherechesu +L: NXP S32 Linux Team +F: xen/arch/arm/include/asm/linflex-uart.h +F: xen/arch/arm/platforms/s32cc.c +F: xen/drivers/char/linflex-uart.c + OCAML TOOLS M: Christian Lindig M: David Scott --=20 2.45.2