Message ID | 20240324-smmu-v3-v1-0-11bc96e156a5@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 EA116C47DD9 for <linux-arm-kernel@archiver.kernel.org>; Sun, 24 Mar 2024 12:21:14 +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=kjfymTqWVg5+kbRjFxP30nNM2Shl3Z+K9cKUzGrUUCE=; b=gU9bsty8VsUNeX VC8CPjYy5lYgZs+fzsLo0PI9Symgf9Ha+nBqNW3A6wN6Wwq4+M9LoOQ4fk87nYweUzXA6gFLSLYvE lgn2zeKVdDrvyEpJm0w3BgGX+hKThiOAHzTRIMsLUfV5qSl87G0TP/099oWqpBY/SsMIBBLm8hC1e ufJKn18S1UX19c9J0HiZoLRVub/KVRDwuZVHe+c6EVJLMx8UuBT3zZyz2xoBLgzTM2mlQSMTz0Zjo R1ZlhX5DFunVeRvn6nr3khHsiwU5kOAbwmW94mE+m+D12zGfMK9SY2gKRt1mDz7Iekq70SoHWrLXg 4gyM3IzUralVEDvC3VAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1roMqX-0000000CX7r-2n2g; Sun, 24 Mar 2024 12:21:05 +0000 Received: from mail-db8eur05on2062d.outbound.protection.outlook.com ([2a01:111:f400:7e1a::62d] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1roMqU-0000000CX5K-3QIk for linux-arm-kernel@lists.infradead.org; Sun, 24 Mar 2024 12:21:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a1ghJ4stsYDA4OKkXIzii3GP+RZo1n47BEqeQWICPU2GeisuiG5a3+TVEa8Ki+vvqyNtJ0pbcaY+DpsumEj+0U3Y7+OUWBSBPCq31XgC61j4VNuy3TqOxWSEA3FEhBHiL5QVRgBWAalgr6YFiREHJ0EDhJg4BZxpzPwLSzSFiCnLXIbXCJU7c+YmAJN/f+JCNI3nmm3IrVEXQV1Jpe8EAUk1nQlvMK+e2iCJqECdQHrlN58S0QnmnM3l7SCXiv8nKr+yKUWqMejA2Y6KEle2thX5arLyGn1e1Igd7OwZ3XhW6FIcoDH5LNolQMQ8dTNS9n66jAf+RM35jhr8cs1uGg== 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=IhPASNj3ACADanKWtr3Th9k+TfknSsbDgvXdFKr9U6Y=; b=LqB1evqKyJI5ZMb0hARa4hjSJ7q1Puq4RAOjl8qOs7MAZWplzK8gm8bVA5znAX3UJt51LbLuxEkwf5jtONqef+Ob0QMe52oqZ9MoZjuAEftow99qz194YRZlx97ZkHmTvCYFQJl+tcjcIKwdDGoQyflIqKC9TffARnH5Ph5hmmFkPuUVvO9IAcjDwRl2VRHS6xvJN4lBVow3FE69IEH0YUFCb7o0BaxUpM1IBzpc82xkA33m+pzF59VzkMUXhHsulKd+6bIh5PfcNkKjhMfM0+f+J4uDQCfxNj3wkgGdUlHUJ2t+T1B9qNo2MuF3RM/G7vtyCNZKykUhJwNYB/E1bw== 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=IhPASNj3ACADanKWtr3Th9k+TfknSsbDgvXdFKr9U6Y=; b=Wy7qE3owmHyw95LiN7ufc+r/AkO/20HBeFlsDTDbbiBiyONc/M6VsBH6wy+AMgEnE8AfqEt1nnp6u2DYqp5a2dgEMYqCfHQyijM4rYuItUMY3eq1KcMSVSxXLYsHruSL4djcsfI9vYuXtWESApICDTEiu3hHC5Gg1xHS+EkZ3J0= 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 GVXPR04MB9901.eurprd04.prod.outlook.com (2603:10a6:150:113::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.30; Sun, 24 Mar 2024 12:20:47 +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.7386.037; Sun, 24 Mar 2024 12:20:47 +0000 From: "Peng Fan (OSS)" <peng.fan@oss.nxp.com> Subject: [PATCH 0/3] iommu/smmu-v3: support suspend/resume Date: Sun, 24 Mar 2024 20:28:57 +0800 Message-Id: <20240324-smmu-v3-v1-0-11bc96e156a5@nxp.com> X-B4-Tracking: v=1; b=H4sIAIkcAGYC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDIxMDYyMT3eLc3FLdMmNd87QUw0QT49QUc2NTJaDqgqLUtMwKsEnRsbW1APM 2ko1ZAAAA To: Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Joerg Roedel <joro@8bytes.org>, Thomas Gleixner <tglx@linutronix.de>, Marc Zyngier <maz@kernel.org> Cc: Bixuan Cui <cuibixuan@huawei.com>, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, 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=1711283345; l=934; i=peng.fan@nxp.com; s=20230812; h=from:subject:message-id; bh=s/cWqj24kjpME4NCiI/Hx6vxW6OsMO093cb3/6nL1lE=; b=fxMEub+XS5omc4TW73HPvKQ/eTvnc7lmm+bnwOgTvvHtTfCcy1DZXGhEaOKNiwiYzF+N6ewoD 3+/TGjktUGDDfAAz/iNc46rgvlNk4oYklxO/yVno9BV7UxcYpyFAHo7 X-Developer-Key: i=peng.fan@nxp.com; a=ed25519; pk=I4sJg7atIT1g63H7bb5lDRGR2gJW14RKDD0wFL8TT1g= X-ClientProxiedBy: SI2PR01CA0017.apcprd01.prod.exchangelabs.com (2603:1096:4:191::19) 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_|GVXPR04MB9901:EE_ X-MS-Office365-Filtering-Correlation-Id: 2339e18e-03da-4b6b-0475-08dc4bfcd5b5 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8RfHnLjLDo2+yrutgmPW1DMASB31A6IKvndd9C70f3uaEQ7aJdSvtqbr4sGo5CmSSFoPeyWI1dJuUGRn4wlDvg7lDoEB57UfEq+X8ap3P5CUfiFMrXmJ67J+idIApHMH/9dYvasYFvt6b2xnHklyzBb7cqaSoLO/6l8BsQvTi0CFh/ljkgGnbbmyLbDNlGIxhkz4U8ersb8DBYhSi9ZkclMMv/WncOTmPOu+PGShJv6WhBTSDZMSwNBwuzu4aW1uxkl44/m0e7aKcdL8EjgaLdSdYEGilmuVdZ9q6I1Q93vP3zpNBLDGaXM6adJhUIKf6HZtsOqWXdy5nSNBvTSh7QJvFOmZ70xzj9PXwyCbGY8tLdfvAX+adfG7TCjlvw1AZC1zY35aPhMlQAVwqgM7iyeaqDGZ3FwSJ4RzGZdzvXxA3ghKBbS+ksM329RY+M8WiKwtqIl2cSIynd8nTypyq6kMN4vA4YfnF9P5qe9ZltScz5Z4CbqfIIakNOXG694uSu+nrEtc9HTDZZh1nAtGZI1wqW0cu42xGiWJCZvxHy9WzsAOjgeuywukhNYR6dyAUJM0AIImu5sdVW/N6yUdN6fY9oMdLlgP4EvWupU9P8Ft9GeEO+Q3rO2ATipsLEl2COQQ28WvJN9lt/oaoDN4mDValuxKEr3Hf67H1AxtQHo= 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)(1800799015)(376005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?iGsY1M+9i5IpkgrIFoFFNK/q6Dl+?= =?utf-8?q?42U1VJHQNOrOh7e8giRzbxFpnL8+erBSPEIXYztJBuyTZ7LY+jrKQy+YnaKKHeTUT?= =?utf-8?q?8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rAjEFA2+zGcKpAzmBZV+oib4F0KQ3w3y0mral+ZwMVkS6n6?= =?utf-8?q?CP2WYBX6sadNyb9q8Vt7bA/QQhXQ4tjfoiy2TBqTmnlQO04VmzcAveIYcErZfavR8?= =?utf-8?q?CXJT7/Z16BpPwO1DIE77bSMeFiOELBEtpB+TLmx/s3T83Wa1W+kRy1CX9pjwTIcJb?= =?utf-8?q?gjb38bh5ZDKz6RqiwVVHHNvznVU+sZGqxHBePvAtlM1oJuclcQ5xDMNQBY8abB5Jk?= =?utf-8?q?Yixk9IF43G+jPepuMWlsqUJXzoKYJcw6jYwcsS3PLbG7gFINyzz6z5/ePDRVat46w?= =?utf-8?q?K9mSuD0Wk5Hi3yoi0aSJR+DpDx1eNSwUPCbjOkEISB5TbwtpWHljMwEvwIbPk/jMm?= =?utf-8?q?yt4mMbSFkAy5wX1ad95xdPWQy/UV6Aak2O/71SqKj/+bWrGbwnPMFp1dQAZc3dD2c?= =?utf-8?q?BvKPEQvLwdqYbAMLU5y8rjx/JTilPDNbnkT9dVzAa9XrfO+Rjz2BiyJQddrqMr1oM?= =?utf-8?q?4x2O8gjMoy3h1bRIOQYYXCzE+ZKCme0ZwVVq7JU0AxqFPxpzMp8kt+gT493y1Oo8I?= =?utf-8?q?e+Hf3XzSfDkD?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2339e18e-03da-4b6b-0475-08dc4bfcd5b5 X-MS-Exchange-CrossTenant-AuthSource: DU0PR04MB9417.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2024 12:20:47.1260 (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: K6b/PfmkFf3X+VftSEZFnQVVb/F6pfeQWCpvSXIw1R5oCUKvcBd1BJ14zhcLQ414+HpP+PO2ORyr2gB6m/5c0Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9901 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240324_052102_888470_9AA75444 X-CRM114-Status: UNSURE ( 6.27 ) 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 |
iommu/smmu-v3: support suspend/resume
|
expand
|
This patchset takes [1] for reference. Patchset was tested on NXP i.MX95, but since i.MX95 not has SMMU MSI, so not able to test MSI part. If anyone could help test, that would be great. [1]: https://lore.kernel.org/lkml/20210721013350.17664-1-cuibixuan@huawei.com/T/#m06bf92e2306ba52c106f2d4d24765921d4e9781e Signed-off-by: Peng Fan <peng.fan@nxp.com> --- Peng Fan (3): iommu/arm-smmu-v3: save bypass in smmu device structure genirq/msi: cache the last msi msg iommu/arm-smmu-v3: support suspend/resume drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 76 +++++++++++++++++++++++++---- drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 1 + kernel/irq/msi.c | 3 ++ 3 files changed, 70 insertions(+), 10 deletions(-) --- base-commit: 13ee4a7161b6fd938aef6688ff43b163f6d83e37 change-id: 20240324-smmu-v3-7fd1a43ed735 Best regards,