Message ID | 20240510-scmi-notify-v2-0-e994cf14ef86@nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8435C25B5F for <linux-arm-kernel@archiver.kernel.org>; Fri, 10 May 2024 03:12:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To:Message-Id:Date: Subject:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yeXZYPQOA7MS7EyZF90D9ZPgVwTdzjtdnn0RT92kL1w=; b=dlMJGpjU/wzmpX SqGwdlQ9yOnqD8iRuVv8R6qP9SV7l48krjhESF6TZ36dn0PPJ9iWkBvm4SVnpagFZsRpg3NqbcsJN /CKREX3FR15K+4T3CztSusvaZoQ1Hi5yKXGjVnXWQmeZ/55u30mPDULaWL3Rzgo5EMPCGf4kRcQ5D Ub1s/+ODv3cLKX01s/6nGklhA69qjJEDck7QyhfIBsBahvjDcsk1h9DIf75NlNb5dY8nktQLzhZI8 ZZES5xWGkNuJX4EZElJ7ABYkSynOrjVqVp+7hFNs45WoDqWxlyeft3dQ0jEApzsAmWjwaCl8zwH8W Nl+s0wQYr+n3y9I2qoqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s5Gg4-00000003qJb-0xDx; Fri, 10 May 2024 03:12:08 +0000 Received: from mail-he1eur01on0629.outbound.protection.outlook.com ([2a01:111:f400:fe1e::629] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s5Gfz-00000003qI7-2lLT for linux-arm-kernel@lists.infradead.org; Fri, 10 May 2024 03:12:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J/WEDBdcuDm+A7V4WuOlyD0CRS8Pcq9Myqf0bcrvdvjyBezjqruyrx3XXdUpLiQAh6Xvy/b2dWnQTF+C5Wy9piPq7tIgNaHV1rT/ug+Vg27/44rYU6+d1xxPKlsSXYoNlWe5iXAr2naWMAdi2HI6wff49fNTct/uFLoqVFe2pqylWnzA83+Q3bDh6pof8zkZf5pkEh0wjrgC0LXlJJhS5MNlRQSQU5+kf57d2M2js9cUQp8x0MO5x5cc3R4Mp8LmTGcn17Y5ZvzQPU55XrnSkoEhnwF75uhdTPQTufd7vv4vZzRzQb9SUSWXxCKjymcag3pn0NQ1JE49nIOiUGcWoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=bP11g84Vnuc+0uP0MR0IJjhbNvIU2a/0hUAFSbXXWPI=; b=HvWPcje3e8rOzA41pRK5we8g8mP/6Y2qANyZqgGzr6CUYpqEtrMdAYnH0Sayg5mHkbmfRe+vqmophbNFFtrTGZwCYZOoR9Xq42M7Q/8ALf//Nx5fewsz6W3lbIaHYG99hKeVsUAY3XFSsAJduruTobIpTRo2yMgaix5h82jiO4nF1MbArz7ae/dXyYVwiWsqUzl3pzs4xEzBAklBISvQA92diEtMFlugTNjpEja0xLfz/to01cOS0nT79q+9YdSgObmZ+VWT3q4AjDIdMb9GcOOUcUNVETGD/LvbKjOCi9Y1IL5Si0t5guIsZAeV3uA/tinrEGPfnAEYRKN+ZpKNVw== 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=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bP11g84Vnuc+0uP0MR0IJjhbNvIU2a/0hUAFSbXXWPI=; b=iXzfx4zqG8JNdPlmEVJoRNfE330300rKNFU/ujimHjF7aqVjNE9hjxpBnKSNwWuDyyF8eg04A/duOcUP4I0XeTwLf1qpXghqqRpExxMWdl1kiKzY+ceRZkLUCgwNwKaAnhaiWDO/t4ucKeVvTpSt7Bj210HGVeot2S6UBELF7FY= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) by GVXPR04MB10135.eurprd04.prod.outlook.com (2603:10a6:150:1c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.47; Fri, 10 May 2024 03:11:50 +0000 Received: from DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d]) by DU0PR04MB9417.eurprd04.prod.outlook.com ([fe80::d30b:44e7:e78e:662d%4]) with mapi id 15.20.7544.046; Fri, 10 May 2024 03:11:50 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH v2 0/2] firmware: arm_scmi: add notification completion channel Date: Fri, 10 May 2024 11:19:46 +0800 Message-Id: <20240510-scmi-notify-v2-0-e994cf14ef86@nxp.com> X-B4-Tracking: v=1; b=H4sIAFOSPWYC/23MQQ6DIBCF4auYWZcGUQN21Xs0LigMdRaCAUM0h ruXuu7yf8n7TkgYCRM8mhMiZkoUfA1xa8DM2n+Qka0NgoueD1yyZBZiPmzkDsYlKqnVe9Sig/p YIzraL+011Z4pbSEeF57b3/rfyS3jrHUWnRlVb4fu6ff1bsICUynlC+1QTyKkAAAA To: Sudeep Holla <sudeep.holla@arm.com>, Cristian Marussi <cristian.marussi@arm.com>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org> Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan <peng.fan@nxp.com> X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715311198; l=1618; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=YtyTpdvrQ5zl7BSEMed4Pj2k2OlKSFatIr7+BP2lbIo=; b=f7DAUG+W7vauCfSk6iYdQieRMfEGTbAn9vvYCYwnpeXDiWoGehSXf7HlILCorJreQ3HKN6SOb x681+V7diudBLH8WMkuioSkHFsb4anfM4sNb/haqB84r7ijuEXhdqhC X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SG2PR01CA0148.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::28) To DU0PR04MB9417.eurprd04.prod.outlook.com (2603:10a6:10:358::11) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR04MB9417:EE_|GVXPR04MB10135:EE_ X-MS-Office365-Filtering-Correlation-Id: efdc46f5-ee5e-4a45-1ff5-08dc709eef2a X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|1800799015|376005|366007|52116005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6qkW3gWx4Nm4xOojQSKvKIIvqTlCfUH?= =?utf-8?q?pOqSlxZNnn42IWJ0e7L8pOigVPmJJHrHsX+5V5KJXQdtONTkNpvuGxb8VS9xZIOJM?= =?utf-8?q?IK0bIAnr/AY/9YARokYiC1Wg+UAzgBHg2ssjP3ueyMuUCLwkdQQEPwreCBAB8xmg8?= =?utf-8?q?IP4+FP7VUY18wNugiSkZef080JNJAHYMiidFFye0Q5O0NevDqWgKP4xWhuFMZ6ddf?= =?utf-8?q?cKidFw78j+stFgRp9uSwxpeL1cY61MkaK5ycHfKkcr2koY3oE3i7tTFkqfauBO6wy?= =?utf-8?q?IfUa9To4sV6YdFVS1PKSQI5EswmKvT1XdxrDWy8S2p5FvmyJJnJBAL3G46319+1s4?= =?utf-8?q?7ri4bAYOd/ndrlsv1oaW0/0gNW63VEpV6cvj9U1POui4VV4ldaBp9Iw2qI9IewXaw?= =?utf-8?q?3aVvwu/+ockwZ/k/cZA5OmGwD8L3xAkGH/6/EXzSZW7moAr/8Vf2/fyuX7D5SXVdp?= =?utf-8?q?XwXAXnp7b7dS34cELlGFCTjgZrZXeHMGzUbNLKvkYjzrUPbGojqG4zhHMKzJ3GpQs?= =?utf-8?q?I/9RUMVpqYO0JznzVuJ6OuIr8RzrhFuoj+AJB+m3kE15XDbI7uETdmzgfZMXzc8mk?= =?utf-8?q?SSSE6V3k5uo+jiiTTf63LbzvZvvFg0XH/3SfrjF5SpOzcGtdogHbQ2w5/VJVc9UT9?= =?utf-8?q?6YVk9p5ieuwzOz+YJkE01riQWhfga1RA4R+Y2+dPRMGi3u2nCOzxJkvYSUq5nsYrW?= =?utf-8?q?ONudQhAbkfUOGgf9VcbEDM5d31t/hDsjqhb3xGLXZq5TvGnMeL8huVNjWOoSedOhh?= =?utf-8?q?3Mxu3b9JGik6vxsRkOsA1CU19TttvNXdjjpjsppUY4fYNIIwadvAzUNyFxWmLq8hz?= =?utf-8?q?f/0YxHsCPEWbhtgUWqksIm3SWu8ZnoaMiusxofVXwIUwpTFVt6BEeY16p6taZ6Svu?= =?utf-8?q?9IAk5vHUffQLmsdTz7tEA6K+w3ixefj3V8c+r7WDyjfcc1pHFE1CMqH9O/asz02gK?= =?utf-8?q?QL+Kd0GB5ETH9LhvrT5bGy6P+jLF/E+5M8c0w2iGQ67h2sv2xT92IoyQG0uUlCOqE?= =?utf-8?q?Yl/ComRlOQ7au6c4mNVhzfWW31X6tNuv8/kqqMjjns+A7kTpOsOSJVgUVQ21zT3YD?= =?utf-8?q?sgj3V2rrM1SueNTmqwdLiQYjgnseOEVm1Jxp3sHwxkpsJ2GeYjOL0exk9QgmqHx3I?= =?utf-8?q?5NWxe9VoMPrgwp6XiSfqszLz8jjcf//8sg8lO72VwvvJ7/4NoUGapAnRHOZxkOqxf?= =?utf-8?q?sZCQClxe/oDzPbHSKHqh7SZdOAlxOHGb89sQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DU0PR04MB9417.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(1800799015)(376005)(366007)(52116005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?blyj9aTCUi0Q5r3PGLvw9t0sFig1?= =?utf-8?q?OOtV8bxNT7kCt70K5sPiEBnsQGfN9s8KwW3xHcjTn58Gr20nKTuFKq+vInSW/OLDt?= =?utf-8?q?yPSt1jUmBUbRbB/x3LHFiRNKHQ8zZCxxp3BeIzpcYaXX+d5AUDhLM9g01WGYWazWZ?= =?utf-8?q?6eqRk0VAF38l0WXCN/C845SmHIjSIQpoti7I24hVl8eJiO6kOVH+/9B+hYPVGsCD9?= =?utf-8?q?l3N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pObrTDcQy74Ne/Ap/dUKQFG4VKuhvSliYRc/zw98nFMf0jrCg7MNSai7v?= =?utf-8?q?1+k3RO+cvtlhzTXxa7LSAr35klRRkxM7U0cS4Qf5PwQpT6BePCCUai86CIayIeJgI?= =?utf-8?q?NOYm6loeYuoSyNrEQuLGARY0UQr1CAvIC/MdqZ92Yw8ql7ST+Av1NwVYfAQuiqbd/?= =?utf-8?q?NmmCwrUSVt46L77XQxZjMPahX3kRyXxOpj02l0ROOKuqFUabUOPSQTV1Zo3vt0mAw?= =?utf-8?q?68L3uhR1Dfm/SQHNAJ6svl6EjADljFeGSqxGccIWgxNpthqb1k2iaRPsaRRwmvErH?= =?utf-8?q?6y0uQ2yjB/GJZryhi+08XEa0HWYAt4Zq/lc6RJja2XiSqczcj58iOyUA9xw2rL3R1?= =?utf-8?q?oImlEqVkOO8LHtjYwn3tsaE8+p1b5rgitEXHoIbtSdzIa28cNCdhbM7bKAKOZ4l4Y?= =?utf-8?q?dofZwLaf58tF?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: efdc46f5-ee5e-4a45-1ff5-08dc709eef2a X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2024 03:11:50.2773 (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: 4v7MsRe7zfZfjtv2V/mo+I99cYJO+NaqAoTblAOMIwM7DDS3T/DgBOMtI80Sz+EWmET08H6+NJRL2V8+LJtGqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB10135 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240509_201203_746394_D6A0D76D X-CRM114-Status: UNSURE ( 8.64 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
firmware: arm_scmi: add notification completion channel
|
expand
|
On Fri, 10 May 2024 11:19:46 +0800, Peng Fan (OSS) wrote: > Per spec: > Completion interrupts This transport supports polling or interrupt driven > modes of communication. In interrupt mode, when the callee completes > processing a message, it raises an interrupt to the caller. Hardware > support for completion interrupts is optional. > > i.MX95 SCMI firmware is fully interrupt driven, so Platform expects > completion interrupt for Platform to Agent(P2A) notifictions. > > [...] Applied to sudeep.holla/linux (for-next/scmi/updates), thanks! [1/2] dt-bindings: firmware: arm,scmi: Support notification completion channel https://git.kernel.org/sudeep.holla/c/d0398f51ffb3 [2/2] firmware: arm_scmi: mailbox: support P2A channel completion https://git.kernel.org/sudeep.holla/c/fa8b28ba22d9 -- Regards, Sudeep
Per spec: Completion interrupts This transport supports polling or interrupt driven modes of communication. In interrupt mode, when the callee completes processing a message, it raises an interrupt to the caller. Hardware support for completion interrupts is optional. i.MX95 SCMI firmware is fully interrupt driven, so Platform expects completion interrupt for Platform to Agent(P2A) notifictions. Add another optional mailbox channel for Agent to notify Platform that notification message has been accepted After notification channel status become freed, Agent will use the new mailbox channel to send completion interrupt to Platform. Add shmem_channel_intr_enabled to check channel flags. Signed-off-by: Peng Fan <peng.fan@nxp.com> --- Changes in v2: - Support bidirectional channel and update commit log to include bidirectional channel in patch 2. - Link to v1: https://lore.kernel.org/r/20240507-scmi-notify-v1-0-1fdefc984d53@nxp.com --- Peng Fan (2): dt-bindings: firmware: arm,scmi: Support notification completion channel firmware: arm_scmi: mailbox: support P2A channel completion .../devicetree/bindings/firmware/arm,scmi.yaml | 12 +++-- drivers/firmware/arm_scmi/common.h | 1 + drivers/firmware/arm_scmi/mailbox.c | 60 +++++++++++++++++++--- drivers/firmware/arm_scmi/shmem.c | 5 ++ 4 files changed, 68 insertions(+), 10 deletions(-) --- base-commit: 9221b2819b8a4196eecf5476d66201be60fbcf29 change-id: 20240507-scmi-notify-07e87a8b9a23 Best regards,