PCI: add pci_request_acs
Commit ae21ee65 "PCI: acs p2p upsteram forwarding enabling" doesn't actually enable ACS. Add a function to pci core to allow an IOMMU to request that ACS be enabled. The existing mechanism of using iommu_found() in the pci core to know when ACS should be enabled doesn't actually work due to initialization order; iommu has only been detected not initialized. Have Intel and AMD IOMMUs request ACS, and Xen does as well during early init of dom0. Cc: Allen Kay <allen.m.kay@intel.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by:Chris Wright <chrisw@sous-sol.org> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- arch/x86/kernel/amd_iommu_init.c 2 additions, 0 deletionsarch/x86/kernel/amd_iommu_init.c
- arch/x86/xen/enlighten.c 5 additions, 0 deletionsarch/x86/xen/enlighten.c
- drivers/pci/dmar.c 4 additions, 1 deletiondrivers/pci/dmar.c
- drivers/pci/pci.c 13 additions, 0 deletionsdrivers/pci/pci.c
- drivers/pci/probe.c 1 addition, 4 deletionsdrivers/pci/probe.c
- include/linux/pci.h 2 additions, 0 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment