From patchwork Tue May 7 15:34:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan (OSS)" X-Patchwork-Id: 13657296 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from 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 EB6E5C10F1A for ; Tue, 7 May 2024 15:27:29 +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=gBHzD5yi2dnCR1ugZXWmmPOLmnnRp7NEbbEccXKh30w=; b=fJqAPfPCAimE2W I8ffIV8bdI9K/RDw1UyUTd4tfhv1uBYJmWmMieIxQcfAhTkgqVNTZ6GpCh892AyKLXdDqVU1BZdo9 Vb036z7OGiByiJ4JE23wuINvtqGLpqsrNCmPbYkXnVNDI03T2Dy1Dy5+Wzw/SSoWr65Q1CCIEr+dz /UJYjQSK64D52muL4qqHfeTayaV5xjeJCekwxI80RFnV1KLIzmS0wS0iShj176UCWPR0WupQPD4KI ymTIxD20sFKfJyaT5v0io4odnGrfm8tS7Q3k2b7CURHQIO/cVcjy3QMgFptlJyt6uO7LAVtqBxo6X loHEBtWcU7rfczY8ybzA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Mio-0000000BjiX-2RGd; Tue, 07 May 2024 15:27:14 +0000 Received: from mail-db8eur05on20626.outbound.protection.outlook.com ([2a01:111:f400:7e1a::626] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4Mik-0000000Bjgf-3dKA for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 15:27:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NIU3cWahhHf/XuLjr/bDtXYDC5zW7a820F2XJC04+H5HfkVEH63nQtcKsV+ItC0ot4n2P6Bp+dlY9qZzigzdgInb2CP0/pDOmDWmg4Y93tR5ZqHmbKiaTCmmEajUuMKiJ5vTU1l80i5dvq/ClcNVEOXuDY70e7m1qZtsZsWSe1UyRcJJFlxy1nxu8zxP79ENOXIzu3DglinunW1+Vza6BCLkItN9iBV/unxhk7NBwJPYlmeh46V0ihQLYrfM6zM/AFnOG1RlFbyVQULfsz+WI63GRyF7QkexvnGwzidlt7rqf+xIKjxkmwL+VU1gp4M3P4Qn/mttLKhDA6gKh0eC0A== 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=gyylEIS9MRSFYX3Mx2JxcdzFYXpvAzaNX8cSqQgGbJQ=; b=bu8HhQH/J5TAA+Hq1RtrfEqSlO6fhStGRzSyxzQdiBb9HqR44+JZPc4xbSciYIsSVwlwUPoi0ZP8c41i8O0YzWwgCWNW8lk6xpdp3+DX1EZZfOJEAZQtFUachHvflbGJxnCYmIxPSL79gvMxu2UiT/GjPi1yEQeUvo9ab7O6IVTx5ZeLNYcYUSGBqOWtZ1qSjfMhusE7Nud/ytzJIzeezqbQ2e5ZETKU8TBsRd623Akh05VqUhDxEbSccww4YdP920PZFWB0FN9Qj5yOjIThzVN2CGhppDGaLhEId6Dz7K9okOX+Hyx2fG8kqqBsxD1Q9phP7SzJp4hZS+/xikgxlA== 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=gyylEIS9MRSFYX3Mx2JxcdzFYXpvAzaNX8cSqQgGbJQ=; b=BqaEkK5VSPt7iwfrMqD8F1AKfUnFSqsMG8aFL7F2N+92zNefYwiBgpqmkGpdOD27YhXbnj7kWlpOzyZpZ8DFXFrEuGm5x9LBSgDOa8XWLUq07RuTHvX61TUjkDqhg3pLQboVRQmAnyhLTReT/yqjVpeahBX4PR//wmqK1+OoqNo= 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 AM9PR04MB9014.eurprd04.prod.outlook.com (2603:10a6:20b:430::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.42; Tue, 7 May 2024 15:27:01 +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.041; Tue, 7 May 2024 15:27:01 +0000 From: "Peng Fan (OSS)" Subject: [PATCH 0/2] firmware: arm_scmi: add notification completion channel Date: Tue, 07 May 2024 23:34:59 +0800 Message-Id: <20240507-scmi-notify-v1-0-1fdefc984d53@nxp.com> X-B4-Tracking: v=1; b=H4sIACNKOmYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDUwNz3eLk3EzdvPySzLRKXQPzVAvzRIsky0QjYyWgjoKi1LTMCrBp0bG 1tQCPyGMrXQAAAA== To: Sudeep Holla , Cristian Marussi , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=ed25519-sha256; t=1715096110; l=1405; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=yMr0bAWjFCE4wk+fIyPqGnKcpvsZIiRNHinbpigIDaE=; b=YPRSXgt1kPCgWcWEHVH+zRHVLA1KOOw8C7XZuMike5JJdRYmgu0XW94QRc0IbzDSF9oZ8mV5V i8cHxr7JtHWCXrHCXVcp8ijVtZhx4pzXWN38eOFxk5ZnGupiB5byOa2 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2P153CA0018.APCP153.PROD.OUTLOOK.COM (2603:1096:4:140::9) 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_|AM9PR04MB9014:EE_ X-MS-Office365-Filtering-Correlation-Id: 48b1c2a8-392d-456b-0daa-08dc6eaa2466 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|52116005|376005|1800799015|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?ioRNmxSMEGTrwmsa+xPWtBAkYE/VRMF?= =?utf-8?q?Up2+CVJqd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eNscVA5ObcYNqMosFoYaFxkmt63jG7lnN8m75hYx0vJMhOuJi9FgY4MqWHQfbJJ/?= =?utf-8?q?S7H3yW5XFSXqHxZ4klxGrN8oPg0RvpVK116fBXnipsJtN3SsUIiIQtggmGzWFbtds?= =?utf-8?q?sHLRAfqaxfXdF1q3Wo3qc8ZrvbJDeP1RmGOZGIhxT4MiqFf4HchHuJrap9pvkJcbD?= =?utf-8?q?ahHiMX6LyQKH5ffQL1TOmZsQuLKHkHogYicvlgHZxrLaooySpnw0tTiztSwM++whV?= =?utf-8?q?9jC1QeGYtup47EKvfzY803mZNshm/hSFTdSUbWIM2qei4RJqIUfl4Jeh0uRjwE5xX?= =?utf-8?q?+ZQHJUkcvkxFAq8JqXsJx9EQloo8Sf5DTRB9xN5UYoU0XG2JJte6C3O8cFXfVe3+a?= =?utf-8?q?7CEQCoWj4p2ofSr/kwBhWd7thMrZATrHPuA=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)(52116005)(376005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?S13pP7UKd1ztD0faj2DmjoAjcU8A?= =?utf-8?q?mrN9NibHWXRARt8/k3EinBfk6BidFO/OR4GIFVQQMRN5xbR495icULenLvUjxOm7V?= =?utf-8?q?SAH68wZGln/mJBdKDvJu5Ppe/Yt/KFXjI5ngfE1JcNvtWfVF51ynH+aiDxKZhB/O7?= =?utf-8?q?KyajFVC4/H/FhC++83dS1/K1GUAuKIY8TMST/UXhCJ6bl5O77O4VfhHbxxt+eXBJY?= =?utf-8?q?RdeIVaDdxb9aS+Bo60fz6fy+FceubmzJ81AZ4QAJD2e7qQLqB9xyggM5/ediJY/wH?= =?utf-8?q?ML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HVCn+/gKjQOkUIHvhmJbyWV0J4oU2J+YIVz75TQlsxWn+A2/TD7Bk823NaUTEy?= =?utf-8?q?/PNACWRDxoe42qOsfqQx1oaXsYbQjCaBy6LPUqojjR9tnz9FpL1Ya+rvLSCVg3mp8?= =?utf-8?q?LYxy9BdMhQNf4P9oMqYjgnV+gyTuPSIiUBmxLhDpOPn5LVZOOeX4PkQVyWgca/WHV?= =?utf-8?q?2wzs6c3+6Id4Rj0XvfRkzZShGkqwtqy4e7XRjD2BZ7QIkd2cfgO2Sd5pShXeqeYQw?= =?utf-8?q?qsHJcpK7iIORCP6l8ed3O2O8gMeXOKzaoYQzhtJmVmCEe6Ze9SUo/+FQIslFmKd7U?= =?utf-8?q?TieuVv8ayfqFrNI91CPL/vd3wCxSQL6Jgcpo4k0t+tFyXLscfLXTIL7IZsyNKZ9hu?= =?utf-8?q?+jR4RadcvY7G?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 48b1c2a8-392d-456b-0daa-08dc6eaa2466 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 May 2024 15:27:01.5450 (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: e1vyqR9rANaij6Q8909GJff4oQ1PNslIkR/3kZp0udA1MkjJxC3QFKFqv8Ul2H3cMLpQLcUpH08fO+pW7ADcAw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB9014 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_082710_970390_DEE84EBA X-CRM114-Status: UNSURE ( 7.37 ) 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 (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 | 51 +++++++++++++++++++--- drivers/firmware/arm_scmi/shmem.c | 5 +++ 4 files changed, 59 insertions(+), 10 deletions(-) --- base-commit: 9221b2819b8a4196eecf5476d66201be60fbcf29 change-id: 20240507-scmi-notify-07e87a8b9a23 Best regards,