Message ID | 20240919-pcie_ep_range-v1-3-b3e9d62780b7@nxp.com (mailing list archive) |
---|---|
State | New, archived |
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 07CAACF3975 for <linux-arm-kernel@archiver.kernel.org>; Thu, 19 Sep 2024 22:08:33 +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: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=QROpkGzwVN6caHukFab/T91TO4qYylTTgKvj7Kefc14=; b=uwnyHwdI8QTBMHa5gW4ublDcmQ ALHnEQZBpaHr/yeV5I4sC1YJjX9MuE/468UzMZAtXTUy24RhzIBlQmoepJKAsZ7a32dOP8jaxWgMM 9uffaLFfnW+B4atF2p2rp9aGvR45xNHv4Iqxmrg9ld/rSujJPbTKeZMgdz6yf/a4farlFY4zmTUf/ FRkdUJzsKc1PyXFjlr4zmf31B3DI1LOfsrRpdxwCQyLRLDojxizlBWa+Btq7RHCm0LgHHpkQUqFw8 kL3X8IXNMpQQ48Lv+Ume6fWxxap9I6HzSNza1jXj9K5cPdlQKyeMhfK+ZlJXlGFPSr1bB0RwhYmzU C1vMWGPw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1srPK2-0000000B5Qs-3ZoH; Thu, 19 Sep 2024 22:08:22 +0000 Received: from mail-northeuropeazlp170120003.outbound.protection.outlook.com ([2a01:111:f403:c200::3] helo=DU2PR03CU002.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1srPFm-0000000B4aT-0YCd for linux-arm-kernel@lists.infradead.org; Thu, 19 Sep 2024 22:03:59 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=no2alClRqpyd9TffVnBNIP6iash1/idYBZ3TMZPBbHSa63PKtQCgUrBv2rXwgWAgqRVR1fHCfbJ0mti/c9AZi0H7ORSwM+YhiMTLIrG3nAUnm09XYlUdk1O7TozZh2CgVL6bKTP9oZ1cJb6eGnzS5VZk9B4Obgj7N60a1V6o0Q5goemQyLoYkOjN46oXEp9NnE3suoueIFOFX7c9xfP5RqTsNELlMDCjW+bVjx9xgCShI8mkXiXuDeF18XkYIVaNuZuChosiyyOQV36rK+09jlkz0AG0zF7dXUaxyz7GlP0suhxpcNGZinLUrZ9jredk+yyYriYkjAACrxzg3YpElA== 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=QROpkGzwVN6caHukFab/T91TO4qYylTTgKvj7Kefc14=; b=fUP6Wy1sMmd2WfNDfI6zKU4eZvdZggVbuLFgueY5Sw+5G64stXbKsvL6KqPIWNCC92Fxs8/sCRLJC1Tfikv9Eoq6vRMhLBv8wzHBvvAasVFJd6qQLIC76ZmdTtsyVDCNKo5tks/DDsmDQM5kcMgdeWqwAnB+505s3kyxOeez5R//wE6YwVXBWo4HiNzxaDwC0F0jOJMIIbCG6PO5T0IsR9to6eq2WoIc2NwzZ+woxm3PghJ869s0NBBJi27jTuUyNu8XAtn4FmQdsIo8zNqXX0qFGpkZt8dOurqbqyIrqXMokEcfFU2pIjVDVo/dEHnft38tysbRNrZ0jXcqJkExIg== 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=QROpkGzwVN6caHukFab/T91TO4qYylTTgKvj7Kefc14=; b=fxaUeYTNTP/sGtuWgLykX3DUYIpiwOsSo6JMGA2hYXLm4VJv4vuikZ07QboFN+/6NcRoxcRmoaN3PnP7U372TU9NfhYUOQX/uyvTEqve8wmP4WyXSKLZLfcO7SCUJj94Dw3ChawH3KEtBqJXGpHtvRBqhJyULUIOKhvRouFkg0IBU7bsYGdPsVe2X3mvuBTLz+F0obUwPBml1Y84aR2Og4HtXqGiid4/gRd25ADyzIm5OuL201weWcaqeVt/RxlUjbpph8vK6KN+ZUDlIak+JbhzjqL0NGMbAILgaBVlGAPUM1fMy5ofqKR6T3nXpw/Mbkqb8I7o6PjKPxMq798KfA== 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 GVXPR04MB9849.eurprd04.prod.outlook.com (2603:10a6:150:112::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7982.22; Thu, 19 Sep 2024 22:03:53 +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.7982.018; Thu, 19 Sep 2024 22:03:53 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Thu, 19 Sep 2024 18:03:03 -0400 Subject: [PATCH 3/9] of: address: Add device type pci-ep Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240919-pcie_ep_range-v1-3-b3e9d62780b7@nxp.com> References: <20240919-pcie_ep_range-v1-0-b3e9d62780b7@nxp.com> In-Reply-To: <20240919-pcie_ep_range-v1-0-b3e9d62780b7@nxp.com> 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> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1726783409; l=2478; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=pqmHLOp270r3Lg0dZcu6Ad8vOAObt7oeCavzpzR28l4=; b=YANOTCiuI/shJqjrJ9FMH+UFmsQ5Pjz7U44rV4eeX5yQXPB0Vt5QptcXtKGvSf+a+4TlFgJZ8 2ZKa6P7M/FfB655Yt89iT+NGfw+OacYtUG/6T2aNYf4pHYfdrt6Fag+ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0057.namprd05.prod.outlook.com (2603:10b6:a03:33f::32) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|GVXPR04MB9849:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c991625-c0fa-4009-0b15-08dcd8f6f335 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|7416014|376014|366016|1800799024|38350700014|921020; X-Microsoft-Antispam-Message-Info: =?utf-8?q?oN3NVBN10A7EE8Y0koKO98qFvih/Lqw?= =?utf-8?q?f1sWe918xysTkPZR2Pkjo5MXuQw0y+iPuEzYy42xHDCsUIh993bzDFubvB414r3c8?= =?utf-8?q?DXRVHbEZ/HzOGEIO0oioNeirfo5kpDv6XhbJPV22Ke8q9YVqeLSR2HwXBT+zstaoT?= =?utf-8?q?MFZOe2gW8gkFODV7H2arvKfDxVtPwHble281xPS6/9iexZp8AAU1SzZNzdWZ8kdmp?= =?utf-8?q?pV+xIDEkJeCY6YgUbsiXiGhvkkKNgaolX3bVmVUc+vzWgHzCTSgn0jgnCKw0m1Hv2?= =?utf-8?q?E2Jc431jf4mKhvHHTzL8knAs/s9z86ZDC7OG2Mk6a13y1jPJv4psAixHl4+0l+gKM?= =?utf-8?q?QvdGOzEmX4h11lkbKbH6THsN32Q3YMVj31KKFrbgNuZmhGB0PDIvINnZP3DqfaKVX?= =?utf-8?q?mgUvPjP3pJfutZGcnR9SivEqLUY242g/xwV1A9Dv1qg8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cl/tKs6D/aFv+T3w?= =?utf-8?q?fiWZVniRgeB00+ENLoXSAkKrgiDx2LfgjoMWXoHWIFeoV3BTeEX+P4M=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)(366016)(1800799024)(38350700014)(921020);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?h8XoiVum5Xtb1clIQPIdpqzusc+w?= =?utf-8?q?O7ravXUFwarrwN9DTgzfTY0nQixvu2cf/m2Tz7n9eF9LTd+Mikwglayl/KaeLdyny?= =?utf-8?q?61gqWrFZN+F5pg7+YbWwD53YuXxIP7nDbIkZ1ab5vzML2mlD5LJRKi1237jS2bOTl?= =?utf-8?q?EyyXoiV8qHkcG+QGxXoEcvH6tKImdey/gIofJ75W3x9IPDccc0Itzd5xQJVIYIaTX?= =?utf-8?q?W4rp/MHKj6F/S7pvL/UphffE10m4zzc5h+496P1DYopWM3RhYy+xpQ8Zg2PH5LJuW?= =?utf-8?q?3GrTYhX7Dk1O3PDLFN1IqrnwQOIvpRJODV1ou6HG5UCLJshvrJqQbH7sSQSpSqC5B?= =?utf-8?q?l1jlpmkU8CpRmaqe3Ja0AthGCZiE5Z1tCd7uIl7ZMrIYvG5USUlajmMePGh5Zt8Rl?= =?utf-8?q?WgxA32gYD5TWlMLlyCVWcudGdLhI8GY2WAR+mnbSBc+FOwKXbKwPvEvvVIZxYSPOx?= =?utf-8?q?rJHxQ/w84KMVmKpyeH1EzwUoBfNLzm0o1uBGE7sL22CgCIVgN/pz+eWekGJ4+oHsU?= =?utf-8?q?UBIu52Dmg7soYbbaH6Y5gM1tVd2oHEy+A6rExA8YAe084+wZ90pQoXY/AWbFCnnhV?= =?utf-8?q?9u7gAURXYxP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qMSaq9quBvPDWWligrLR86x3aXGzH1zgIyC/fBvvwAPuvzRR?= =?utf-8?q?icVGEz9LDMN8?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c991625-c0fa-4009-0b15-08dcd8f6f335 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2024 22:03:53.5042 (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: kvaPKQcvn42W9ReyXO44uOh8Xafk6c+XLS1fdtxDkob3YrvN8EyHfLWuMQgREbHsF9+ZyWrkwAAwIhVjKDztug== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9849 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240919_150358_217977_80530207 X-CRM114-Status: GOOD ( 15.55 ) 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> 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 |
PCI-EP: Add 'ranges' support for PCI endpoint devices
|
expand
|
diff --git a/drivers/of/address.c b/drivers/of/address.c index d886f16df8a6e..c98e212d53dc1 100644 --- a/drivers/of/address.c +++ b/drivers/of/address.c @@ -117,13 +117,13 @@ static int of_bus_default_flags_translate(__be32 *addr, u64 offset, int na) return of_bus_default_translate(addr + 1, offset, na - 1); } -#ifdef CONFIG_PCI +#if defined(CONFIG_PCI) || defined(CONFIG_PCI_ENDPOINT) static unsigned int of_bus_pci_get_flags(const __be32 *addr) { unsigned int flags = 0; u32 w = be32_to_cpup(addr); - if (!IS_ENABLED(CONFIG_PCI)) + if (!IS_ENABLED(CONFIG_PCI) && !IS_ENABLED(CONFIG_PCI_ENDPOINT)) return 0; switch((w >> 24) & 0x03) { @@ -172,6 +172,11 @@ static int of_bus_pci_match(struct device_node *np) of_node_is_pcie(np, "pcie"); } +static int of_bus_pci_ep_match(struct device_node *np) +{ + return of_node_is_type(np, "pci-ep") || of_node_is_pcie(np, "pcie-ep"); +} + static void of_bus_pci_count_cells(struct device_node *np, int *addrc, int *sizec) { @@ -196,7 +201,7 @@ static u64 of_bus_pci_map(__be32 *addr, const __be32 *range, int na, int ns, return of_bus_default_map(addr, range, na, ns, pna, fna); } -#endif /* CONFIG_PCI */ +#endif /* CONFIG_PCI || CONFIG_PCI_ENDPOINT */ static int __of_address_resource_bounds(struct resource *r, u64 start, u64 size) { @@ -354,6 +359,19 @@ static struct of_bus of_busses[] = { .get_flags = of_bus_pci_get_flags, }, #endif /* CONFIG_PCI */ +#ifdef CONFIG_PCI_ENDPOINT + /* PCI Endpoint */ + { + .name = "pci-ep", + .addresses = "assigned-addresses", + .match = of_bus_pci_ep_match, + .count_cells = of_bus_pci_count_cells, + .map = of_bus_pci_map, + .translate = of_bus_default_flags_translate, + .flag_cells = 1, + .get_flags = of_bus_pci_get_flags, + }, +#endif /* CONFIG_PCI_EP */ /* ISA */ { .name = "isa",
The PCI bus device tree supports 'ranges' properties that indicate how to convert PCI addresses to CPU addresses. Many PCI controllers are dual-role controllers, supporting both Root Complex (RC) and Endpoint (EP) modes. The EP side also needs similar information for proper address translation. Add device type 'pci-ep' and use the same PCI address parser function to parser PCI EP's ranges property. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- drivers/of/address.c | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-)