From patchwork Tue Jan 14 20:37:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13939492 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2080.outbound.protection.outlook.com [40.107.21.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8EB8F20B80A for ; Tue, 14 Jan 2025 20:37:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.80 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736887055; cv=fail; b=kkn/OP6QqW9GMIDgC/gN3+jDPC/0TG1tgng0lcn7IxMlP56Q24gvqfXNwuaxqHIdMm4UQbUcZE5DVKJzvZEFhcsAqhung6ExBOBukcbYrsMo+//IS76Ngw/N+L81/8Ce5DZ2zqIdbG/LE8LPSRtS69XxDrJoarnTbGlsPJOuRmE= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736887055; c=relaxed/simple; bh=YFwqA+lDO6liNzl/Cppqxu5pnux+mxu09eolNFJM2yc=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=BJCYh14EpY3ps78yUcSD15by0P0DlE8SgpGTcE4Y0gNMdfEhDkGDVz/S08Xh1ewkR0VuJpNZsWYQnge9bCnc8BSvgLtsnIw9dU4G+BMSJLGrrX6CZcGUN8mb1AmRQr0UQmakTRyF7IHwl5W9pCp0gLW9X1FhuhGOnCEbN7Lcfoc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b=CNJT8Q4L; arc=fail smtp.client-ip=40.107.21.80 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=nxp.com header.i=@nxp.com header.b="CNJT8Q4L" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZxaTFkfyMnAoQk2VFK8w/bHfPnNu2mWupUSGcQrLayWpBdYlbolzgqzjg920jL//D6CmOJXPWN07kITuQcTbxG2+7p0J5tFvIWmPZ3qDMRNzNE8fcqDwm4jL2jsi3CtPm0Iv+TFSyjLqJAApnHk9RWQTf/fveE0GngTPhbublGh6uAghJWiLxMX9zgaxRIVIUhIFQtqdfzcD0rMjQE2LeayuRC6/YfLbmCb1qKEHQlQs4TEVOWVXKdlzuxhUbUiRqz7QJI/RlDXVTD1HwLozR2RMAi545n6Cbba6b3y81fQeg/Ew3Z+ggS0bnIvHbh9lFShQBBZqhWD6+fFIysGhHQ== 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=SZkjomNiQTwE85wrS+r/oxinAA9saigLPDFapCHXMeY=; b=zIE6irApuAX16hhYmC+GqAyiS603AccYjw6uvDPD6nOgcDsiqnppfEHSKQ/gqvyaOCnLmfAKoC9D/jlEgXeKQY1WO1/vwA3ei6NADapB5ZdMtjapmSGSDjQLtNFWMbJiOQSOEcy9wVEomR96S2iU5pCbX5itfoX6/WlDlPhFkKL2jW5hG8gDl/JL8SUwIyg3Ys2TzOoQAv/CZS74hTcn8cgFsLE685UiYWhoF4n/B3JIea5iSRap/0AGTm6I0Q+m2zFIrPOYsYSj/dSQHq7R1OOp+LKzPhdvX4RcNNAHn0TVDByEFdZoHSO7aJa7gDZ/X9EW0gynNIPEZkov5fwx2Q== 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=SZkjomNiQTwE85wrS+r/oxinAA9saigLPDFapCHXMeY=; b=CNJT8Q4LY9QiPMggpSLNrSNEXkvIrZEiUrj0Dfc8xoh47upiC2Od68qhxdwU2URhvSjChfuPZU4iC3jE6MYbPViV6MnQ+M7knPBg9ZjKdZoTIKeb9SApa/OkeY8e1PFSUM2//6s+DKL2im2OBb9Zn84MpBktbpeJDtFD77y7TO3w9TgvyuvLlRP8Pn6WlUCy1MMKwyPlqsAKEbDXaTKWmBDWXe58LzUE32wFB1pJU0QsBuGBZ1YRUeSIsDdeI/gESk/sEvOvmZpXu96/ngjuBP245dExmQudmsrXM3DT3ZADWFCeaTSNx0SusZsdprcntlDhaMCKAqt7ww0Xnwvy9A== 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 PA2PR04MB10374.eurprd04.prod.outlook.com (2603:10a6:102:41e::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8335.18; Tue, 14 Jan 2025 20:37:29 +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.8335.017; Tue, 14 Jan 2025 20:37:29 +0000 From: Frank Li Subject: [PATCH v9 0/2] PCI: add enabe(disable)_device() hook for bridge Date: Tue, 14 Jan 2025 15:37:07 -0500 Message-Id: <20250114-imx95_lut-v9-0-39f58dbed03a@nxp.com> X-B4-Tracking: v=1; b=H4sIAPPKhmcC/23QTU7DMBAF4KtUXhM0nvFPzIp7IITs2KaWaFIlJ QqqenemRaI2YuHFs/y9kecsljSXtIin3VnMaS1LmUYO7mEnhr0f31NXImeBgAocmq4cNqffPj5 PnRxMj4gJnFKC3x/nlMt263p55bwvy2mav27Vq7ze/teyyg66CINB6G0MPjyP2/FxmA7i2rFi5 Qhqh+woGGVs8Jqcbx39OsmndsTOanCDCzytN61TdydB1k6xgxyz85iT1ap1unbNPM0up+AsZsq S/vzPVE72tTPsPDotg5dEyrbO3h0C1c7+7DMadISoU+v6yslmnz07TJYgYNI5Vu5yuXwDiMdiv igCAAA= 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=1736887043; l=5315; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=YFwqA+lDO6liNzl/Cppqxu5pnux+mxu09eolNFJM2yc=; b=gnngkCdJE/vWLwcE2V17lB8tAw+S70Lzw/lEPHHf18btLytV/0JQRYfaQYky0eCFS4VxvI5Vb c8qSzXJ0gEPCBfIyjm1+D5fKKqZWhYrPT/ciLdug8dSlLYmkJTDR8cW X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BY5PR17CA0022.namprd17.prod.outlook.com (2603:10b6:a03:1b8::35) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|PA2PR04MB10374:EE_ X-MS-Office365-Filtering-Correlation-Id: 514c4376-3345-498e-8164-08dd34db4391 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|1800799024|366016|921020|7053199007|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?0oRJfS5V/NkbiMf3R13iC7fd/SjJ4/k?= =?utf-8?q?xcnZLOUKu0SJcOt9QvbGwgiAGBG+2hme1P0o7fFvA0wo5ZcxLg66t4CZYjs+lv0ux?= =?utf-8?q?Sf0v4AQjzkE+BI1Okeb2xhsJyNwg3NXxUpWwMwMQHS2t2B5MfcYGmrGNPPsdrLhYP?= =?utf-8?q?stgPVsTJSlt0fm4trcdAQJH9i5kBZ52wqwJ6Abpv48I0YwSRnxFqGeRprYJUl2slc?= =?utf-8?q?zSs+R3TLkYFU4kNgY9tIa9MCM5Xlfqw469OMYhy1DQaSQQCPFx+jjyIQHl2n4yW7C?= =?utf-8?q?2q/7NsS5mu6+yhYL1ep7ge/7gpC2hEB4A7qBd8Tm15nUhBjZKGGbKGZgl4QeXrN7o?= =?utf-8?q?Y48arnex6UWYdpcrDG0nEQGynHsXLP8PkGz1fXgJcMOZjA4UtEYaX2s0g4LJCvBrx?= =?utf-8?q?BdW4n9Hc3m3odQFycVI1UicmhjROdNaonb9Uufk99ryMFB6E7SLiLLC77bdC2+31+?= =?utf-8?q?8pnjA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IA43/gw9itnKwIl6945/g3c3nhnK1d1fioSS/fkVDe94m7H/xrtu5NNrToX?= =?utf-8?q?slzaj2MVDJChxQq/4SI0pA5lQotH8g7eA=3D=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)(52116014)(7416014)(376014)(1800799024)(366016)(921020)(7053199007)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?dh9UClN8dnpR+IJKG6ZNaYW3YVo7?= =?utf-8?q?lWU+/3ls5vGJVBBCTR/dOFzD/WMQfTqV/PcuwnEg7FIieyY6TUknmgc612g80ixP5?= =?utf-8?q?BgBsvvBS44qOpZHJjdDy35nD90Ujc47PKkXQyj24aQ908FQVAy1maBJFEOvdPtFkF?= =?utf-8?q?tlZ2xVOLEipcVRsCtdGWBel2CY/w4KUWLcAHGgHj1SOXT7W9jkUESMxLnnirjV78+?= =?utf-8?q?ihegj/jXKkyn6HRRmby5TWlHiK8H4pqXwJ5jjy4DbISe6U54GM04/uZXtxdxoE1wn?= =?utf-8?q?AFJQzlZ0H1VNH4vN4c3nutazmjY2JyOEZLFgVaW6rn7CNucv8nFwLzv1fAmQ7E8vJ?= =?utf-8?q?56eZCEiZS9YrkEt5Pj/o9AUgMHDDCfmGBRx4tC15YKPbh7xTpoCRyiNfvQMRfJjel?= =?utf-8?q?XgvuApE/lO/HLoQB9drFiL3aWhCWTGDf+LdGKAVrgi02ORqBzgPkXsQp+Ljm9aDD8?= =?utf-8?q?o1V/gI42O6Nm1kGAcN6XkevNmFno8YL31SdZvF3OKXOkuDD7P2SD8XFiQLziR7XXE?= =?utf-8?q?RzW3kq54B5GxrYMt9HJpCpDnjnwsHmSJdntIxZvRti/pq+z/D1qomxrDqnZZbZsUz?= =?ut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?q?Xt0Yt6wzcIjDy6SlTeSDQlbprT6vHtHcdQaOlY1E32TB9NxGYq8vVVyw=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 514c4376-3345-498e-8164-08dd34db4391 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jan 2025 20:37:29.3489 (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: SMWIAKNWa5Xr+V2sz+ULDa25OSuCV7LAFKbHA+tBabl5EZ4+5qqxKL/AyoxlCgS2ixaXohn0MEnRwU6KauOzjw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA2PR04MB10374 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 v9: - update commit message and comments - Rob agree use API to parse iommu-map and msi-map. https://lore.kernel.org/imx/20250113225905.GA3325507-robh@kernel.org/ - Link to v8: https://lore.kernel.org/r/20241210-imx95_lut-v8-0-2e730b2e5fde@nxp.com 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 | 199 +++++++++++++++++++++++++++++++++- drivers/pci/pci.c | 36 +++++- include/linux/pci.h | 2 + 3 files changed, 235 insertions(+), 2 deletions(-) --- base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37 change-id: 20240926-imx95_lut-1c68222e0944 Best regards, --- Frank Li