RFC APCI PCI Hotplug support on ARM
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest24 patches 21 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/24 | hw/pci/pcie_port: Fix pcie_slot_is_hotpluggbale_bus typohw/ | +2 | 1 reply | |
| 2/24 | hw/acpi/ged: Fix wrong identationhw/ | +5 | 1 reply | |
| 3/24 | hw/i386/acpi-build: Fix build_append_notfication_callback typohw/ | +4 | 1 reply | |
| 4/24 | hw/i386/acpi-build: Make aml_pci_device_dsm() statichw/ include/ | +1 | 0 replies | |
| 5/24 | hw/arm/virt: Introduce machine state acpi pcihp flags and propshw/ include/ | +29 | 2 replies | |
| 6/24 | hw/acpi: Rename and move build_x86_acpi_pci_hotplug to pcihphw/ hw/ hw/ +1 more | +181 | 2 replies | |
| 7/24 | hw/pci-host/gpex-acpi: Add native_pci_hotplug arg to acpi_dsdt_add_pci_oschw/ | +6 | 2 replies | |
| 8/24 | hw/pci-host/gpex-acpi: Split host bridge OSC and DSM generationhw/ | +21 | 1 reply | |
| 9/24 | hw/pci-host/gpex-acpi: Propagate hotplug type info from virt machine downto gpexhw/ hw/ include/ | +4 | 1 reply | |
| 10/24 | hw/i386/acpi-build: Turn build_q35_osc_method into a generic methodhw/ hw/ include/ | +54 | 0 replies | |
| 11/24 | hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_methoddsdt.dsl_after_osc_change hw/ | +13 | 0 replies | |
| 12/24 | hw/i386/acpi-build: Introduce build_append_pcihp_resources() helperhw/ hw/ include/ | +24 | 0 replies | |
| 13/24 | hw/acpi/pcihp: Add an AmlRegionSpace arg to build_acpi_pci_hotplughw/ hw/ include/ | +8 | 0 replies | |
| 14/24 | hw/i386/acpi-build: Move build_append_notification_callback to pcihphw/ hw/ include/ | +59 | 0 replies | |
| 15/24 | hw/i386/acpi-build: Move remaining pcihp generic functions to pcihphw/ hw/ include/ +1 more | +175 | 0 replies | |
| 16/24 | hw/i386/acpi-build: Introduce and use acpi_get_pci_hosthw/ hw/ hw/ +1 more | +28 | 0 replies | |
| 17/24 | hw/arm/virt-acpi-build: Add DSDT additions for PCI hotplughw/ hw/ hw/ +1 more | +28 | 0 replies | |
| 18/24 | hw/acpi/ged: Prepare the device to react to PCI hotplug eventshw/ include/ include/ | +21 | 2 replies | |
| 19/24 | hw/acpi/ged: Call pcihp plug callbacks in hotplug handler implementationhw/ | +20 | 0 replies | |
| 20/24 | hw/acpi/ged: Support migration of AcpiPciHpStatehw/ | +20 | 0 replies | |
| 21/24 | hw/core/sysbus: Introduce sysbus_mmio_map_name() helperhw/ include/ | +12 | 0 replies | |
| 22/24 | hw/arm/virt: Let virt support pci hotplug/unplug GED eventhw/ hw/ include/ | +32 | 0 replies | |
| 23/24 | hw/arm/virt: Plug pcihp hotplug/hotunplug callbackshw/ | +36 | 0 replies | |
| 24/24 | hw/arm/virt: Use ACPI PCI hotplug by defaulthw/ | +2 | 0 replies |
Reviews trailers per patch
8 of 24 patches have a Reviewed-by or Acked-by.
| Patch | Gustavo Romero |
|---|---|
| 1/24 | R-b |
| 2/24 | R-b |
| 3/24 | R-b |
| 4/24 | |
| 5/24 | R-b |
| 6/24 | R-b |
| 7/24 | R-b |
| 8/24 | R-b |
| 9/24 | R-b |
| 10/24 | |
| 11/24 | |
| 12/24 | |
| 13/24 | |
| 14/24 | |
| 15/24 | |
| 16/24 | |
| 17/24 | |
| 18/24 | |
| 19/24 | |
| 20/24 | |
| 21/24 | |
| 22/24 | |
| 23/24 | |
| 24/24 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [RFC 00/24] APCI PCI Hotplug support on ARM
This series enables APCI PCI hotplug/hotunplug on ARM and makes it default for 10.1 machine type. This aligns with x86 q35 machine. Expected benefits should be similar to those listed in [1].
The infrastructure used in x86 is heavily reused and a huge part of the series consists in moving code from hw/i386/acpi-build.c to a generic place and slightly adapting it to make it usable on ARM. The DSDT table is augmented to support ACPI PCI hotplug elements.
On ARM we use use a GED event to notify the OS about hotplug events.
I have not noticed any tests/qtest/bios-tables-test failures neither on x86 nor ARM. x86 DSDT table has not changed. ARM DSDT table definitively has but there are no tests impacted. ARM misses hotplug tests that do exist on x86. This most probably should be considered in the future.
Best Regards
Eric
This series can be found at:
https://github.com/eauger/qemu/tree/arm-acpi-pcihp-rfc
[1] [PATCH v6 0/6] Use ACPI PCI hot-plug for Q35
https://lore.kernel.org/all/[email protected]/
Eric Auger (24):
hw/pci/pcie_port: Fix pcie_slot_is_hotpluggbale_bus typo hw/acpi/ged: Fix wrong identation
hw/i386/acpi-build: Fix build_append_notfication_callback typo hw/i386/acpi-build: Make aml_pci_device_dsm() static hw/arm/virt: Introduce machine state acpi pcihp flags and props hw/acpi: Rename and move build_x86_acpi_pci_hotplug to pcihp hw/pci-host/gpex-acpi: Add native_pci_hotplug arg to
acpi_dsdt_add_pci_osc
hw/pci-host/gpex-acpi: Split host bridge OSC and DSM generation hw/pci-host/gpex-acpi: Propagate hotplug type info from virt machine
downto gpex
hw/i386/acpi-build: Turn build_q35_osc_method into a generic method hw/pci-host/gpex-acpi: Use build_pci_host_bridge_osc_method hw/i386/acpi-build: Introduce build_append_pcihp_resources() helper hw/acpi/pcihp: Add an AmlRegionSpace arg to build_acpi_pci_hotplug hw/i386/acpi-build: Move build_append_notification_callback to pcihp hw/i386/acpi-build: Move remaining pcihp generic functions to pcihp hw/i386/acpi-build: Introduce and use acpi_get_pci_host hw/arm/virt-acpi-build: Add DSDT additions for PCI hotplug hw/acpi/ged: Prepare the device to react to PCI hotplug events hw/acpi/ged: Call pcihp plug callbacks in hotplug handler
implementation
hw/acpi/ged: Support migration of AcpiPciHpState hw/core/sysbus: Introduce sysbus_mmio_map_name() helper hw/arm/virt: Let virt support pci hotplug/unplug GED event hw/arm/virt: Plug pcihp hotplug/hotunplug callbacks hw/arm/virt: Use ACPI PCI hotplug by default
hw/i386/acpi-build.h | 4 - include/hw/acpi/aml-build.h | 2 + include/hw/acpi/generic_event_device.h | 5 + include/hw/acpi/pci.h | 4 +- include/hw/acpi/pcihp.h | 14 + include/hw/arm/virt.h | 4 + include/hw/pci-host/gpex.h | 1 + include/hw/sysbus.h | 1 + hw/acpi/aml-build.c | 50 +++ hw/acpi/generic_event_device.c | 64 +++- hw/acpi/pci.c | 20 ++ hw/acpi/pcihp.c | 428 +++++++++++++++++++++- hw/arm/virt-acpi-build.c | 26 ++ hw/arm/virt.c | 100 +++++- hw/core/sysbus.c | 11 + hw/i386/acpi-build.c | 475 +------------------------ hw/pci-host/gpex-acpi.c | 75 +--- hw/pci/pcie_port.c | 4 +- hw/arm/Kconfig | 2 + 19 files changed, 748 insertions(+), 542 deletions(-)
Signature · 1 line
2.49.0