Skip to content

Get rid of the ACPI PCI subdriver mechanism

Jiang Liu linux-acpi linux-ia64 linux-pci lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v9 Latest16 patches 6 repliesIn review
  2. v813 patches 8 repliesSuperseded

Changes in v9 from the cover letter

Introduce kernel boot option "acpiphp.disable" to disable the acpiphp driver.

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16PCI: do not check is_added flag in pci_remove_bus()drivers/pci/remove.c+0 -30 replies
2/16pci: clean up usages of pci_bus->is_addeddrivers/pci/bus.c drivers/pci/probe.c+3 -110 replies
3/16PCI/acpiphp: use list_for_each_entry_safe() in acpiphp_sanitize_bus()drivers/pci/hotplug/acpiphp_glue.c+2 -20 replies
4/16PCI/acpiphp: don't rely on function 0 in disable_device()drivers/pci/hotplug/acpiphp_glue.c+0 -70 replies
5/16ACPI/acpiphp: replace local macros with standard ACPI macrosdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_glue.c+2 -60 replies
6/16PCI: introduce platform dependent hooks for creating/destroying PCI bussesdrivers/pci/probe.c drivers/pci/remove.c include/linux/pci.h+15 -00 replies
7/16PCI, ACPI: prepare stub functions to handle ACPI PCI (hotplug) slotsdrivers/pci/pci-acpi.c include/linux/pci-acpi.h+31 -10 replies
8/16PCI, IA64: implement pcibios_{add|remove}_bus() hooksarch/ia64/pci/pci.c+11 -00 replies
9/16PCI, x86: implement pcibios_{add|remove}_bus() hooksarch/x86/pci/common.c+11 -04 replies
10/16PCI, ACPI: handle PCI slot devices when creating/destroying PCI bussesdrivers/acpi/pci_slot.c drivers/acpi/scan.c drivers/pci/pci-acpi.c +1 more+41 -1490 replies
11/16PCI/acpiphp: convert acpiphp as a builtin driverdrivers/pci/hotplug/Kconfig drivers/pci/hotplug/acpiphp_core.c+2 -150 replies
12/16PCI/acpiphp: do not use ACPI PCI subdriver mechanismdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_core.c drivers/pci/hotplug/acpiphp_glue.c +2 more+65 -2500 replies
13/16PCI/acpiphp: use normal list to simplify implementationdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_glue.c+12 -150 replies
14/16PCI/acpiphp: protect acpiphp data structures from concurrent updatingdrivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_glue.c+78 -180 replies
15/16PCI/acpiphp: introduce a kernel option to disable the acpiphp driverDocumentation/kernel-parameters.txt drivers/pci/hotplug/acpiphp.h drivers/pci/hotplug/acpiphp_core.c +1 more+15 -10 replies
16/16PCI, ACPI: remove support of ACPI PCI subdriversdrivers/acpi/pci_root.c include/linux/acpi.h+1 -560 replies

Reviews trailers per patch

1 of 16 patches has a Reviewed-by or Acked-by.

PatchRafael J. Wysocki
1/16
2/16
3/16
4/16
5/16
6/16
7/16
8/16
9/16
10/16A-b
11/16
12/16
13/16
14/16
15/16
16/16

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

Read the v9 thread

Cover letter [PATCH v9 00/16] Get rid of the ACPI PCI subdriver mechanism

PCI, ACPI: remove ACPI PCI subdriver mechanism

This patch set is directly derived from two sources:
1) '[PATCH 00/15] PCI/ACPI: Remove "pci_root" sub-driver support' at
https://lkml.org/lkml/2012/12/7/11 from Myron Stowe
The major goal is to resolve any potential sequencing inter-dependencies by converting sub-driver functionality to being only supported as statically built-in to the kernel as part of the "pci_root" driver itself.

2) 'introduce PCI bus notifier chain to get rid of the ACPI PCI subdriver' at http://lwn.net/Articles/533547/
The major goal is to update PCI slots(pci_slot), ACPI based PCI hotplug slots(acpiphp), PCIe AER(aer) etc when hot-plugging PCI devices and P2P bridges, and eventually get rid of the ACPI PCI subdriver interfaces.

This patchset applies to Bjorn's pci-next branch. Patch 1-4 are minor fixups for 3.9-rc1. Patch 5-8 introduce two hooks into PCI core which will be called when creating/destroying PCI buses. Patch 9-12 replace ACPI PCI subdriver interfaces with the new hook mechanism for pci_slot and acpiphp. Patch 13 removes the ACPI PCI subdriver interfaces.

v7->v8:
Hook directly into the PCI core to replace pci_bus notification Remove ACPI PCI subdriver related code

v8->v9:
Introduce kernel boot option "acpiphp.disable" to disable the acpiphp driver.

Jiang Liu (13):
PCI: do not check is_added flag in pci_remove_bus()
pci: clean up usages of pci_bus->is_added
PCI/acpiphp: don't rely on function 0 in disable_device() ACPI/acpiphp: replace local macros with standard ACPI macros
PCI: introduce platform dependent hooks for creating/destroying PCI
busses
PCI, ACPI: prepare stub functions to handle ACPI PCI (hotplug) slots PCI, IA64: implement pcibios_{add|remove}_bus() hooks
PCI, x86: implement pcibios_{add|remove}_bus() hooks
PCI, ACPI: handle PCI slot devices when creating/destroying PCI
busses
PCI/acpiphp: convert acpiphp as a builtin driver PCI/acpiphp: do not use ACPI PCI subdriver mechanism PCI/acpiphp: protect acpiphp data structures from concurrent updating PCI/acpiphp: introduce a kernel option to disable the acpiphp driver

Myron Stowe (1):
PCI, ACPI: remove support of ACPI PCI subdrivers

Yijing Wang (2):
PCI/acpiphp: use list_for_each_entry_safe() in acpiphp_sanitize_bus() PCI/acpiphp: use normal list to simplify implementation

 Documentation/kernel-parameters.txt |    3 +
 arch/ia64/pci/pci.c                 |   11 +
 arch/x86/pci/common.c               |   11 +
 drivers/acpi/pci_root.c             |   48 +---
 drivers/acpi/pci_slot.c             |  170 ++------------
 drivers/acpi/scan.c                 |    1 -
 drivers/pci/bus.c                   |   11 +-
 drivers/pci/hotplug/Kconfig         |    7 +-
 drivers/pci/hotplug/acpiphp.h       |   13 +-
 drivers/pci/hotplug/acpiphp_core.c  |   29 +--
 drivers/pci/hotplug/acpiphp_glue.c  |  415 ++++++++++++-----------------------
 drivers/pci/pci-acpi.c              |   30 +++
 drivers/pci/probe.c                 |   15 +-
 drivers/pci/remove.c                |    4 +-
 include/linux/acpi.h                |    9 -
 include/linux/pci-acpi.h            |   26 +++
 include/linux/pci.h                 |    2 +
 17 files changed, 280 insertions(+), 525 deletions(-)
Signature · 1 line
1.7.9.5