From patchwork Wed Dec 11 20:57:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13904206 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 8A851E7717D for ; Wed, 11 Dec 2024 21:07:22 +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=reEdFfm5r8CECXTiigkGpsrZkbeQGvaWHv5MjgKBfkw=; b=D8g7yTDBDEBCqhLpj8zHD/8sx7 06WZB2+mQeDSnhvZO0V0+JOoQMVJBmDEhFfN9F+0r7jTNT/k382L+hmg6FrXvz/Fa78KfuSEm2nx0 r1nJN0gjmh10QzAaNcSTpwTJlIhvbQWwmhsemBF6ljF/vHiuNnuSlkcksSG8nUiVIIngVfwO8977C t+JfAEx6Clfcj1ZgeE/SJhJB4RgzjD145QwBgwP5RUKV55cRzCmvQym+fJxM/hRYldYdwbC4kg10u 6MZz7FSF/pkcH8LreCO389FBQIb6aXuhh5eT3MDf8RyZG537P5XeCct5w2daG8FBqjt1v7WadQJhj 9CuLuraQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tLTvK-0000000G7ui-0nIj; Wed, 11 Dec 2024 21:07:10 +0000 Received: from mail-vi1eur03on2062e.outbound.protection.outlook.com ([2a01:111:f403:260c::62e] helo=EUR03-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tLTmY-0000000G5bt-3gUA for linux-arm-kernel@lists.infradead.org; Wed, 11 Dec 2024 20:58:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sHoDfkrEBRrWGNkexEPEysHIfN6Dfm5DqTEInPYdvmtUF9XIFD3oJcphZG9+cvfDZOmgvQ4cgUGNClAPo50qbyYTKYVzXx5d6KtkmtjdxH5zPTb/gLt7/rJULD0q2nqFfBaAmtGlVbkFxD8jyzQtmqDMcCPc5+9udqrhWkUUGU8hhM1kOjUDy4b2feEYNlTU73qB/9235uceQgCQnK7XWaayNNDMwXfdrJNHfF1p16NPojxn+cF3Y5QeuYPAYEAqqwcX6ofNtqIdeIZb8LHNanUnn8Bk9Qy5vzXX8Uporv/2bEnZsLdCnOffbC3MlP8wwT0UxnjOGfQtLaVabfyjBQ== 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=reEdFfm5r8CECXTiigkGpsrZkbeQGvaWHv5MjgKBfkw=; b=C7ntj5IeBGRFm01RpegzljK5fTS53zJBbhJSc9xpertr4X3l5//QYxBpIKpYmsnPka4pbiv+LFVQMqvNKggCJI20XYGNHGlQodnamerFV0EitJCVYqmIZKywbqD5k7bKQVcbeQT5AZylLaOwt2NDS2vidHCTR2SUHvwXkaoo14Xtc6VrPLHxYoK2qo2U/y2PTn3FI5HufRlC8ZGgHtoliAqU8hLhrvbOIXwyMNnvximzE2ueo8ImCqMrGE+KfnWEMbxyA7kLrvuu2Qqtou0i3H/UitCCf6/H5Vs4s80L9WgxytM4SA86I7V63B86UXapf/gvk5er5HOVrSsWYP1Vfw== 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=reEdFfm5r8CECXTiigkGpsrZkbeQGvaWHv5MjgKBfkw=; b=YwdiLg4tHpoCVurMc+sFt89iGiLyFZGAWYezSQ2MAQzrr3nXMYjnkewdzCrP//CaVw8D8D5vZ6Hv5ZG+rowqbJidcxyH2DYTwzQwTPTYm0PlTr83U5OQjVp7an8UbXG6bOiT+jtjswh/L3GnOne0RUwJfJpg9OKMbGgV06H+9lsVDYnFwVnBzU7YCuFd+bZmBYwUA3JebvapmUpvDapWESnWDfYwxOWINKJXZmKGaVoFmCBLYd3GwhKzNp+6b9A9masVBIpyHi/5ql5nIdKX6oj5I96jM5Z2BH3sTqjhsmFv6nufke1rAMfG7a8iw/1bSahLBb0eHqg+eKLcgNWQKw== 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 AM0PR04MB7139.eurprd04.prod.outlook.com (2603:10a6:208:19d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.16; Wed, 11 Dec 2024 20:58:05 +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.8230.010; Wed, 11 Dec 2024 20:58:05 +0000 From: Frank Li Date: Wed, 11 Dec 2024 15:57:32 -0500 Subject: [PATCH v12 4/9] irqchip/gic-v3-its: Set IRQ_DOMAIN_FLAG_MSI_IMMUTABLE for ITS Message-Id: <20241211-ep-msi-v12-4-33d4532fa520@nxp.com> References: <20241211-ep-msi-v12-0-33d4532fa520@nxp.com> In-Reply-To: <20241211-ep-msi-v12-0-33d4532fa520@nxp.com> To: Manivannan Sadhasivam , =?utf-8?q?Krzy?= =?utf-8?q?sztof_Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" , Thomas Gleixner , Anup Patel , Marc Zyngier Cc: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, imx@lists.linux.dev, Niklas Cassel , dlemoal@kernel.org, jdmason@kudzu.us, linux-arm-kernel@lists.infradead.org, Frank Li X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1733950663; l=1104; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=5pjdUm+qdlHFHhK7ZyIpeEGf+O4vh3vaMbBm61oH25Q=; b=mkzVt8ks8Sx225sdryqVfv2jrzObaDIjUCPU3nr/ZROfKBw0r9KBwNhQURWC9A+VFYL3Ps+F+ HzKUpY2p3qvC7sjGAAARJ3r+sZ/DOgk6jMIKNCh3Pec2auhQHvuSvWd X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR01CA0037.prod.exchangelabs.com (2603:10b6:a03:94::14) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM0PR04MB7139:EE_ X-MS-Office365-Filtering-Correlation-Id: 45a3c0b3-b1dc-4dcf-6aee-08dd1a268213 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|52116014|376014|1800799024|7416014|366016|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?EyxX9qEqbkHu2qbDAV2fGWt5TUElVDI?= =?utf-8?q?ghhM+5qwAJRM9TZhWbesUcrfzlGJf7qQp8789CspS+5eMuL+VyyC7M9cviIguV28K?= =?utf-8?q?wt78XfwoV2EA20z5sRAZ40GxChJkFQWqdxiy6GeckFYtRfLbpz+XVrWbHhN0TSQGC?= =?utf-8?q?/Q4zf01AoEwy0G2Bnk8B2sCj5yF9kHWSwxhNHfqYiSBXdwVxg1CnjkzbMCmvLBBrx?= =?utf-8?q?TvLI9YJRZ6mhbY4WoEJb2OQOB9DrMdtb11A5H7pbTGw1k8ybv3yRQskDFIArd7Sms?= =?utf-8?q?CkmiCLVp2i6AEaDXvLjM+GHjLr/225eSUmf9Piqqq+QjlaGSH6UzzmhBruaMXga4n?= =?utf-8?q?8/edlEZeDQ+4+U4EtfwO9cmtyQVjWAvXWSi/5NnvM9rVtGreLMRU6k+19Km9/50os?= =?utf-8?q?e1MTAoWOGIxh9I6VbyluzYDD4/fKELTRfLmEiOo0WNvGDTAvNVpuF9YB/EAL8gw0s?= =?utf-8?q?+sOg6pXaGcPtumqZ4u9ANIa6suTgEXGcBK/oUkOj0GE0aq6J8DAa10nlSFAOyRkL8?= =?utf-8?q?5Cb9h0m6HRxAsNQHqaJbY0b8ASaQQTEeLOTxfaADwkPS5IuaPc36nqhIknhO5gCjY?= =?utf-8?q?NuKzB6ozZ2KE0AmltDj86wViW/67xLT+P9ei23EubAUBeiJicZ8z12dBbDQ555YSX?= =?utf-8?q?CzSEAPvraWCq0UctuxsDQLHVm073FuOZjRUmTRM7tD7kGAEUl9IUV/qeextOGnsR8?= =?utf-8?q?kWPmho2hBl6XWWhrJYUN5ScoYSZQHnWpllX/5GjdQo0Rwa6LVn09ToCDIVQm8o9r5?= =?utf-8?q?qKb+RSNWV2M+jG72EAxgF7GxGAZze3dMcS82NC2nCtU7FH8WQpDJ0xkMPqXeeZdsq?= =?utf-8?q?Jxf8kJU5C/j7EgNNxKqMLYBysj+oMubmpycuz5fHzaWEFAduVXNyO/20mwGpNR9Kz?= =?utf-8?q?iMtFOxC9RlCtFctsgqp7E9hTMOufmoplCWJ0Plm8WrPVl3eVVC6nDq83IEaEaaUZd?= =?utf-8?q?Vqf3YoPTci4n8RO58HUx+FWMew1w//wyOHzqaoODV4LJ9hcNKY7LakqLHCVBBBmAj?= =?utf-8?q?8M72YOpbtiHo98YNwO1BlyDlTtbeJiI2GA0HCQ+x6PdRQSQShzLporaF8Qk2vR4+r?= =?utf-8?q?tYkXyNsT6Q/eQf11sWIraccaKjsdqrRzfmNUNIAEsFUdk2HJaVieoEIZXj43NSufZ?= =?utf-8?q?Rqu/IaU01UDW4fZWg9rp32dbRx6zCRZihgPaIecoCYnZY26xC412wgHlBltEPhXf6?= =?utf-8?q?wHPyFKMjFfa0UwwAeH22zv1KRfGpemfRjeOJ2I4HMxPD/g4efNDG30kRkTkhQV5gz?= =?utf-8?q?RypNBaABYX/q3ESB5mVrHthTVf+866yMxoe7OT8K64CZzVVWNG7T3B/6yPqozvHNf?= =?utf-8?q?INyxijWo27lbGoAL6iMNmnx56crEKy4rBIKoWI5B/Q/PlmKjJud6cLY=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)(376014)(1800799024)(7416014)(366016)(921020)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?0hpgsH6vD9jThl8s2BM/laqeakTZ?= =?utf-8?q?ShHS1XPvYS3liXo0aiqIM1clkldfh+DUs4Ysl5ktETMJ5/2Hq+rQhSLdMuNrY8YrT?= =?utf-8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SIuy/FxDExT1EMWsKC9q7Htm6dH86hmAkFkfyNTJ+Q1EbSGp997i+EWlll?= =?utf-8?q?HiLkLCHKsBjG8iYOqnHVP/J7oFvKRnr2Pzgv/b9MHmcwWC97rXhIdhIuhae9i+Al2?= =?utf-8?q?fYhpxKC0RKxDWzManoNgNr/N5AMIDvIi5BHSEHjGW7ztSjUHdnqYTRz+3osAw432a?= =?utf-8?q?S9gP0Yl3D8tOS2mWQhMmAzba5xQhFYEgPWj2CEbtgGKMWXnYgGEAHIHmjLfb1Ge3z?= =?utf-8?q?zusP6+vBnkV/eAq9rTb5TRz9SWA1Aj3OpohLSqw55oJlZ0De4VeMr/PZd3EaCgS6V?= =?utf-8?q?TO1+du/OtuiVD0BMgYexT0mXvaC61hCGfrASFtEObMM49bqwHbUV/HLbAFdYdD9+/?= =?utf-8?q?5ZCYzzQBvGyWGbfRA+EuUlibtFb5fDGuxkAeD/XP+Ub2aGJAd11KQF4wTk2SQDqZm?= =?utf-8?q?oXWnWCjtGdxDyWJ+H+VIKFVTipQAF121nLsdshfX9mRgxWMVxWXmFMbuFA/cJNPNn?= =?utf-8?q?+egsHc4EdgvF/MUsCik/PmyySIigmhqLABiBK8Pyeb0ssGIDbYJFTwJAbMtSRFUJ9?= =?utf-8?q?53/1iKgk8GE5?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 45a3c0b3-b1dc-4dcf-6aee-08dd1a268213 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 20:58:05.0999 (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: R92AL37QBhU+oPloxhySVsSMUrNCVxTI9bfBxKBoNHXSFvEUC9X+LgSKAqofNpDuwqCz5bn56HYDbhtinoJwCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB7139 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241211_125806_930266_95D47BD3 X-CRM114-Status: GOOD ( 12.61 ) 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 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 --- change from v11 to v12 - new patch --- drivers/irqchip/irq-gic-v3-its.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index 92244cfa04647..edaae13bbd3cc 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -5126,7 +5126,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; }