Skip to content

ACPI / PCI / PCIe: Rework _OSC handling

Rafael J. Wysocki linux-acpi linux-pm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 22 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ACPI / PCI: Make acpi_pci_run_osc() use capbuf to return the resultdrivers/acpi/pci_root.c+8 -90 replies
1/7ACPI / PCI: Make acpi_pci_run_osc() use capbuf to return the resultdrivers/acpi/pci_root.c+8 -94 replies
2/7ACPI / PCI: Introduce acpi_pci_root_osc_query()drivers/acpi/pci_root.c include/linux/acpi.h+49 -80 replies
2/7ACPI / PCI: Introduce acpi_pci_root_osc_query()drivers/acpi/pci_root.c include/linux/acpi.h+49 -84 replies
3/7PCI / PCIe: Ask BIOS for control of all native services at once (v5)Documentation/kernel-parameters.txt drivers/pci/hotplug/acpi_pcihp.c drivers/pci/hotplug/pciehp.h +15 more+191 -2320 replies
3/7PCI / PCIe: Ask BIOS for control of all native services at once (v5)Documentation/kernel-parameters.txt drivers/pci/hotplug/acpi_pcihp.c drivers/pci/hotplug/pciehp.h +15 more+191 -2324 replies
4/7PCI / PCIe: Disable PCIe port services during port initializationdrivers/pci/pcie/portdrv_core.c+26 -30 replies
4/7PCI / PCIe: Disable PCIe port services during port initializationdrivers/pci/pcie/portdrv_core.c+26 -32 replies
5/7PCI / PCIe: Remove the port driver module exit routinedrivers/pci/pcie/portdrv_pci.c+0 -74 replies
5/7PCI / PCIe: Remove the port driver module exit routinedrivers/pci/pcie/portdrv_pci.c+0 -70 replies
6/7ACPI / PCI: Do not preserve _OSC control bits returned by a querydrivers/acpi/pci_root.c include/acpi/acpi_bus.h+0 -180 replies
6/7ACPI / PCI: Do not preserve _OSC control bits returned by a querydrivers/acpi/pci_root.c include/acpi/acpi_bus.h+0 -182 replies
7/7ACPI / PCI: Reorder checks in acpi_pci_osc_control_set()drivers/acpi/pci_root.c+4 -42 replies
7/7ACPI / PCI: Reorder checks in acpi_pci_osc_control_set()drivers/acpi/pci_root.c+4 -40 replies

Reviews trailers per patch

8 of 14 patches have a Reviewed-by or Acked-by.

PatchHidetoshi Seto
1/7
1/7
2/7
2/7
3/7
3/7
4/7R-b R-b
4/7R-b R-b
5/7R-b R-b
5/7R-b R-b
6/7R-b R-b
6/7R-b R-b
7/7R-b R-b
7/7R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] ACPI / PCI / PCIe: Rework _OSC handling

Hi,

The following patchset is based on
https://patchwork.kernel.org/patch/114917/ and the comments I received on that patch. Hopefully, I took all of the comments into account.

[1/7] - Remove the last argument of acpi_pci_osc_run(); this is a cleanup, but
IMO it makes sense.

[2/7] - Introduce acpi_pci_root_osc_query() allowing the caller to get a
mask of _OSC control bits the BIOS allows the kernel to control for a given PCI root bridge.

[3/7] - Rework the PCIe port driver to request _OSC control for all serives at
once.

[4/7] - Disable PCIe port services (that might be enabled by the BIOS) during
initialization.

[5/7] - Remove the PCIe port driver modules exit function.

[6/7] - Rework acpi_pci_osc_control_set() so that it doesn't use cached
result of a query and remove the fields of struct acpi_pci_root that
aren't used any more.

[7/7] - Reorder checks in acpi_pci_osc_control_set()

Comments (and testing :-)) welcome.

Thanks,
Rafael