From mboxrd@z Thu Jan 1 00:00:00 1970 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 4DF52C1B087 for ; Thu, 27 Feb 2025 19:39:52 +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:In-Reply-To: Content-Transfer-Encoding:Content-Type:References:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cqVCIvVHAYXAiAMNsoujEj1Z+u+BU12kVAjTD4ifUJg=; b=XCREOnpigO2sZIzKUEzC6qbNIr 5w+nendL/sLv3zKvBzqwuynOF8yzeNu0XN5fs2cTU9ErmrraPCHWTytDc9u0mcFnr5xJPhEHGCx19 I3uqnIe06t9WEcL4ehYTiNDSEWnFXvdonAwHf8BFgqtEUfI88StVoRRRo6GUjRq5BPPXP305WeT9y wirhtfZm8q7K+0FIPAi6ieETp76rNPdU4hrroZvlC8hqMsziAHEzme2sxV26UtR8wlKYVRwd60jyC Tx+pA+A1NCKw2guNUZkqjTQCUVIjSE75r2QjagBUPKd7h6k6AOd/h8++ftmDLQhjvF8Hq7xpvOHB5 07OsD1kg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tnjjR-00000008YDR-2aZK; Thu, 27 Feb 2025 19:39:41 +0000 Received: from mail-westeuropeazlp170120005.outbound.protection.outlook.com ([2a01:111:f403:c201::5] helo=AS8PR03CU001.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tngvb-000000086O3-1PEQ for linux-arm-kernel@lists.infradead.org; Thu, 27 Feb 2025 16:40:08 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=H64UpFRpqwKvm4QV9cb3fXG2IfMRbAAM5z7t5zRrJzyytaH3eQKsZM5nnCLeXhUhebN3QjA8MDdciLxDH2oRaPku7dJ9DDqPe/9fdLHnNEsvMz4wVRy11iE18joDV1GCKAhq1zUqA5wdwDCHy4qOhcVRd5bXE/ZX4BZs1/kbwMJ2DXGQXUCi/Brjl+l3AiZAhh+GY0+V9G9+RS0U6+lG8O/sLkZWWsKClZs4iDMqw66Xk5paZa4Fbp8O+p510bzj7Hx1GTLhB0FR3zvsKUalGHfwz82aqc9pwhvcP+3fjMxIXag4y9ryJ133bpQicHtstuDeJuio9IdRK6Isjt2WdA== 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=DRs9RdCjnBDLt672JIm0ap5aI+xjByy3D4ACZtoZ9CI=; b=dua04xdqsWYdkDuZAAhbPPN5ajAws38kzfVRUAc7St9Ez52jHyQf0VUdLPpkDFrfjH3DtKjnIJUniKly+2LC1zJHkBLUy0Mk0RiWo/4cQBAsCFk3vrtE/GMG2/OSKwIEUiR+Of9uG5f6dBWQBjIg4rdT+8u3UguoXZldRP5+4/ZVBGqa5ipWLAen0SD/0ZnDputhn9NbhEiJBWgoKs3LlK8v1TLsheGwgIwOmyXl1grR2zdYxSew0rhuUT5AWDbuNaPQDsr7kT3HMivg+RclrZn6GXBnStQADLABMlxW9PshpvlLj9LPXU+9YYKMMxiTcysPN7LCV+SQDwqQJv5cqA== 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=DRs9RdCjnBDLt672JIm0ap5aI+xjByy3D4ACZtoZ9CI=; b=ZLJpmCShCrA8zrAHJRyyEShHz9Jgl2rXw5Hz9uR/SUOt3ylES6QfsRIw01jHOec8BXYzuRJzOvb/hymNXZcd6HTANW0eiJrrTDnE2Iekf+9YAfMXZyny1CGd3c+AqPRvm1suOaraM5xn3KuUyrB43bGMUYXhKwqJYaLmq8h4p2Z4/Gpx3LAocD8DgoO9nfdHyiUWcsvoxjfLeQlf/b0ztju8pMR9zK97HTO/7C9DKRl/xK7CoeswI6WaD8qwcpyJo1A50WviIAwMb74I75F5YMwkQSOfH38qceViOguR6iPT0lzTXM4zfwPdMhLK9JcN+nKjYyYPJRzXk2nig+NkOw== 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 DU4PR04MB10363.eurprd04.prod.outlook.com (2603:10a6:10:55f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8489.19; Thu, 27 Feb 2025 16:39:55 +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.8466.016; Thu, 27 Feb 2025 16:39:55 +0000 Date: Thu, 27 Feb 2025 11:39:47 -0500 From: Frank Li To: Alexander Stein Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "open list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" , open list , hongxing.zhu@nxp.com Subject: Re: [PATCH 4/5] arm64: dts: imx95: add PCIe's msi-map and iommu-map property Message-ID: References: <20250128211559.1582598-1-Frank.Li@nxp.com> <1995746.PYKUYFuaPT@steina-w> <1819305.VLH7GnMWUR@steina-w> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1819305.VLH7GnMWUR@steina-w> X-ClientProxiedBy: SA9P221CA0010.NAMP221.PROD.OUTLOOK.COM (2603:10b6:806:25::15) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DU4PR04MB10363:EE_ X-MS-Office365-Filtering-Correlation-Id: dc7215a6-e15f-488b-5052-08dd574d5d76 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|7416014|1800799024|366016|38350700014; X-Microsoft-Antispam-Message-Info: =?iso-8859-1?Q?WfQHNAfmU9wvfE0DOAeg/Le08vWNCT6F5TJ5UMIjfgz59EXEhpCPe6XINV?= =?iso-8859-1?Q?4Ehp6O88RrG20sz1an0Y6g3Ga0uKU9lYVGij82JFHarw9IlKK+2/vPeTtL?= =?iso-8859-1?Q?GvADXwCRX6UDynTnUlahitJr/DZhY9JAsNLhme9D2oXrfBws6luTE57L3Q?= =?iso-8859-1?Q?6YlHZw6dsJ1XH8laAtt388PRxvpuB5SofsU9N3+icOrOtz5OnDA8TQV70Z?= =?iso-8859-1?Q?dNIXGPrriG+XdRhA/uBpq4MpumN5a7DF/BaWosPPTkXJ9QvpUuBf6taaHt?=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fAuuNddYLV3bcRTDYCwQ+aU6ENYWRobOQt3?= =?iso-8859-1?Q?Et6E4q88Z/xdX6iUXzpjS8Aw+Z+6f+LRWVqU7R7vfnP+kuQo1cS0WphIkE?= =?iso-8859-1?Q?FFryVPUcHjXCGBbU1rsaoAq38FlihX9mCzQmIQ4R4evdM2Do+Uf71nIkMo?= =?iso-8859-1?Q?TWkQRHu726SMshhLY9o65+OGdOihroLO/aoOi/Gdzkgpi0a8ocGq4Zyixb?= =?iso-8859-1?Q?uuyexp3wdAw8EmmSSqQlvkPppiRwIMmOL+fbmsgKBcIkYv5RbeuLh71nVE?= =?iso-8859-1?Q?NMytwIrJnD5Z6/p3?= 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)(376014)(7416014)(1800799024)(366016)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?atIPvtvheBeNWpIkeG1txemo+i//Px77g22ZAwzSARDTRSOLAtJWVtf7k8?= =?iso-8859-1?Q?TnnEIDCZ2mVy/RflXHezZI+dTnDwNHtnUgO2wCKW5cZrc0tkH67Ic6nQmB?= =?iso-8859-1?Q?2p59q2KpmX0f1jnuDcFtU8LPM+kooq6PGcMhudXAqsuzH9xlUacgf4GeSR?= =?iso-8859-1?Q?fP5nOWTW09mN3TPUZSr0EZNk77gdpCO37e9TrunKblvMUDz++lVq5FoQ15?= =?iso-8859-1?Q?TAEhwnli0ijKv1G5ejqj+QKZVZcXv69IYvQuok11orvNJJFVMlBWa1W0Fb?= =?iso-8859-1?Q?0zTZGJfaFM1TJxdxQhKQduMBQbpQUKMrl6S3TL+S4thOYcTQ/nYroWjSnf?= =?iso-8859-1?Q?fFv8MpdFoGXi7T1DDyC4yJvTMZ4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Q?HhajI/Ly0BzzZnxDY+lc+fRdHkB6xGJFWCEbGMuSGG6y57cVxfGB/UuILw?= =?iso-8859-1?Q?Vq+LVXLvggsg0gcWhieUaY0YoLm7IB4voD8D0+ESSyH16xFvnwEjmuBXaB?= =?iso-8859-1?Q?AKBqkrgVoUxENj4Mo0OZyZNfLHJ8tuVk/GjrDQMm7ppLt4S0o0fYkce43+?= =?iso-8859-1?Q?X1Hd6Urd7XwEGEcUVXVAc9hkwnkdU+iIziO74KDzDbbxm5wuzTqkro15LU?= =?iso-8859-1?Q?CFGWYHknKQ32zgCyxqfUVIR8ZOJTOMvh470CuI/46xQHtSrNsz7hhjUmn8?= =?iso-8859-1?Q?1Lc+LdeqhoWAjHV3jYYp3b3AiENb2e/rIEAaE4qf7yLWJjUplHAiUDFuOm?= =?iso-8859-1?Q?/qu/pdPeIxkcs=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: dc7215a6-e15f-488b-5052-08dd574d5d76 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2025 16:39:55.0377 (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: oXasrnfrk4yVmjQzq8e7BXMZwFnN4HvFGPdB7LSPVPQwk+S0d2Y/MgkXKy6MIpEtt3/2dLzRVT584FClJvhX9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU4PR04MB10363 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250227_084003_535991_1C0CF4E1 X-CRM114-Status: GOOD ( 31.83 ) 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 On Thu, Feb 27, 2025 at 08:54:13AM +0100, Alexander Stein wrote: > Hi Frank, > > Am Mittwoch, 26. Februar 2025, 17:31:26 CET schrieb Frank Li: > > On Wed, Feb 26, 2025 at 01:11:37PM +0100, Alexander Stein wrote: > > > Hi Frank, > > > > > > Am Dienstag, 28. Januar 2025, 22:15:58 CET schrieb Frank Li: > > > > Add PCIe's msi-map and iommu-map property because i.MX95 support smmu and > > > > its. > > > > > > > > Signed-off-by: Frank Li > > > > --- > > > > arch/arm64/boot/dts/freescale/imx95.dtsi | 14 ++++++++++++++ > > > > 1 file changed, 14 insertions(+) > > > > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi > > > > index 6b8470cb3461a..2cebeda43a52d 100644 > > > > --- a/arch/arm64/boot/dts/freescale/imx95.dtsi > > > > +++ b/arch/arm64/boot/dts/freescale/imx95.dtsi > > > > @@ -1573,6 +1573,12 @@ pcie0: pcie@4c300000 { > > > > assigned-clock-parents = <0>, <0>, > > > > <&scmi_clk IMX95_CLK_SYSPLL1_PFD1_DIV2>; > > > > power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>; > > > > + /* pcie0's Devid(BIT[7:6]) is 0x00, stream id(BIT[5:0]) is 0x10~0x17 */ > > > > + msi-map = <0x0 &its 0x10 0x1>, > > > > + <0x100 &its 0x11 0x7>; > > > > > > Aren't you missing msi-map-mask = <0x1ff>; here? Similar to pcie1. > > > Either way, with this change PCIe on pcie0 is not working anymore, > > > regardless of msi-map-mask. > > > > Yes, it should have msi-map-mask. During my test, I have not enable enetc > > so I have not found this problem. > > Just to be clear: This is not about enetc. This works fine here. > > > > Without msi-map-mask: > > > > OF: /soc/pcie@4c300000: iommu-map, using mask 000001ff, id-base: 00000100, out-base: 00000011, length: 00000007, id: 00000300 -> 00000011 > > > > OF: /soc/pcie@4c300000: no msi-map translation for id 0x300 on (null) > > > > r8169 0000:03:00.0: error -EINVAL: enable failure > > > > r8169 0000:03:00.0: probe with driver r8169 failed with error -22 > > > > > > With msi-map-mask: > > > > OF: /soc/pcie@4c300000: iommu-map, using mask 000001ff, id-base: 00000100, out-base: 00000011, length: 00000007, id: 00000300 -> 00000011 > > > > OF: /soc/pcie@4c300000: msi-map, using mask 000001ff, id-base: 00000100, out-base: 00000011, length: 00000007, id: 00000300 -> 00000011 > > > > r8169 0000:03:00.0: enabling device (0000 -> 0003) > > > > r8169 0000:03:00.0: enabling Mem-Wr-Inval > > > > r8169 0000:03:00.0: error -EIO: PCI read failed > > > > r8169 0000:03:00.0: probe with driver r8169 failed with error -5 > > > > Can you try remove iommu-map and keep msi-map? then remove msi-map and > > keep iommu-map to check which one cause this problem. > > With only msi-map removed, but smmu enabled: > > arm-smmu-v3 490d0000.iommu: event 0x10 received: > > arm-smmu-v3 490d0000.iommu: 0x0000001100000010 > > arm-smmu-v3 490d0000.iommu: 0x0000020a00000000 > > arm-smmu-v3 490d0000.iommu: 0x000000009b0cc000 > > arm-smmu-v3 490d0000.iommu: 0x0000000000000000 > > arm-smmu-v3 490d0000.iommu: event: F_TRANSLATION client: 0000:01:00.0 sid: 0x11 ssid: 0x0 iova: 0x9b0cc000 ipa: 0x0 > > arm-smmu-v3 490d0000.iommu: priv data read s1 "Input address caused fault" stag: 0x0 r8169 0000:03:00.0 > > enp3s0: Link is Down > > With only iommu-map removed, both smmu enabled or disabled: > > OF: /soc/pcie@4c300000: msi-map, using mask 000001ff, id-base: 00000100, out-base: 00000011, length: 00000007, id: 00000300 -> 00000011 > > r8169 0000:03:00.0: enabling device (0000 -> 0003) > > r8169 0000:03:00.0: enabling Mem-Wr-Inval > > r8169 0000:03:00.0: error -EIO: PCI read failed > > r8169 0000:03:00.0: probe with driver r8169 failed with error -5 > > Only if smmu is disabled and msi-map is removed the driver probes > successfully: > > r8169 0000:03:00.0: enabling device (0000 -> 0003) > > r8169 0000:03:00.0: enabling Mem-Wr-Inval > > r8169 0000:03:00.0 eth0: RTL8168g/8111g, d8:9d:b9:00:16:10, XID 4c0, IRQ 160 > > r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko] > > r8169 0000:03:00.0 enp3s0: renamed from eth0 > > r8169 0000:03:00.0: enabling bus mastering > > r8169 0000:03:00.0 enp3s0: Link is Down > > > > > > > Without msi-map/iommu-map: > > > > r8169 0000:03:00.0: enabling device (0000 -> 0003) > > > > r8169 0000:03:00.0: enabling Mem-Wr-Inval > > > > r8169 0000:03:00.0 eth0: RTL8168g/8111g, d8:9d:b9:00:16:10, XID 4c0, IRQ 166 > > > > r8169 0000:03:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko] > > > > r8169 0000:03:00.0 enp3s0: renamed from eth0 > > > > r8169 0000:03:00.0: enabling bus mastering > > > > r8169 0000:03:00.0 enp3s0: Link is Down > > > > > > pcie1 works as expected. But this is only a single PCIe device, rather than > > > having a PCIe bridge. > > > Any idea what's wrong here? > > > > Can you help dump more information at for PCIe bridge case: > > > > imx_pcie_add_lut(), need rid and sid information. > > drivers/pci/controller/dwc/pci-imx6.c > > Just to be clear, without msi-map and iommu-map I get: > > imx6q-pcie 4c380000.pcie: rid: 0x0, sid: 0x18 > > imx6q-pcie 4c380000.pcie: rid: 0x100, sid: 0x19 Can you help dump register value PE0_LUT_CREQID offset 0x101 for your smmu-map or msi-map enable case 2nd test. change IMX95_PE0_LUT_MASK to 0x1ff Frank > > This function get called once for each device. > Maybe the whole PCIe bus might help here, so I've put lspci output here as well. > > $ lspci > 0000:00:00.0 PCI bridge: Philips Semiconductors Device 0000 > 0000:01:00.0 PCI bridge: Pericom Semiconductor Device a303 (rev 03) > 0000:02:01.0 PCI bridge: Pericom Semiconductor Device a303 (rev 03) > 0000:02:02.0 PCI bridge: Pericom Semiconductor Device a303 (rev 03) > 0000:03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 0c) > 0000:04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller (rev 0c) > 0001:00:00.0 PCI bridge: Philips Semiconductors Device 0000 > 0001:01:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection > 0002:00:00.0 Ethernet controller: Philips Semiconductors Device e101 (rev 04) > 0002:00:01.0 Generic system peripheral [0807]: Philips Semiconductors Device e001 (rev 03) > 0002:00:08.0 Ethernet controller: Philips Semiconductors Device e101 (rev 04) > 0002:00:10.0 Ethernet controller: Philips Semiconductors Device e101 (rev 04) > 0002:00:18.0 System peripheral: Philips Semiconductors Device ee02 (rev 04) > 0003:01:00.0 System peripheral: Philips Semiconductors Device ee00 (rev 04) > 0003:01:01.0 Generic system peripheral [0807]: Philips Semiconductors Device e001 (rev 03) > > $ lspci -t > -[0000:00]---00.0-[01-ff]----00.0-[02-04]--+-01.0-[03]----00.0 > \-02.0-[04]----00.0 > -[0001:00]---00.0-[01-ff]----00.0 > -[0002:00]-+-00.0 > +-01.0 > +-08.0 > +-10.0 > \-18.0 > -[0003:01]-+-00.0 > \-01.0 > > Thanks and best regards, > Alexander > -- > TQ-Systems GmbH | Mühlstraße 2, Gut Delling | 82229 Seefeld, Germany > Amtsgericht München, HRB 105018 > Geschäftsführer: Detlef Schneider, Rüdiger Stahl, Stefan Schneider > http://www.tq-group.com/ > >