PCI/ACPI: Request _OSC control once for each root bridge (v3)
Move the evaluation of acpi_pci_osc_control_set() (to request control of PCI Express native features) into acpi_pci_root_add() to avoid calling it many times for the same root complex with the same arguments. Additionally, check if all of the requisite _OSC support bits are set before calling acpi_pci_osc_control_set() for a given root complex. References: https://bugzilla.kernel.org/show_bug.cgi?id=20232 Reported-by:Ozan Caglayan <ozan@pardus.org.tr> Tested-by:
Ozan Caglayan <ozan@pardus.org.tr> Signed-off-by:
Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by:
Jesse Barnes <jbarnes@virtuousgeek.org>
Showing
- drivers/acpi/apei/hest.c 9 additions, 13 deletionsdrivers/acpi/apei/hest.c
- drivers/acpi/pci_root.c 35 additions, 0 deletionsdrivers/acpi/pci_root.c
- drivers/pci/pci.h 0 additions, 8 deletionsdrivers/pci/pci.h
- drivers/pci/pcie/aer/aerdrv.c 1 addition, 0 deletionsdrivers/pci/pcie/aer/aerdrv.c
- drivers/pci/pcie/aer/aerdrv.h 0 additions, 3 deletionsdrivers/pci/pcie/aer/aerdrv.h
- drivers/pci/pcie/portdrv.h 0 additions, 3 deletionsdrivers/pci/pcie/portdrv.h
- drivers/pci/pcie/portdrv_acpi.c 4 additions, 19 deletionsdrivers/pci/pcie/portdrv_acpi.c
- include/acpi/apei.h 6 additions, 0 deletionsinclude/acpi/apei.h
- include/linux/pci-acpi.h 6 additions, 0 deletionsinclude/linux/pci-acpi.h
- include/linux/pci.h 11 additions, 0 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment