From: Bjorn Helgaas <helgaas@kernel.org>
To: Mengyuan Lou <mengyuanlou@net-swift.com>
Cc: linux-pci@vger.kernel.org, jiawenwu@trustnetic.com,
duanqiangwen@net-swift.com, linglingzhang@net-swift.com,
bhelgaas@google.com, kwilczynski@kernel.org
Subject: Re: [RESEND PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs
Date: Wed, 18 Nov 2026 09:54:03 -0600 [thread overview]
Message-ID: <20261118155403.GA565128@bhelgaas> (raw)
In-Reply-To: <20261118083222.45366-1-mengyuanlou@net-swift.com>
On Wed, Nov 18, 2026 at 04:32:22PM +0800, Mengyuan Lou wrote:
> The new Wangxun NICs do not advertise an ACS capability, but the
> hardware isolates functions on multi-function devices by directing
> peer-to-peer traffic upstream, providing behavior equivalent to
> PCI_ACS_RR and PCI_ACS_CR.
>
> Add the FF6xxx device IDs to pci_quirk_wangxun_nic_acs() so the
> functions can be placed in independent IOMMU groups.
>
> Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
Applied to pci/virtualization for v7.5, thanks for the reminder!
> ---
> drivers/pci/quirks.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
> index 7f1f47ea2ee4..e61b5c96710d 100644
> --- a/drivers/pci/quirks.c
> +++ b/drivers/pci/quirks.c
> @@ -5215,12 +5215,16 @@ static int pci_quirk_loongson_acs(struct pci_dev *dev, u16 acs_flags)
> * SFxxx 1G NICs(em).
> * RP1000/RP2000 10G NICs(sp).
> * FF5xxx 40G/25G/10G NICs(aml).
> + * FF6xxx 100G/25G/10G NICs(am).
> */
> static int pci_quirk_wangxun_nic_acs(struct pci_dev *dev, u16 acs_flags)
> {
> switch (dev->device) {
> case 0x0100 ... 0x010F: /* EM */
> case 0x1001: case 0x2001: /* SP */
> + case 0x4010: case 0x4012: case 0x4014: /* AM 10G */
> + case 0x4025: case 0x4125: case 0x4325: case 0x4425: /* AM 25G */
> + case 0x4101: case 0x4103: case 0x4105: case 0x4107: /* AM 100G */
> case 0x5010: case 0x5025: case 0x5040: /* AML */
> case 0x5110: case 0x5125: case 0x5140: /* AML */
> return pci_acs_ctrl_enabled(acs_flags,
> --
> 2.30.1
>
prev parent reply other threads:[~2026-11-18 15:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 8:32 [RESEND PATCH pci] PCI: Extend ACS quirk for Wangxun FF6XXX NICs Mengyuan Lou
2026-11-18 8:43 ` sashiko-bot
2026-11-18 15:54 ` Bjorn Helgaas [this message]
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=20261118155403.GA565128@bhelgaas \
--to=helgaas@kernel.org \
--cc=bhelgaas@google.com \
--cc=duanqiangwen@net-swift.com \
--cc=jiawenwu@trustnetic.com \
--cc=kwilczynski@kernel.org \
--cc=linglingzhang@net-swift.com \
--cc=linux-pci@vger.kernel.org \
--cc=mengyuanlou@net-swift.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.