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>
Subject: [PATCH 2/2] PCI: switchtec: Add Gen6 secure switches to NTB DMA alias quirk
Date: Tue,  3 Nov 2026 11:00:33 -0600	[thread overview]
Message-ID: <20261103170033.471034-3-logang@deltatee.com> (raw)
In-Reply-To: <20261103170033.471034-1-logang@deltatee.com>

Add the Gen6 PFXs and PSXs secure switch device IDs (48XG6 and 64XG6)
to the quirk_switchtec_ntb_dma_alias PCI fixup 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.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
---
 drivers/pci/quirks.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 7f1f47ea2ee4..691eff466d9c 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -6250,6 +6250,10 @@ SWITCHTEC_QUIRK(0x5568);  /* PAXA 68XG5 */
 SWITCHTEC_QUIRK(0x5552);  /* PAXA 52XG5 */
 SWITCHTEC_QUIRK(0x5536);  /* PAXA 36XG5 */
 SWITCHTEC_QUIRK(0x5528);  /* PAXA 28XG5 */
+SWITCHTEC_QUIRK(0x6064);  /* PFXs 64XG6 */
+SWITCHTEC_QUIRK(0x6048);  /* PFXs 48XG6 */
+SWITCHTEC_QUIRK(0x6164);  /* PSXs 64XG6 */
+SWITCHTEC_QUIRK(0x6148);  /* PSXs 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:01 UTC|newest]

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

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=20261103170033.471034-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=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®