Message ID | 20250404-ep-msi-v16-3-d4919d68c0d0@nxp.com |
---|---|
State | New |
Headers | show
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64]) (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 D527B21E0A2; Fri, 4 Apr 2025 19:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.64 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743793317; cv=fail; b=VbmDPByGbIcKAZJb+Vj0FPw6rYWgTx6OIwZxIz2KynI6x2xHXF9D2k2nb9CI5OS2BtvI5yO9tjaUdJhN3NhAdnu6UjiSRuneHKJtFXXs7ELQZ084AUCVEGHABbUqWnWr5abu58NyTq8IvMlZIA9mnUye0SHiaEvhLREaa/yYgG4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743793317; c=relaxed/simple; bh=nuOSilx0xFIrmQ7q/FNnVVZ6I8tKFEDBakFZ9GZOgfU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=atpuUR5fiIO9hzUWh2WmRsED64PMDCfDclnd0KrkadSvjMgwEsCaC+nHwnhL0c76oRjWuKx0M3DuCLFwdtrYEqVUp5by9n6fzq7UIwfHldwsJNThuu1aX5vmqQsVgACwPomU3x3iEP+hnOni+lVW6HEGrBORYRAtsPHiLxZgFgw= 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=DHn6eJX6; arc=fail smtp.client-ip=40.107.22.64 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="DHn6eJX6" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fo79J6hdmsb6EdpNHvKdL8N15gCkN/wY3IAGt7B8SWip0QRfATj6WMZ12fZKE+Y6LQhHa6TVJLXOUBndC+QUgT92aXZpHqSfPdP1D6JtyT4GtmjBwsdB3sCzUI9JikpgjIparWzsUg72jOncPr/HbSj+38ylB/JwSiF3lLdG6s5MP4AeRNvIc7oH0ZfXDCPqeOcY82HacTGiTrdBvocdjKYMC4Wopqke8Wk1LD1rtWe2F60PV9nPzlRymE45mmH+Yv2Yy8D7MbU8hWmo+H65bkfU/2NohhgmhIDm6p88XmpSBTKA7fHEUoouuAzHlaIHZiiWJYdBUeqNrzbymoXTWg== 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=Wvzvkawi1c4jyl+gIIApohWSfi73eTZ55zDdwaLFIxs=; b=TG7e2eI+KptR3yDWALy/khmBuCXhzXSd539DgOhQJCVtYV4eZEEQN17Rbbjy//WDmnPJ7RhfivHeFdlcO7NtXW/SG1WhVbj7eyMdlgVYL1lO7TVjsyFtnqTzNmXD0WSdwmmAh7srvKhDjDpbbQ3W+PYbrwwe1ZqBgb7OcwajIxDQ/JvZQ0+X5Gt+0iHQQ/m9iCKfO51RfD7dZ9Seq8wGQqHcokJRr9Ij33H1NcJnroKRUPW05WILEmmwhVkfrltXZescjEgRqMhrn2Y1YosdOSajKLuyskNIU4mqxy0EVRDIdiTwsDvTXFDTsf2hDYn24uzeetol1qET9oYksRy93g== 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=Wvzvkawi1c4jyl+gIIApohWSfi73eTZ55zDdwaLFIxs=; b=DHn6eJX6nSsvUSGKzSfLJlDPpIdGLXMTOlYYEDeTn84rDv70qJ9MCsATvnAz749r9h4uO/rAV6t3hpV4DBewlgxLPOb4w695+pgJzhCqGKypX/Hp9A1BbvnhAksVVS53755AWXfw0JMyYECSO+aIttJR+vzRroGMVxvLCOlCVIfp6HJU9hjASw7kceN7tui/2JZZg2OVuu8iP9xc8wsIlE7wqU1ulpKlhM9TFd3kQ+FkY2RtOQXFItEm/cUNu+sjKUW7q1/wZdAYwKJKjNC5J2UC5fUOAPQXFBaIq/Xz4Q1mXzfxjPyD4WA/i6pL+QmzlK8zZcCI+MNnf9Cwc6JVZg== 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 VI1PR04MB6957.eurprd04.prod.outlook.com (2603:10a6:803:135::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.49; Fri, 4 Apr 2025 19:01: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%2]) with mapi id 15.20.8534.048; Fri, 4 Apr 2025 19:01:53 +0000 From: Frank Li <Frank.Li@nxp.com> Date: Fri, 04 Apr 2025 15:01:04 -0400 Subject: [PATCH v16 03/15] irqchip/gic-v3-its: Set IRQ_DOMAIN_FLAG_MSI_IMMUTABLE for ITS Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20250404-ep-msi-v16-3-d4919d68c0d0@nxp.com> References: <20250404-ep-msi-v16-0-d4919d68c0d0@nxp.com> In-Reply-To: <20250404-ep-msi-v16-0-d4919d68c0d0@nxp.com> To: Kishon Vijay Abraham I <kishon@kernel.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Thomas Gleixner <tglx@linutronix.de>, Anup Patel <apatel@ventanamicro.com>, Kishon Vijay Abraham I <kishon@kernel.org>, Marc Zyngier <maz@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "Rafael J. Wysocki" <rafael@kernel.org>, Danilo Krummrich <dakr@kernel.org>, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, =?utf-8?q?Krzysz?= =?utf-8?q?tof_Wilczy=C5=84ski?= <kw@linux.com>, Kishon Vijay Abraham I <kishon@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Arnd Bergmann <arnd@arndb.de>, Shuah Khan <shuah@kernel.org>, Richard Zhu <hongxing.zhu@nxp.com>, Lucas Stach <l.stach@pengutronix.de>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Rob Herring <robh@kernel.org>, Shawn Guo <shawnguo@kernel.org>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org> Cc: Niklas Cassel <cassel@kernel.org>, dlemoal@kernel.org, jdmason@kudzu.us, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org, linux-kselftest@vger.kernel.org, imx@lists.linux.dev, devicetree@vger.kernel.org, Frank Li <Frank.Li@nxp.com> X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1743793288; l=1326; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=nuOSilx0xFIrmQ7q/FNnVVZ6I8tKFEDBakFZ9GZOgfU=; b=3fMclYrp/jnpYoJhiR8raMxGRqTy2TBUVKnoU8z7TUGHzI7WlPdJN7sYrinkEwi8L+VPCG8pf hkzi/LXd4VsCIiR7KLB67bFX1ucxnCEstKMmIUSkz2URyyTHMHbfkAl X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: PH8P222CA0011.NAMP222.PROD.OUTLOOK.COM (2603:10b6:510:2d7::35) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|VI1PR04MB6957:EE_ X-MS-Office365-Filtering-Correlation-Id: 0d6c0b3c-034c-404e-c1e1-08dd73ab2990 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|1800799024|366016|7416014|376014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?XeNFNNVX/nU28E5ZWU/IgK/b/1ko1I9?= =?utf-8?q?4r0kApuv++bnXU0WiW/ZNa22yQ4OYeCqZqOl/uI2wF1Z5JAFg3jVWMjUb1SinJRie?= =?utf-8?q?dESpjUbGug54/evFh7yhv7uOB8Gp49dvFCY+4q3SkR3EnkL6Kkz+bMXfUKt12Ohsn?= =?utf-8?q?mjrrceX4bTJ0r37y1yk1CofxskWrDde/XdoexQDeC0vBu19zo/wR8PMw5ck22iJDa?= =?utf-8?q?VfMupJ4aZzV0jgF1RpqmM0Fde8BwokW8yIiVGYcq5GWXimBYQTYo0oEwc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nnEe0bcr+c2fVcQP5jNO?= =?utf-8?q?IkZjtHwvjzXhiBiR/nS2vVMgoIDHpnb56mfw67ugmwHGYN5nW4OLA0nLEA0IKdwW1?= =?utf-8?q?Bl1v7uvdhJ9gSozILpAnhc/CvsMe9OEqQRFuDlVEhEZDR63V2JvzSPMjg0CFMsM1P?= =?utf-8?q?7CxnR1Zqjl7MKnaqpziWXeEZW0FWph4J584fcGvlVJxhpR+uoXU1jHK220/t2kcvY?= =?utf-8?q?Ih6MQehF9bXv7+QIIaDpOtipD6GYM74iVmMzTSbwpl3bFEVv7Fr2qQxXD2qd5KCPB?= =?utf-8?q?j8lQC0MIVCbyk6HuI57nrt4C8AbsYQEAA=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)(1800799024)(366016)(7416014)(376014)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?lFRd9jMw30yYUYk4VlwnCn4+zBIo?= =?utf-8?q?fU6Kj/b7JAljTS0MVOB1KbleLpEKofvVoSeyYFy/aK3xEOOg0uN//q5ay9qiGKR8f?= =?utf-8?q?fUKJvMNN9/RBA6oqYe3oskmnmWYxWLhmDsZi/qjF/38HxrNH/OOqc+E2u8pyyms1u?= =?utf-8?q?/j6mQRbJ1jj1pe5MhiaU3V3msrgOt1PDmjGkie/PsCw67wLoxvHTRjKUm4HZ1Ihcg?= =?utf-8?q?WGzAU8F/xcsF2FcafRIDwL/JXYiyfzJ1KZkhKfCr44/R39igpRS1EIZCgMfibbPXN?= =?utf-8?q?8A2uXW/bDj+n9JZkF5+96uyrz9fx5CRapY5bB2mXgN8BG4UL1xqtwxBdAooKoomkH?= =?utf-8?q?a/TYRXBcqCMTcN8tD4aAPJb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uMVRUx62QkvmKUeioj15FqJ7Wac2A9D1d0?= =?utf-8?q?EiSuYrrgFinm2O0jWIH5oMJjAwA2aKgDFMOO3asYsXvqZSRaxV+iZcGySskB+zNor?= =?utf-8?q?J1bajgBsSlJhZFTfWRsv/rwI0HqSsjUHqfJ61iBj07an5rhrzk3bSC0iYxCL/3fFh?= =?utf-8?q?4f9+A5jW63LMFQ25a6NkY4vmcdmQBbare13qfZSSdSIpISrbsriv23REgUFsWufJ9?= =?utf-8?q?A7CpjOIgeqWJhc6mVe5YoNuFwA70bv1sI4izO8Ij7b+4fgHvA8YO6mu8=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0d6c0b3c-034c-404e-c1e1-08dd73ab2990 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Apr 2025 19:01:53.1499 (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: F8Qn+KKmiJWm54Bi16qDx/RweeOqrFeN+9s36/JPR54kwuoeOFu+RivJjb/Vvr3YLvIDZOjUhTqeEKgRFMoA4w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB6957 |
Series |
[v16,01/15] platform-msi: Add msi_remove_device_irq_domain() in platform_device_msi_free_irqs_all()
|
expand
|
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 0115ad6c82593..fd6e7c170d37e 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5140,7 +5140,7 @@ static int its_init_domain(struct its_node *its) irq_domain_update_bus_token(inner_domain, DOMAIN_BUS_NEXUS); inner_domain->msi_parent_ops = &gic_v3_its_msi_parent_ops; - inner_domain->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT; + inner_domain->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT | IRQ_DOMAIN_FLAG_MSI_IMMUTABLE; return 0; }
Set the IRQ_DOMAIN_FLAG_MSI_IMMUTABLE flag for ITS, as it does not change the address/data pair after setup. Ensure compatibility with MSI users, such as PCIe Endpoint Doorbell, which require the address/data pair to remain unchanged. Enable PCIe endpoints to use ITS for triggering doorbells from the PCIe Root Complex (RC) side. Signed-off-by: Frank Li <Frank.Li@nxp.com> --- change from v14 to v16 - none change from v13 to v12 - roll back to v12 version because Marc Zyngier have concern about add DOMAIN_BUS_DEVICE_PCI_EP_MSI. https://lore.kernel.org/imx/861pxfq315.wl-maz@kernel.org/ change from v11 to v12 - new patch --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)