Message ID | 20241021-pcie_ep_range-v3-0-b13526eb0089@nxp.com (mailing list archive) |
---|---|
Headers | show
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2074.outbound.protection.outlook.com [40.107.21.74]) (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 7089A1EEE0; Mon, 21 Oct 2024 20:07:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.74 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541273; cv=fail; b=L2Cqp1Oi0M7MC+TfcVBId6B/qq8fwD/lxFPNi7Ac8qRJoNY8mgpaVLCP+1BTHHyLsgh7aoaoFlPTOb/BjViLRenzxTkolJh25rnUCla+MiAyT5xonK8Hp/Hr9SRht9pTNlnB8YLJUo+puN+pM5i1bqXluAuoAoxahKhhIDcxCjg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541273; c=relaxed/simple; bh=nxmlKKktgJQuKvwhQMNqP2zCjka70p3RF9P2ZtAYFnU=; h=From:Subject:Date:Message-Id:Content-Type:To:Cc:MIME-Version; b=lXzLp3EuDWrDAC0pLqfZKsBiBFL/Jhtk/0hKgjUE3dx/GX7fD48kBBNZDJPOEhEjnEmaoHNx6o7MOvwpwbWuxuTE3pI9GkdWmPKoXXV7HRDm8ZYAkkJ8yWPlMiuuO1yLLmxaoBthr2cUP6XaCr78ZKPv8tsTsg6jz1lmAet3xho= 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=k8btsaze; arc=fail smtp.client-ip=40.107.21.74 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="k8btsaze" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=W9SiqD4KpS6u8cbND6qNT+cXpEUz2EdSy9+xjK1VvCiXkPudWt36Xf4Frner5kW3gjc/cbnxJwE8ScS6jjkhVW7UbuquBgVDnE6OBZLT/NEihz8zzqIezu0h9fos0SAutnPAFc6ASqBsLilo9oqQqiHvqNM86s3JDWR1h+BtyS+qvHPL53artK2IsZxkj4fC63FQKS67hpuQRyyM51JjYYM+TWG+ehUzF4lOX9FBEB74f0+nrzdpCpTSqWd1sUOF4SMdTkD6xFT+6+oGx6qX54tDBvjMgGDl/9X7c3Itz2IaLA0v4uls93i5DlvOR+kroNz18rDWe403N9LI89RXUQ== 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=5fEWc7NTQ8dD78qg8+4JleeTiPSVRqxVRC7mZeXjLbM=; b=t9pYo3w6wdAiaERytpe8r4Q/vgLPLVt5rkvTo8Lbtdi5ZN0Nnm4n7Z+6+UrKXuINPLg00PxKw2w1glmKP8HqEZWZfokw7mx94+g58G9hpNbTro57r4MhHrmKhTU841tnPgtmCth7ICRgXahTANqCEygAoYFXCSsVVAjbSzaSEm8W0NCepGr1JBxgfstF9uPlJQ6ltVbO5WJjJWuVp70Y6JIg+XRGHfrz+Yifc8AM6pxHqtdfgsltFA7Hi2iIeYCV96TEamBX6KaHtNPNy9noihBCet26j/9DbJe2M3qcGRAFkI1nl5sYC/TKSoYuXyjFSzJJcLR4Gc3NxiJ4gGEk2g== 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=5fEWc7NTQ8dD78qg8+4JleeTiPSVRqxVRC7mZeXjLbM=; b=k8btsazeaBBkMEwWmG4E6FUrbw3+BsOvEd0SOW56JWsfoMzUCyVubTdKbVYJ5tkqkuJr4e9REbEUXCRGSorF3mTJRedNwqeYib9CmfZDGiGML+pCCmMPEZ8XDICZukd0/MRhUj4f2KlwXwM0N8IhZXHmtENQwzpzB/cdh1kFy/E6acyjNGEpt5GgWTeiFMWFJdf5rQgjLyZQe+Vtl/NVzR4Qkj/8CLCTusDfXs8kP+6dqOqZAm9qC7nqeOSnRtWsUeZFAg92aKx2m+ntam7dV9lqrY3WW9TmLNvRJSAynkMhCxb4FgTMVZK2jLy3yKLl13XSHSg1z1pc0imRaKqwvg== 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 AM0PR04MB6882.eurprd04.prod.outlook.com (2603:10a6:208:184::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8069.28; Mon, 21 Oct 2024 20:07:48 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%4]) with mapi id 15.20.8069.024; Mon, 21 Oct 2024 20:07:48 +0000 From: Frank Li <Frank.Li@nxp.com> Subject: [PATCH v3 0/4] PCI: ep: dwc/imx6: Add bus address support for PCI endpoint devices Date: Mon, 21 Oct 2024 16:07:35 -0400 Message-Id: <20241021-pcie_ep_range-v3-0-b13526eb0089@nxp.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAIe0FmcC/12MwQ6CMBAFf8Xs2Zp2W4R68j+MIdAu0oPQtKbBE P7dQmI0HOe9zMwQKTiKcDnMECi56MYhgzwewPTN8CDmbGZAjoprUTFvHNXk67CdyhSmIMk5CQ3 Z8YE6N2292z1z7+JrDO8tn8S6fkt6V0qCcdZK0vaMZcXb8jpM/mTGJ6ydhH8uyr2L2S0ri9Qoq azufu6yLB9UH+Pj5AAAAA== To: Lorenzo Pieralisi <lpieralisi@kernel.org>, =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= <kw@linux.com>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Rob Herring <robh@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Abraham I <kishon@kernel.org>, Saravana Kannan <saravanak@google.com>, Jingoo Han <jingoohan1@gmail.com>, Gustavo Pimentel <gustavo.pimentel@synopsys.com>, Jesper Nilsson <jesper.nilsson@axis.com>, Richard Zhu <hongxing.zhu@nxp.com>, Lucas Stach <l.stach@pengutronix.de>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com> Cc: linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@axis.com, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, =?utf-8?q?Krzys?= =?utf-8?q?ztof_Wilczy=C5=84ski?= <kwilczynski@kernel.org>, Frank Li <Frank.Li@nxp.com>, Conor Dooley <conor.dooley@microchip.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1729541264; l=5759; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=nxmlKKktgJQuKvwhQMNqP2zCjka70p3RF9P2ZtAYFnU=; b=TfAhvijDd13TZFdtLAmTEPL9XotdYEeQqbCIJGbPJDj5p1m+7EMa0kEmjnj0z0Z9TVAMK5+64 RjOc4H7rUIWC4UV6bU5yXYd84l02QOUEXOKMV6wc8mznR82khJLVwXo X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA9PR13CA0071.namprd13.prod.outlook.com (2603:10b6:806:23::16) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-pci@vger.kernel.org List-Id: <linux-pci.vger.kernel.org> List-Subscribe: <mailto:linux-pci+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-pci+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM0PR04MB6882:EE_ X-MS-Office365-Filtering-Correlation-Id: 13fbbabc-01f2-4e17-4095-08dcf20c08c6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|7416014|52116014|376014|1800799024|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?bSO8wuprM532SGHYl0wY6fByGH45TjA?= =?utf-8?q?FRuR3aUlPrOEd8m30dzXOHBJQx6GQ0G6n/cOpXfyuh37FHK80jd74MVAt/W3XNYSA?= =?utf-8?q?c9GPRjmO64hnjd2E9jIk1MfZ2tScEQKW5vlH/8JmLYNhMKBRpzlzkIb2G91VfJfoe?= =?utf-8?q?9/JVUImteR0Ws+gOV91TFvc4LcNFqArewMU2PnOJfaSYQBIKhEc4iLSzBYEJMcO0R?= =?utf-8?q?Px4ydk+C+rpPCEfLRdezuE0HcPuQJV4MFpwcHSCUfcJ0jtLiJZkvboyRrWaM+HhG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piJcijmpS4EBtHBF1ONp7nSMlBfGEtBdGUkZmdesFrkwGwNQ+k9Xk0?= =?utf-8?q?/0NYKNohKH7Vuqz/C9oB05xJ1VhgidkRmkVmFzQu/JIEVVmNoyS/9lkeiCENFFBuI?= =?utf-8?q?DKLcKkt5MvgMZx7fnbuDqetUzupPp2Fu9575bcFdhfVhmtiezUY4wTN5UbhyjmwGT?= =?utf-8?q?E5dCZblFp2/L?= 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)(7416014)(52116014)(376014)(1800799024)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?HYETUCpr2hbxJ4C6HJTLVNBNmz+D?= =?utf-8?q?yScr911y5I/1ccn4d3JevmGkVwYuYInW9zSJW3VkekbasgDQvZfRRvRIesdpyN+X4?= =?utf-8?q?TfNQ4sYdB8oHN9U7aHYoLWE9ZoT20MuxKhkxFiWyTuyjd4+PjaSXfnl5/2G95Lldq?= =?utf-8?q?L+ubyuERazzt1IQTtGx57EbOyGNTeiBfmotHJvFqCo1o1LnT6AJ/xU+JrYv2Y+rn9?= =?utf-8?q?OZuO4dSPJrb28yrYQ/gb8+T6sE1Ww4hGiEbpHxJlXWPDXWJT+dmxx3XE3F+nKyAuh?= =?utf-8?q?vqokW7V1yPsZlnz+AfMXRIDV0pwDf+rlOX6YjOhGj0RweiAgaHVG4GmRl3frVkO82?= =?utf-8?q?j9ggSeMNsGVflEmeRyxgslSem2h9TtsiohzVn6fJVilxKYymP71IIztzQxeSvq/J+?= =?utf-8?q?95Nh4JpZFDhmPWUhIfTgW3G2A/FGl/zflTZYzrV/CgoZuvgCXFOGAmMe1zVGaTzKM?= =?utf-8?q?/S5Ztp5gyysnN8JlJpndX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HIJh6J6+J2fXjwJ0I1t6v/C0g4t4jYQnI8?= =?utf-8?q?vzSGB7klkLGlGEzRxG8D1J+zZAKAdKd6mrQ9fq/1aHykrTo2uDl5awFExcasU23kM?= =?utf-8?q?usn1Bs98abLErm7b/0Xw9lgD5cAsd9DiB/j1U+IkUn1Qw2ojt3o+IcVEUp5KXwudR?= =?utf-8?q?iygg92yrMWmL?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 13fbbabc-01f2-4e17-4095-08dcf20c08c6 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Oct 2024 20:07:48.1283 (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: JAnHow/gq7pUyiFfsM2ChcQKvsCkGhBlwwTPBUmbTl7/PPa+2VmPB8G9lGPfwBd82PmXKjlUfcCva2oBGUGEnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB6882 |
Series |
PCI: ep: dwc/imx6: Add bus address support for PCI endpoint devices
|
expand
|
Endpoint Root complex ┌───────┐ ┌─────────┐ ┌─────┐ │ EP │ │ │ ┌─────┐ │ │ │ Ctrl │ │ │ │ CPU │ │ DDR │ │ │ │ ┌────┐ │ └──┬──┘ │ │◄──────┼─ATU ◄─┼────────┼─┤BarN│◄─┼─────────┘ │ │ │ │ │ └────┘ │ Outbound Transfer └─────┘ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ Inbound Transfer │ │ │ │ ┌──▼──┐ ┌───────┐ │ │ │ ┌───────┼─────►│DDR │ │ │ outbound Transfer* │ │ │ └─────┘ ┌─────┐ │ Bus ┼─────►│ ATU ─┬────────┼─┘ │ │ │ │ Fabric│Bus │ │ PCI Addr │ │ CPU ├───►│ │Addr │ │ 0xA000_0000 │ │ │CPU │ │0x8000_0000 │ │ │ └─────┘Addr└───────┘ │ │ │ │ 0x7000_0000 └───────┘ └─────────┘ Add `bus_addr_base` to configure the outbound window address for CPU write. The BUS fabric generally passes the same address to the PCIe EP controller, but some BUS fabrics convert the address before sending it to the PCIe EP controller. Above diagram, CPU write data to outbound windows address 0x7000_0000, Bus fabric convert it to 0x8000_0000. ATU should use BUS address 0x8000_0000 as input address and convert to PCI address 0xA000_0000. Previously, `cpu_addr_fixup()` was used to handle address conversion. Now, the device tree provides this information, preferring a common method. bus@5f000000 { compatible = "simple-bus"; ranges = <0x80000000 0x0 0x70000000 0x10000000>; pcie-ep@5f010000 { reg = <0x5f010000 0x00010000>, <0x80000000 0x10000000>; reg-names = "dbi", "addr_space"; ... }; ... }; 'ranges' in bus@5f000000 descript how address convert from CPU address to BUS address. Use `of_property_read_reg()` to obtain the BUS address and set it to the ATU correctly, eliminating the need for vendor-specific cpu_addr_fixup(). The 1st patch implement above method in dwc common driver. The 2nd patch update imx6's binding doc to add fsl,imx8q-pcie-ep. The 3rd patch fix a pci-mx6's a bug The 4th patch enable pci ep function. The imx8q's dts is usptreaming, the pcie-ep part is below. hsio_subsys: bus@5f000000 { compatible = "simple-bus"; #address-cells = <1>; #size-cells = <1>; /* Only supports up to 32bits DMA, map all possible DDR as inbound ranges */ dma-ranges = <0x80000000 0 0x80000000 0x80000000>; ranges = <0x5f000000 0x0 0x5f000000 0x01000000>, <0x80000000 0x0 0x70000000 0x10000000>; pcieb_ep: pcie-ep@5f010000 { compatible = "fsl,imx8q-pcie-ep"; reg = <0x5f010000 0x00010000>, <0x80000000 0x10000000>; reg-names = "dbi", "addr_space"; num-lanes = <1>; interrupts = <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>; interrupt-names = "dma"; clocks = <&pcieb_lpcg IMX_LPCG_CLK_6>, <&pcieb_lpcg IMX_LPCG_CLK_4>, <&pcieb_lpcg IMX_LPCG_CLK_5>; clock-names = "dbi", "mstr", "slv"; power-domains = <&pd IMX_SC_R_PCIE_B>; fsl,max-link-speed = <3>; num-ib-windows = <6>; num-ob-windows = <6>; }; }; Signed-off-by: Frank Li <Frank.Li@nxp.com> --- Changes in v3: - Add mani' review tag for patch 3,4 - Add varible using_dtbus_info to control use bus range information instead cpu_address_fixup(). - Link to v2: https://lore.kernel.org/r/20240923-pcie_ep_range-v2-0-78d2ea434d9f@nxp.com Changes in v2: - Totally rewrite with difference method. 'range' should in bus node instead pcie-ep node because address convert happen at bus fabric. Needn't add 'range' property at pci-ep node. - Link to v1: https://lore.kernel.org/r/20240919-pcie_ep_range-v1-0-b3e9d62780b7@nxp.com --- Frank Li (4): PCI: dwc: ep: Add bus_addr_base for outbound window dt-bindings: PCI: fsl,imx6q-pcie-ep: Add compatible string fsl,imx8q-pcie-ep PCI: imx6: Pass correct sub mode when calling phy_set_mode_ext() PCI: imx6: Add i.MX8Q PCIe Endpoint (EP) support .../devicetree/bindings/pci/fsl,imx6q-pcie-ep.yaml | 38 +++++++++++++++++++++- drivers/pci/controller/dwc/pci-imx6.c | 26 ++++++++++++++- drivers/pci/controller/dwc/pcie-designware-ep.c | 14 +++++++- drivers/pci/controller/dwc/pcie-designware.h | 9 +++++ 4 files changed, 84 insertions(+), 3 deletions(-) --- base-commit: afb15ca28055352101286046c1f9f01fdaa1ace1 change-id: 20240918-pcie_ep_range-4c5c5e300e19 Best regards, --- Frank Li <Frank.Li@nxp.com>