mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Logan Gunthorpe <logang@deltatee.com>
To: linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org,
	dmaengine@vger.kernel.org, Vinod Koul <vkoul@kernel.org>,
	Bjorn Helgaas <bhelgaas@google.com>
Cc: Frank Li <Frank.li@nxp.com>,
	Kelvin Cao <kelvin.cao@microchip.com>,
	Logan Gunthorpe <logang@deltatee.com>,
	Sashiko <sashiko-bot@kernel.org>
Subject: [PATCH 2/2] PCI: switchtec: Add Gen6 switches to NTB DMA alias quirk
Date: Tue,  3 Nov 2026 11:52:08 -0600	[thread overview]
Message-ID: <20261103175208.481170-3-logang@deltatee.com> (raw)
In-Reply-To: <20261103175208.481170-1-logang@deltatee.com>

Add the Gen6 PFXs, PSXs, PFX and PSX switch device IDs (48XG6, 64XG6,
144XG6 and 160XG6) to the quirk_switchtec_ntb_dma_alias PCI fixup
table, matching the switchtec driver's PCI ID table. Without them, DMA
transactions from these switches' NTB function are not given the
correct requester ID alias, which can misdirect them under an IOMMU.

Reported-by: Sashiko <sashiko-bot@kernel.org>
Link: https://sashiko.dev/#/patchset/20261103170033.471034-1-logang@deltatee.com?part=2
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 drivers/pci/quirks.c | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 7f1f47ea2ee4..3d92b99a4923 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6250,6 +6250,22 @@ SWITCHTEC_QUIRK(0x5568);  /* PAXA 68XG5 */
 SWITCHTEC_QUIRK(0x5552);  /* PAXA 52XG5 */
 SWITCHTEC_QUIRK(0x5536);  /* PAXA 36XG5 */
 SWITCHTEC_QUIRK(0x5528);  /* PAXA 28XG5 */
+SWITCHTEC_QUIRK(0x6060);  /* PFXs 160XG6 */
+SWITCHTEC_QUIRK(0x6044);  /* PFXs 144XG6 */
+SWITCHTEC_QUIRK(0x6064);  /* PFXs 64XG6 */
+SWITCHTEC_QUIRK(0x6048);  /* PFXs 48XG6 */
+SWITCHTEC_QUIRK(0x6160);  /* PSXs 160XG6 */
+SWITCHTEC_QUIRK(0x6144);  /* PSXs 144XG6 */
+SWITCHTEC_QUIRK(0x6164);  /* PSXs 64XG6 */
+SWITCHTEC_QUIRK(0x6148);  /* PSXs 48XG6 */
+SWITCHTEC_QUIRK(0x6260);  /* PFX 160XG6 */
+SWITCHTEC_QUIRK(0x6244);  /* PFX 144XG6 */
+SWITCHTEC_QUIRK(0x6264);  /* PFX 64XG6 */
+SWITCHTEC_QUIRK(0x6248);  /* PFX 48XG6 */
+SWITCHTEC_QUIRK(0x6360);  /* PSX 160XG6 */
+SWITCHTEC_QUIRK(0x6344);  /* PSX 144XG6 */
+SWITCHTEC_QUIRK(0x6364);  /* PSX 64XG6 */
+SWITCHTEC_QUIRK(0x6348);  /* PSX 48XG6 */
 
 #define SWITCHTEC_PCI100X_QUIRK(vid) \
 	DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_VENDOR_ID_EFAR, vid, \
-- 
2.47.3


  parent reply	other threads:[~2026-11-03 17:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-03 17:52 [PATCH 0/2] More switchtec device IDs Logan Gunthorpe
2026-11-03 17:52 ` [PATCH 1/2] dmaengine: switchtec-dma: Add Gen6 secure " Logan Gunthorpe
2026-11-03 17:52 ` Logan Gunthorpe [this message]
2026-11-03 17:57 ` [PATCH 0/2] More switchtec " Logan Gunthorpe
2026-11-03 18:34 ` Bjorn Helgaas
2026-11-03 19:44   ` Logan Gunthorpe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261103175208.481170-3-logang@deltatee.com \
    --to=logang@deltatee.com \
    --cc=Frank.li@nxp.com \
    --cc=bhelgaas@google.com \
    --cc=dmaengine@vger.kernel.org \
    --cc=kelvin.cao@microchip.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pci@vger.kernel.org \
    --cc=sashiko-bot@kernel.org \
    --cc=vkoul@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®