Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 D043C4A207F; Thu, 17 Sep 2026 17:29:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789666190; cv=none; b=eqkyrVMo5vsWJIC01xoLy7j0EwNE0SUM0+gHVXauydH79pQLVK7AeaexwuERATxKRMsNjdMtgWffUcHqH+4joAynkJo4Ydr81iiNysGJwcfWI4jwIYOmiEwBPVQD/SRkLlf62kLdDXho6YFX4imJEg1bAwOxnD79JGIzkgCxquw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789666190; c=relaxed/simple; bh=HojRRvr+x3KvboA/aUzOU7HhNDAHz7U8Y6O6fhAGqY8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=SvcKAr4FvTBIsuLTGZTMz882BzE57u1C+QmI7hg4I+LEsnKw7ZrmLPuFh6wInjbDU5yPIpDqyWOY8RHOupx/Z3fBqV3OLuNSM9zSdl5GayJ5tT22PBJCDSwzN4vtH2M5khQCAOCQVVTXgOy0oy+dPoQmoI2yzateZuP+ZPVQ/+4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tu2PBzuF; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tu2PBzuF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 330F01F000FF; Thu, 17 Sep 2026 17:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789666188; bh=BYk0eA+h55/HKKIlL9YwaKpASvyTcz1ZFLngiugiGgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=tu2PBzuFZ/x00qcO+X/3HWLXHA5tG/Kpnrhh8vSaxkMFKoo6YFuoPfZo5hM+au6A/ 91tFhWdnqjw9tTF5P4oLHKnad3r05jbia4ou1MX62Lg5cYBSF55IvBzrm2WaDMOP0u TNZ/cAaj33y+2lvZ/qCsvcVwM3Wh0bF2tprfmS24= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable@kernel.org, Shivaprasad G Bhat , Gautam Menghani , Madhavan Srinivasan Subject: [PATCH 6.18 0955/1250] powerpc: pci-ioda: Fix the stale irq chip reference Date: Thu, 17 Sep 2026 16:12:30 +0100 Message-ID: <20260917151617.904132472@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260917151551.901433442@linuxfoundation.org> References: <20260917151551.901433442@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Shivaprasad G Bhat commit d96171d911e3b89ca2957c04264019cf2f96287b upstream. The commit f0ac60e6e311 ("powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()") removed the legacy MSI irq chip pnv_pci_msi_irq_chip but left behind the static definition of it and its reference in is_pnv_opal_msi(). The KVM IRQ bypass for vfio devices is broken because the comparision in is_pnv_opal_msi() fails on the comparision with stale unused variable showing the below errors in dmesg. kvmppc_set_passthru_irq_hv: Could not assign IRQ map for (X,Y) kvmppc_set_passthru_irq (irq X, gsi Y) fails: -2 vfio-pci A:B:C.D irq bypass producer (eventfd Z) registration fails: -2 The patch removes the stale variable definition and fixes the is_pnv_opal_msi() by comparing against the chip name prefix. Fixes: f0ac60e6e311 ("powerpc/powernv/pci: Switch to use msi_create_parent_irq_domain()") Cc: stable@kernel.org Signed-off-by: Shivaprasad G Bhat Tested-by: Gautam Menghani Signed-off-by: Madhavan Srinivasan Link: https://patch.msgid.link/178716225364.1437.6201568081502251835.stgit@linux.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/platforms/powernv/pci-ioda.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -1634,15 +1634,13 @@ int64_t pnv_opal_pci_msi_eoi(struct irq_ return opal_pci_msi_eoi(phb->opal_id, d->parent_data->hwirq); } -static struct irq_chip pnv_pci_msi_irq_chip; - /* * Returns true iff chip is something that we could call * pnv_opal_pci_msi_eoi for. */ bool is_pnv_opal_msi(struct irq_chip *chip) { - return chip == &pnv_pci_msi_irq_chip; + return chip && chip->name && str_has_prefix(chip->name, "PNV-"); } EXPORT_SYMBOL_GPL(is_pnv_opal_msi); @@ -1739,7 +1737,7 @@ static const struct msi_parent_ops pnv_m .chip_flags = MSI_CHIP_FLAG_SET_EOI, .bus_select_token = DOMAIN_BUS_NEXUS, .bus_select_mask = MATCH_PCI_MSI, - .prefix = "PNV-", + .prefix = "PNV-", /* Note: is_pnv_opal_msi() uses this */ .init_dev_msi_info = pnv_init_dev_msi_info, };