All of lore.kernel.org
 help / color / mirror / Atom feed
From: steven <steven_ygui@163.com>
To: linux-pci@vger.kernel.org
Subject: does dtb not support pci acs enable?
Date: Fri, 19 Jul 2024 23:01:11 +0800 (CST)	[thread overview]
Message-ID: <429b2adf.a5a3.190cb82e4ae.Coremail.steven_ygui@163.com> (raw)

Hello,

I am a new person in PCI, I am trying to do something for iommu group on arm64 platform, I found if I boot the linux (5.10 kernel) kernel using UEFI + ACPI, it will work correctly. But if I boot it using UEFI + DTB, the iommu group not work, only one group present.

I read the code, found that pci_acs_enable is set to 1 during acpi_init, but I can not find any code for dtb booting, so it will return "disable_acs_redir " during call pci_enable_acs. 
static void pci_enable_acs(struct pci_dev *dev)
{
    if (!pci_acs_enable)
        goto disable_acs_redir;

    if (!pci_dev_specific_enable_acs(dev))
        goto disable_acs_redir;

    pci_std_enable_acs(dev);




SO, is it not support in dtb?


             reply	other threads:[~2024-07-19 15:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-19 15:01 steven [this message]
2024-08-01 23:43 ` does dtb not support pci acs enable? Bjorn Helgaas
2024-08-02  0:00   ` Bjorn Helgaas
2024-08-05 13:40     ` Will Deacon
2024-08-06 15:56     ` Robin Murphy

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=429b2adf.a5a3.190cb82e4ae.Coremail.steven_ygui@163.com \
    --to=steven_ygui@163.com \
    --cc=linux-pci@vger.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 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.