From patchwork Mon Nov 18 20:24:26 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13879029 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 4079AD591B2 for ; Mon, 18 Nov 2024 20:26:10 +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=/ctd9rq8+up8tE/cKwovb7rQnGBRkyqQmzuqP/b9Qs4=; b=vXrG5D9dybTGM3Hn+lAk7OJibU GctwcfWI0kALhGM7ADqGweo3tbASx544KcY5zKEnwe+k3VneRD3i/Tg41i4gFbPWMOVx0PV6Tm08J 6GQ0R+3dBUuQpdmlgqvpTxq1GnMw36sYZx2OcT7A9gY6pIaQ5nPCqYOR6aTJM1cd//0v3K3T1KbQV MVtkICAZGH+I9kSEs2cFNdL7asYBt6avzDB9B++zDHkRfLXqL8FX3sGD4JTTk69ef8HAMX1T9SCmj X8vi4gOHGZ1kKdWMpjs+83htmlNeOR++PakwUIrmATQrY/QLYsnwLvZ5IAq9bqmYaohYNDP9LugIC yqQkBzZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tD8Jo-0000000AZ7W-17tv; Mon, 18 Nov 2024 20:25:56 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tD8Ip-0000000AYrl-2IZz for linux-arm-kernel@lists.infradead.org; Mon, 18 Nov 2024 20:24:56 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VSVFxc5r25+Ic5kL7dBLlEcLZwxzQQonbTNY+j33RsM8uOwlDWJRI+XEM6JI2Kbf+s9o7hcq+wd2GXp80Q4ARF1ptlqt/J3FwpZS5rPKz68Nl2JsuVcggOeniP90Xm/g9y2Z+C4fv7pe0r8+ETDZHzohz6qPZ+U0ELpaeHrgocDKuxB315vkxv2KUC/le9MPPsIsdEdnXQtbVMY9Go5BPsrqzY87nPQ80lsVpqNUsA4SrDLdQh7/91dyhTBhVYvIdAvsUg6ALRQeS8VMyjGSQJ/aD8ceXkcWF4kMmMyUstXL8AP8c4yrlhOxxLH8JJnI1gywtg7Jlw/uNJHlAejp1g== 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=/ctd9rq8+up8tE/cKwovb7rQnGBRkyqQmzuqP/b9Qs4=; b=LBFXh2H0EOB/F6LXV7OtqLNLzB//yS2tk59ERG5ymBwGq522C0fF2hcMhi4Z8HCsTPd5P1NKLbZ0BjWnSkl0Ka2VpfJuPtcTpTsXbCi7N8VXcDkGIwjrIrxHKSgyKA2WElrxk8FCnQyZnvFjsRVDHPOjAYVjRhAdH+flxlKyefbb/Kiv8Gb1ccsaQJMVOJwhB5cFIygE6zawe+3fTAdmE0cau3zfmfpKoP3DGX3nlq8OGrnevh38FfZcVmn9Qoi6J4C8SjwrmCs/FyLFBNM3xq39YiLY7D5UtiAOjgTKpv4vTdy/JWj/iM6Btiz0AgBs3eBn21vio6DXaKl2RIWKxQ== 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=/ctd9rq8+up8tE/cKwovb7rQnGBRkyqQmzuqP/b9Qs4=; b=f2jh6ILOZt1aATYiB09ajOg7z6++xvSmO6u7sNHi8Wrlsfv4PixIQfj/Xd520GyTEFyMUP19jLjVll7QkpBQvpFEWrGCydoF6pogesnJ+GGOlVvbGY8oMnmp1rtd/+rldnOqNK52vRWlQ5YergiL3wx1nHG+35VsBRaE1AMpqy6Kvhvl2ANy3hLnnr7adcxzcj1SNfEQe3osJRY9zzW8mhrMREiTlrXJVwqSwDAxQtwRsnhffpFbD4/f+BPICapxNuwd87FFv6ElBFzVLoG34C8PHJrrVQ7oKeisJYIN0FC+IZc/Tr2CIhzQUTxtOGUBe9OqwIPgl2qA2yQKGAMIDw== 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 DB8PR04MB6858.eurprd04.prod.outlook.com (2603:10a6:10:113::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.21; Mon, 18 Nov 2024 20:24: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.8158.021; Mon, 18 Nov 2024 20:24:48 +0000 From: Frank Li Subject: [PATCH v6 0/2] PCI: add enabe(disable)_device() hook for bridge Date: Mon, 18 Nov 2024 15:24:26 -0500 Message-Id: <20241118-imx95_lut-v6-0-a2951ba13347@nxp.com> X-B4-Tracking: v=1; b=H4sIAHuiO2cC/23PTWrDMBAF4KsErasyGv1ZWfUeJQRJlhJBYxs7M Q7Bd+8ki1aGLGbxBn1v0INNaSxpYvvdg41pLlPpOwrmY8fi2XenxEtLmSGgAoeGl8vi9PHnduU imgYREzilGL0fxpTL8ur6PlA+l+naj/dX9Sye23cts+DAW4gGobFt8OGrW4bP2F/Ys2PGykmoH ZKTwShjg9fS+a2Tf07Q1E6SsxpcdIGuNWbr1L8TIGqnyEFus/OYk9Vq63TtNvc0uZyCs5hlFrL 637quv8IXGSuAAQAA 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=1731961482; l=4360; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=B6Qvgai/0tOcMkxFzyH2I0EpTr4YlSqtbUmvgLx2K7I=; b=b8mNdwCrFzqpA3a/97X2FaTJL4EtWmYSaGCNZC3IT3asp13XODoWHbg+IaIdfH64iHXiTTrcC N4MHQi6M3Q9ACF+Db/T6mP48ckB7TwJvLOmPhSHvbcoynNgV/kmNjyJ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR02CA0048.namprd02.prod.outlook.com (2603:10b6:a03:54::25) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB8PR04MB6858:EE_ X-MS-Office365-Filtering-Correlation-Id: daa7deb1-20c6-4ca2-5d0e-08dd080f0c57 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|52116014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?EdE5ZA07K/HaIEQepJYMYNVf5iCKyW+?= =?utf-8?q?ZtX51cSnv4V3xPU2iOGeZWO+5SBRlKObAA8bVrZ828ruLaRkEn756HMHS7KS3yi5i?= =?utf-8?q?/QfVIJGhV0a9XhcpHzKdRuRnytKs2i2OwARWnLpFRBnKakkFK+TOAuqCn3bLoKoq7?= =?utf-8?q?1P/cI/buTJeqvZGewNxw1TH4hT/krWILyGWvX0RvlLNpH5SnjJj86aovyp91qL5kX?= =?utf-8?q?e7EOr/LrlkKv2vBfFdHXazwki48/UyBs1Sii8LhcasAfxNvZpKk7HBxyA9MkonzX3?= =?utf-8?q?MLcz+NIykEz+3BcUvKvFmDvti95wD3YIFdx8Wo7bxhWC/ZuD3ZO7fEkT576ttjOKk?= =?utf-8?q?IFWGY8Q00kWTcZxNgoolsN9hYTcfDleq5c49/JQQxnMzRgNClMF9A75clvrIbt9Zc?= =?utf-8?q?GgItHNWdc/Y1OEUUVgXpKt7rdQIKyLgESUdHReGekdELC9+T3oMCtpiCswizVgCPF?= =?utf-8?q?UYus4sH3p4w2iAZSMrUVXOwoLZAkwT5bJqoLEx8IG1Qgeh5vA2r9kAB7IrnANOQo+?= =?utf-8?q?FbmkX3C18jjHKXoIwAg7VlPIunVq41CMwx/AXDMtCQXtTAMGqjsTpqoGXPi4d7Wnj?= =?utf-8?q?t80yBHJdh3otSsZ13fABa/15GVe/slqT2ylITLU7E/w5wAy29Zx4bKMxRoFdh/pqv?= =?utf-8?q?KS9vnvfzbCwi5xlPYfPPcL2P4KkQrziVm8p3pdGW9KgcK1NBNGzJmnd4OvPqaKGWa?= =?utf-8?q?R+ilTglaUBADYvxwLMSsntydgZ2JW9c1Ae7LY3lJGbMpcxF/NJWZ7pAQ599gQszI8?= =?utf-8?q?qzT49TPdnfjp84Zk3xFzbMBInARS8MkNE5ohNkyV30ZiRPQpvLynSmVeeLINsesc/?= =?utf-8?q?LDC5lHY0GOtlB5ikxCaTNTaOYnCa/DP/FJcau8a+Z+lZjoD1RO05CbpGmY7nZwEuS?= =?utf-8?q?Kwm4wq1rK8o94iblkBLckGp/Q1aWjmi+20DbkpzE8VYZcvkmvj3uwHhuhaquRMZSn?= =?utf-8?q?Qq8AaVt4agBhYZNEUVInpTyw6LwW8cbDa13gB9o9IwJMjOpfekO1M0kXjLuBE0axu?= =?utf-8?q?oYdDgI158xLg38A36s2ASBW0g3tlTlOEOagHPLD8E3cdV7vIlq89Y/fsxvxcm5uYM?= =?utf-8?q?bkyNr1Rfn4GcrNfgRYx4IDDnea+Zb+ReKar/wFtPyoZxduloL7uBJ8B19NJM5Lsvs?= =?utf-8?q?ZBEDdyT752U3GkrYixqBJEznecpckRo6cdaHUpgJv3TlgQpYYJ4EBJtiZ2CKwGqA4?= =?utf-8?q?F9e7/2zsEdU33wd5fNhjrxdSyOqUfu7odJMtDx58X8mpntgGobt543JrN3QFDmndW?= =?utf-8?q?vDRUK0emT0vIRyahjySNq2N2ISfg5UNn1dELuknFjCW01ONggdb2rKqKUL6c4B463?= =?utf-8?q?7AX2aEFE0DymXL/7QwCuWiLFSzbAw0Rq4A=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)(1800799024)(366016)(7416014)(52116014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?G2A5Q92BAG7fN42/03EOzPh3Afxr?= =?utf-8?q?BR8s58TrHfM/2MRUjSZKSmI6/qBu+ZlDQhmKGq/26t20F++Y6P+B/TWDPKPxg8una?= =?utf-8?q?sdaHxddM/hn8FP1pLLe8AQOIhqXHymNY4sU8YpA2M8AAcd5jSI+JEUdN0mXmPZQhR?= =?utf-8?q?MWmJf0frikqGm0dnAqNzjdrmHqvNZU+/y35/RtxJcEbSz+UppuTQ5Ujho2Z0n8RGI?= =?utf-8?q?Z17bG203x+GkkWZXwmYYXlIQEPgs8I7uVW2swP3lOPEKwwcVaO9DLwGIHEotWjXRD?= =?utf-8?q?zjSiUGidbhT4bqIzsxRQf5B/7Ufu1FF39gnmqTDl7c/Q8HjgEnobjXckzZSkFJ1XR?= =?utf-8?q?AVv30/jfN2KvVEKKkpGy3kOwO5/mytVFm2d4FxVQQQtTc3Um4Pv0a06fxhDpWoqAx?= =?utf-8?q?Xp4Eqwk1AFJlHVGXE8L/e05J0uTOv/UK72APGC0B61HToHFcZUJIuf9dN1Flda9QS?= =?utf-8?q?wpGlZ/xeXNLQZ3yWEJWqqXjfobKr8QK8h8RHb6ud/R+1Frp9zOSMtuLAlN8VcM1jp?= =?utf-8?q?PsVvM2v77ZHd6wbHkBngO0t5ZJvvw0yUNf6cEBlxs8NcxDD3WSA4BIYqVsTlZLy27?= =?utf-8?q?tCM4f3nGHym7FiMm8RHOvVqUs5At+wzCPB7LNczC3VkdxmmCupAx/16feqRz9TY4L?= =?utf-8?q?+OWfXP1FUIzHU2G/34EwW7zzvJTTt1cKsA/FRvfWonwdibxYIblGKohblsPz79/QC?= =?utf-8?q?EWC/x5ZVNI3lZNP4Bpr9u5mjHth3xoSj8w3XW6H404IDM3aMyQIjYRkzWfKE7BoqQ?= =?utf-8?q?p+yVoj0zx2FYrMJTy0E2RX/yn4w/m6K4QAYYjFnE4er/yqvoCF1GcN5mRBPnk67wb?= =?utf-8?q?W+mQ0tbIsEFpuHjhOXRnuY2lYjXI8vp198xhEuVK3+DpNgKYrCjgW5GbZaznoIe5G?= =?utf-8?q?mFcO9swVLdgZfaXes2w+TN0RbiKCuwvKKB3oVQcz3OqfkEZgoJUXfCbhUr56IC49M?= =?utf-8?q?ZkLQrwkad12TxeP6I9JhAIcm+vvX7u2ViaMgZnqAF/dHamAj4ec0L6coWPKoVUch2?= =?utf-8?q?fy2b+PzHfN06XSbyn+NCOi4TeIGCg3qnbVmnND+PdYkUPb1ulW+WMId8+EvogRzdM?= =?utf-8?q?jiMdlAuLTFVpQqSsZ0z+XP6FwsS/iESFYwtL6VDptbvPUzSI/0+kQyxGFQZMh44pB?= =?utf-8?q?z61ovMQaug8BJUag1mGfOEJp9dBUyevE7lpM9N++naQpYunZi6qL9mPptM22xnskk?= =?utf-8?q?3bRbnzGeCaCa2q8DuLmNC7BbD3aTEWlMKyXJAofNuhQVRLEky+VXaMirfl5ZTKgwP?= =?utf-8?q?owlANFeAfRxFf8GXquXVr/4R64bO3rIq/CXuPS0cFk6ADnVQEj0aygd4vU1SElMDX?= =?utf-8?q?tOpCzow2rTU6u0H9wdeuaqcOAdlkZM+W+3VvOObxv0E399wVMOnOZAbg4u2O+yGFL?= =?utf-8?q?qbdgExrgt7dExKnaQw5gUL83sl+nZnz3A0yHeTd95YGF0xBrXh1ZE0MygCCOsQi9j?= =?utf-8?q?4QrsAr5E5xcBjEtkQaD3zcvPNqyaGJ4/EcJ2IlSQWaCiPiE05BEjlIes=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: daa7deb1-20c6-4ca2-5d0e-08dd080f0c57 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2024 20:24:48.2306 (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: yZpuAqTdziX1xf6Vf/Gk80CCZbpGB/ejh+XEdJHCMBjxH5Zhh5Pca8bKtyrHgq1bwhAjlgbU5elf7qam4leZmA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR04MB6858 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241118_122455_738560_0B085857 X-CRM114-Status: GOOD ( 13.48 ) 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 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 | 178 +++++++++++++++++++++++++++++++++- drivers/pci/pci.c | 36 ++++++- include/linux/pci.h | 2 + 3 files changed, 214 insertions(+), 2 deletions(-) --- base-commit: 06fb071a1aefbe4c6cc8fd41aacd0b9422361721 change-id: 20240926-imx95_lut-1c68222e0944 Best regards, --- Frank Li