Skip to content

RFC generate dynamic _CRS for motherboard resources

Igor Mammedov qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest9 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Revert "pc: Q35 DSDT: exclude CPU hotplug IO range from PCI bus resources"hw/i386/acpi-dsdt-pci-crs.dsl hw/i386/acpi-dsdt.dsl hw/i386/q35-acpi-dsdt.dsl+7 -150 replies
2/9Revert "pc: PIIX DSDT: exclude CPU/PCI hotplug & GPE0 IO range from PCI bus resources"hw/i386/acpi-dsdt-pci-crs.dsl hw/i386/acpi-dsdt.dsl hw/i386/q35-acpi-dsdt.dsl+7 -410 replies
3/9Partial revert "pc: ACPI: expose PRST IO range via _CRS"hw/i386/acpi-dsdt-cpu-hotplug.dsl+0 -110 replies
4/9acpi: replace opencoded opcodes with defineshw/i386/acpi-build.c+18 -101 reply
5/9acpi: add PNP0C02 to PCI0 bushw/i386/acpi-build.c+55 -01 reply
6/9acpi: consume GPE0 IO resources in PNP0C02 devicehw/i386/acpi-build.c+62 -01 reply
7/9acpi: consume CPU hotplug IO resource in PNP0C02 devicehw/i386/acpi-build.c+10 -01 reply
8/9pcihp: expose PCI hotplug MMIO base/length as properties of piix4pmhw/acpi/pcihp.c hw/acpi/piix4.c include/hw/acpi/pcihp.h+33 -01 reply
9/9acpi: consume PCIHP IO resource in PNP0C02 devicehw/i386/acpi-build.c+22 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC 0/9] generate dynamic _CRS for motherboard resources

Since introduction of PCIHP, it became problematic to punch hole in PCI0._CRS statically since PCI hotplug region size became runtime changeable.

So replace static hole punching with dynamically consumed resources in a child device on PCI0 bus. i.e generate PNP0C02 device as a child of PCI0 bus at runtime and consume GPE0, PCI/CPU hotplug IO resources in it instead of punching holes in static PCI0._CRS.

Tested with Windows XPsp3, Vista, Windows Server 2003, 2008, 2012r2.

PS:
Series adds several ASL like macros to simplify code for dynamic generation of AML structures.

Igor Mammedov (9):
Revert "pc: Q35 DSDT: exclude CPU hotplug IO range from PCI bus
resources"
Revert "pc: PIIX DSDT: exclude CPU/PCI hotplug & GPE0 IO range from
PCI bus resources"
Partial revert "pc: ACPI: expose PRST IO range via _CRS"
acpi: replace opencoded opcodes with defines
acpi: add PNP0C02 to PCI0 bus
acpi: consume GPE0 IO resources in PNP0C02 device
acpi: consume CPU hotplug IO resource in PNP0C02 device
pcihp: expose PCI hotplug MMIO base/length as properties of piix4pm
acpi: consume PCIHP IO resource in PNP0C02 device

 hw/acpi/pcihp.c                   |   28 ++++++
 hw/acpi/piix4.c                   |    1 +
 hw/i386/acpi-build.c              |  177 ++++++++++++++++++++++++++++++++++--
 hw/i386/acpi-dsdt-cpu-hotplug.dsl |   11 ---
 hw/i386/acpi-dsdt-pci-crs.dsl     |   15 +++-
 hw/i386/acpi-dsdt.dsl             |   39 --------
 hw/i386/q35-acpi-dsdt.dsl         |   16 ----
 include/hw/acpi/pcihp.h           |    4 +
 8 files changed, 214 insertions(+), 77 deletions(-)