[PW_SID:1157159] [v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU - #2586
[PW_SID:1157159] [v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU#2586linux-riscv-bot wants to merge 1 commit into
Conversation
Mirror the ACPI IORT solution used on arm64 (see iort_enable_acs()) by scanning the RIMT table for PCIe root complex nodes during riscv_acpi_rimt_init(), which runs before ACPI PCI enumeration. If a root complex node's ID mapping points at an IOMMU node, call pci_request_acs() immediately, so pci_acs_enable is already set by the time any PCI device is scanned and pci_enable_acs() runs. Only one call to pci_request_acs() is needed regardless of how many root complexes are found, so track that with a static acs_enabled flag, same as iort_enable_acs() does. Signed-off-by: Fangyu Yu <fangyu.yu@linux.alibaba.com> Reviewed-by: Sunil V L <sunilvl@oss.qualcomm.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
|
Patch 1: "[v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU" |
PR for series 1157159 applied to workflow__riscv__fixes
Name: [v2] ACPI: RIMT: Enable PCI ACS for root complexes mapped to an IOMMU
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1157159
Version: 2