From patchwork Tue Dec 10 22:48:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13902419 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 17FEDE77180 for ; Tue, 10 Dec 2024 22:51:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: Content-Transfer-Encoding:Content-Type: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=MUPf9JNxqpyt2sjlc2k/yXvL0Tv4zYS3R7hLyi6TQF8=; b=Ox0pv5dudR6qHwavWQCmmFm7Us 5Ep0ufyDSTZF19i9AawkRxypWYftp1a7QPFp+hblxumajgdiZUW72KxrqDU2fS9vJQp00dzJpV47z MPVSSP5tsBZraWp0H6QHmLIi/15/s+3lPpJ52S1EJIhPJByA5QMageB1rSdNAz6iemzrdnikdYb38 DEFMgkvnqv2XIQfrKnY1tQTkgfcSyd/sibxfWE9wrfjrJCD/J8Yo3ACSR4N+ElZiI2ifvoTS1RFIF m1hI7YELDeSzuJ+JXPuZvgd9/AK3XKk61A8VcNLgtKxnwS4H8blFFtQnSVq8NF2ZZzig9JSkzbSGG WHowMsLQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tL946-0000000D32R-2F7K; Tue, 10 Dec 2024 22:50:50 +0000 Received: from mail-vi1eur05on2061f.outbound.protection.outlook.com ([2a01:111:f403:2613::61f] helo=EUR05-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tL92n-0000000D2cU-1fyM for linux-arm-kernel@lists.infradead.org; Tue, 10 Dec 2024 22:49:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=B6tPhDNLtNiGgzUDNVxWwSaBp4lr9dZhVej6l2m+inEUFuzkdO9dd4CcPDCzLP0UkmgWbvQb6mQPxUID0RjSMX9Hz5qUKjfcR+Mj/562b1KyVpdidr9nM5hFJjEsl5WPfvGryLh+Bujct7A6Dg728BzER8KkN6IRNOShWGrEniBd/TT10bM4mxp3sa0D+R0oUr8Idf7K/3uS81/FapdB4TJ0eKBj2E6j9uoorl4Myj5e0jkueOVCbbWCrhpMlrNAnUqnynNrTHDQAlaB8J/YfNyqNvVOIIGM6baYHeYBwqcIDB2cdtwBgADEGDLDdxhI6WvuEA4+WDXcA5d9rLRRbg== 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=MUPf9JNxqpyt2sjlc2k/yXvL0Tv4zYS3R7hLyi6TQF8=; b=jrULXOnw1SQT575MlrP42/S1AZDV8bQIy4Vq2rp5Z6+JDXQ7T0snJjcm/waz7T5cZTVjyoQzCOPs1nWRMNylSU0/G92iJXqqqcxrSFwQkNfXDFXkzPCj98alMc3NCR9Pza2ieXTZKerwm9BvxIS8vOU8lQaQqT10UjG0d86hO9KFQE+RIoNdagCsDftgyStG6Diy//6phgoEnZu+JYsmXSlFYej794k7OclfD6z0nW9Yx1UX1QhrWb2jMQ+9scaFFXZajsXcilUeL++uT/hV2M+ZUlZwTtWrCMVnd8RNroPl0MkGkepXo/tFj+2kdBoitAnLLP48M6YXs3Omu2rm2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MUPf9JNxqpyt2sjlc2k/yXvL0Tv4zYS3R7hLyi6TQF8=; b=HpAEA4OLKYn55jxaXeLN5LXVd2T5cCELQeUsdoTdEvg9VwcxVxdIoEXTfoYSTal7ubdWmglItElwkjB2tyw2Qaou/qV+3uTj1gmSlf0Cl/Tf93dtK3/hXcDs7GYy7THcrYKVuykvTlyocm1fv+GjZ0O5wHiqLTEDz05Q7zow7Xuh9cMgFkdzMpHDv1mIbehTKbOcR34rwwwxzQa4OJZS8wC57l9WZ6luVDLRXXMe7pCag4J1I1h2OLvaJuWXYYzBYfigfDsfAyFmz5LGXCIyhi7viVbjpOpUzyHNCM1gS7ljHedR0P4jqjTTlsLFnMND0mSjpB8kJlbBWXFIepCbvQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by VI1PR04MB6784.eurprd04.prod.outlook.com (2603:10a6:803:13e::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8230.18; Tue, 10 Dec 2024 22:49:14 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%5]) with mapi id 15.20.8230.010; Tue, 10 Dec 2024 22:49:14 +0000 From: Frank Li Subject: [PATCH v8 0/2] PCI: add enabe(disable)_device() hook for bridge Date: Tue, 10 Dec 2024 17:48:57 -0500 Message-Id: <20241210-imx95_lut-v8-0-2e730b2e5fde@nxp.com> X-B4-Tracking: v=1; b=H4sIAFnFWGcC/23Q3UrEMBAF4FdZcm1kMpOfxivfQ0SSNnEDbru0a 6ksfXdnV7CpeJGLE/KdYXIVUxpLmsTT4SrGNJepDD2H5uEg2mPo35MsHWeBgBo8WllOizdvH58 XqVrbIGICr7Xg9+cx5bLcu15eOR/LdBnGr3v1rG63/7XMSoLsoLUIjetiiM/9cn5sh5O4dcxYO YLaITuKVlsXgyEf9o5+neJTO2LnDPjWR57W2L3Tm1OgaqfZQe6yD5iTM3rvTO128wy7nKJ3mCk r+rOfrZxqamfZBfRGxaCItNs7tzkEqp37+c/OoidEkza3rus3fxT7R/ABAAA= To: Bjorn Helgaas , Richard Zhu , Lucas Stach , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, Frank.li@nxp.com, alyssa@rosenzweig.io, bpf@vger.kernel.org, broonie@kernel.org, jgg@ziepe.ca, joro@8bytes.org, l.stach@pengutronix.de, lgirdwood@gmail.com, maz@kernel.org, p.zabel@pengutronix.de, robin.murphy@arm.com, will@kernel.org, Robin Murphy , Marc Zyngier , Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1733870948; l=5050; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=r8B7Tc1ehj+CKF3MlXflpe12lppNftec6wtwsw/WefA=; b=y+IX8aI4/B3sOnNwv8/vIQYu2cgYYA9aIR3OUlBWjGtXUya278ZKW+LQC2k7yZXrMg/TG8a8h p20BJ5hWvyEDe0ASQ2VNlpaTkh5wSEnnRozko0IFaILyDtq2fpeesZD X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0020.namprd05.prod.outlook.com (2603:10b6:a03:c0::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI1PR04MB6784:EE_ X-MS-Office365-Filtering-Correlation-Id: e54d64d3-4def-4f7c-0be1-08dd196cde91 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024|7416014|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Mvvz+JJ+Y+iAkqxTfwCQL6ObP0tE2Ie?= =?utf-8?q?m2DrtuAoeBSN/13jno6A59kdoetNghbxfCQFBPcKnUnFmpUQOKWTmOXNAGCcMLyh1?= =?utf-8?q?NjjSGHK8BENSBOeI399hYUHPsN/LKVLLqGSrnjic/S5O+ciUIqNOOjbtKvODGNQXW?= =?utf-8?q?V2k/KSLNqukbC5Dge1CqZW18x4W/g2fLpJOEP7ju0nBTlcfbExHpbg1kz0ArTFNAi?= =?utf-8?q?D1ceiJybqg+2rNgJewCnsZw6yyvAb+VlviuA/N47/c9NzbugEpYi4qEL2a0BKyipV?= =?utf-8?q?R2Qh6sqWfWTYRxIWpLKqDVALDs54JPKbRIOlVgzJXALJjyDeArawaiBkBOwTBQXsD?= =?utf-8?q?bys/wtErX5dpDeAZXUijrSColALDjUd3la95dRz20kIhPHYtpmSR8qT9UzaCls2Mf?= =?utf-8?q?LWe5nykjY7z7aqErlZiHyy9zV/se7lwgngqrsxVHIdKd7MlB8XN0Lr6MuVZqyLX7g?= =?utf-8?q?5l8RVxY9RTe5+HWhBbrzf5r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SsxIrshzE4SBVms=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(1800799024)(7416014)(52116014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?F2uzzMEq60wpQz4FchZSP+FbZfNC?= =?utf-8?q?/2oXS+4TsXIitWXyWnG6s//4AS6WwAGTOb4PjwvM6BDJZXClhEZRawWjhBWCI7ZNR?= =?utf-8?q?KQ+AssaI1LEHtcqupdXp0CB9q8Zqlfn9/2DrBhLNK3CAbKLbwkqSf812Rr+xPhil+?= =?utf-8?q?+7ObTrKbfHqjd9RaSchI/8NS41B/wEVTG3BugEyM4H2xqwzyGJTgcOcn0Fc8rAmoG?= =?utf-8?q?V59OEWfsbg3J/dCscitpcaGryRrye064yypUfkzbLCHlN39zJtCSTDQn415VQKdYn?= =?utf-8?q?WoGySD5tl9dLUyWM0m4Vt1ksHsuAb6jnvh7mAb/O/0utP+Sqc5/9J7S34o3XqLsua?= =?utf-8?q?P6A3TbyoMl3FPBqixloXGstvALzZyHVs6ZBvtmkKema0tl3vO4E8K3e+TanPk6+pB?= =?utf-8?q?ir52mansdRd0dtXxodDTD0bjqLQ1QCV3bYKBa+itBEPd6aYRX2m0/J4SoesF7C5LK?= =?utf-8?q?gwIzntMolh53tQ6BqgKZui7ZnnuzFLtt11+nt5h4aPiLhyMe25LncTEb+GSSysWlz?= =?utf-8?q?OD7e0SMapLGRHGEZ/OnPaQfc/L029dy37e4WGntkBDRE5VYQxfleHyCIImgI7d8JE?= =?utf-8?q?xejXt0C6fZE0gMv84pDnZK4XYT/oX/6CuLsksqGYjpBj+0U+CXRVRKoHtiphJfAfR?= =?utf-8?q?QzPNrjb+qWKUDvmA5pRv1RRmt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Exchange-CrossTenant-Network-Message-Id: e54d64d3-4def-4f7c-0be1-08dd196cde91 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Dec 2024 22:49:13.9073 (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: uIYj2m/1J2PWhH8Wb2DgMdh0O2qcluJ3Bzld13EOn7di7wH4b9EYZqRbDwJVYWnOh8ee5k0c7/JvBtreiRmRVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6784 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241210_144929_598752_0761C757 X-CRM114-Status: GOOD ( 11.35 ) 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 Some system's IOMMU stream(master) ID bits(such as 6bits) less than pci_device_id (16bit). It needs add hardware configuration to enable pci_device_id to stream ID convert. https://lore.kernel.org/imx/20240622173849.GA1432357@bhelgaas/ This ways use pcie bus notifier (like apple pci controller), when new PCIe device added, bus notifier will call register specific callback to handle look up table (LUT) configuration. https://lore.kernel.org/imx/20240429150842.GC1709920-robh@kernel.org/ which parse dt's 'msi-map' and 'iommu-map' property to static config LUT table (qcom use this way). This way is rejected by DT maintainer Rob. Above ways can resolve LUT take or stream id out of usage the problem. If there are not enough stream id resource, not error return, EP hardware still issue DMA to do transfer, which may transfer to wrong possition. Add enable(disable)_device() hook for bridge can return error when not enough resource, and PCI device can't enabled. Basicallly this version can match Bjorn's requirement: 1: simple, because it is rare that there are no LUT resource. 2: EP driver probe failure when no LUT, but lspci can see such device. [ 2.164415] nvme nvme0: pci function 0000:01:00.0 [ 2.169142] pci 0000:00:00.0: Error enabling bridge (-1), continuing [ 2.175654] nvme 0000:01:00.0: probe with driver nvme failed with error -12 > lspci 0000:00:00.0 PCI bridge: Philips Semiconductors Device 0000 0000:01:00.0 Non-Volatile memory controller: Micron Technology Inc 2100AI NVMe SSD [Nitro] (rev 03) To: Bjorn Helgaas To: Richard Zhu To: Lucas Stach To: Lorenzo Pieralisi To: Krzysztof WilczyƄski To: Manivannan Sadhasivam To: Rob Herring To: Shawn Guo To: Sascha Hauer To: Pengutronix Kernel Team To: Fabio Estevam Cc: linux-pci@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: imx@lists.linux.dev Cc: Frank.li@nxp.com \ Cc: alyssa@rosenzweig.io \ Cc: bpf@vger.kernel.org \ Cc: broonie@kernel.org \ Cc: jgg@ziepe.ca \ Cc: joro@8bytes.org \ Cc: l.stach@pengutronix.de \ Cc: lgirdwood@gmail.com \ Cc: maz@kernel.org \ Cc: p.zabel@pengutronix.de \ Cc: robin.murphy@arm.com \ Cc: will@kernel.org \ Cc: Robin Murphy Cc: Marc Zyngier Signed-off-by: Frank Li --- Changes in v8: - update comment message according to Lorenzo Pieralisi's suggestion. - rework err target table - improve err==0 && target ==NULL description, use 1:1 map RID to stream ID. - invalidate case -> unexisted case, never happen - sid_i will not do mask, add comments said only MSI glue layer add controller id. - rework iommu map and msi map return value check logic according to Lorenzo Pieralisi's suggestion - Link to v7: https://lore.kernel.org/r/20241203-imx95_lut-v7-0-d0cd6293225e@nxp.com Changes in v7: - Rebase v6.13-rc1 - Update patch 2 according to mani's feedback - Link to v6: https://lore.kernel.org/r/20241118-imx95_lut-v6-0-a2951ba13347@nxp.com Changes in v6: - Bjorn give review tags at v4, but v5 have big change, drop Bjorn's review tag. - Add back Marc Zyngier't review and test tags - Add mani's ack at first patch - Mini change for patch 2 according to mani's feedback - Link to v5: https://lore.kernel.org/r/20241104-imx95_lut-v5-0-feb972f3f13b@nxp.com Changes in v5: - Add help function of pci_bridge_enable(disable)_device - Because big change, removed Bjorn's review tags and have not added Marc Zyngier't review and test tags - Fix pci-imx6.c according to Mani's feedback - Link to v4: https://lore.kernel.org/r/20241101-imx95_lut-v4-0-0fdf9a2fe754@nxp.com Changes in v4: - Add Bjorn Helgaas review tag for patch1 - check 'target' value for patch2 - detail see each patches - Link to v3: https://lore.kernel.org/r/20241024-imx95_lut-v3-0-7509c9bbab86@nxp.com Changes in v3: - disable_device when error happen - use target for of_map_id - Check if rid already in lut table when enable deviced - Link to v2: https://lore.kernel.org/r/20240930-imx95_lut-v2-0-3b6467ba539a@nxp.com Changes in v2: - see each patch - Link to v1: https://lore.kernel.org/r/20240926-imx95_lut-v1-0-d0c62087dbab@nxp.com --- Frank Li (2): PCI: Add enable_device() and disable_device() callbacks for bridges PCI: imx6: Add IOMMU and ITS MSI support for i.MX95 drivers/pci/controller/dwc/pci-imx6.c | 186 +++++++++++++++++++++++++++++++++- drivers/pci/pci.c | 36 ++++++- include/linux/pci.h | 2 + 3 files changed, 222 insertions(+), 2 deletions(-) --- base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 change-id: 20240926-imx95_lut-1c68222e0944 Best regards, --- Frank Li