Skip to content

RFC hw/i386: Factor out PXB parts of DSDT into an SSDT table

Jonathan Cameron via qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/acpi: Make Aml and / or crs_range_set optional in build_crshw/acpi/aml-build.c hw/i386/acpi-build.c hw/pci-host/gpex-acpi.c +1 more+51 -380 replies
2/4tests/acpi: Allow changes to DSDT.cxl/viot and SSDT.cxl/viottests/data/acpi/q35/SSDT.cxl tests/data/acpi/q35/SSDT.viot tests/qtest/bios-tables-test-allowed-diff.h+4 -00 replies
3/4hw/i386/acpi: Separate PXB related parts of DSDT into an SSDT table.hw/i386/acpi-build.c+160 -900 replies
4/4tests/acpi: Updated DSDT and SSDT due to move of PXB info to SSDTtests/data/acpi/q35/DSDT.cxl tests/data/acpi/q35/DSDT.viot tests/data/acpi/q35/SSDT.cxl +2 more+0 -40 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/4] hw/i386: Factor out PXB parts of DSDT into an SSDT table

Michael Tsirkin raised that we have recently had churn in the bios-tables-test and perhaps it was worth factoring some parts of DSDT out as SSDT files. This is an attempt to do that for the entries from pxb-pcie and pxb-cxl PCI root bridges.

The main PCI root bridge and related elements are left in DSDT as they are present in many more tests than PXB. However things brings some complexity as some of the DSDT parts are then dependent on building up information whilst creating the PXB entries. The ordering constraints of RSDT entries prevent easily generating the new SSDT table first (see patch 3)

This series works around that by separating that build up of information from the build up of the PXB parts of the SSDT. That allows the tables to be build in the standard order, based on knowledge that the SSDT parts will definitely be built later.

Personally, having tried this, I'm not convinced that the advantages of simplifying updates to the test data justify the complexity increase needed. However I will add that I have a series adding CXL QTG DSM support form Dave Jiang in my tree that will only result in updates to SSDT.cxl after this patch rather than DSDT.cxl reducing chance of a clash with other changes in flight. Hence this is an RFC to find out if people think this is a good direction to go in.

https://lore.kernel.org/qemu-devel/[email protected]/

Jonathan Cameron (4):
hw/acpi: Make Aml and / or crs_range_set optional in build_crs tests/acpi: Allow changes to DSDT.cxl/viot and SSDT.cxl/viot hw/i386/acpi: Separate PXB related parts of DSDT into an SSDT table. tests/acpi: Updated DSDT and SSDT due to move of PXB info to SSDT

 hw/acpi/aml-build.c           |  75 +++++-----
 hw/i386/acpi-build.c          | 249 ++++++++++++++++++++++------------
 hw/pci-host/gpex-acpi.c       |   5 +-
 include/hw/acpi/aml-build.h   |   4 +-
 tests/data/acpi/q35/DSDT.cxl  | Bin 9673 -> 8474 bytes
 tests/data/acpi/q35/DSDT.viot | Bin 9470 -> 8429 bytes
 tests/data/acpi/q35/SSDT.cxl  | Bin 0 -> 1235 bytes
 tests/data/acpi/q35/SSDT.viot | Bin 0 -> 1077 bytes
 8 files changed, 208 insertions(+), 125 deletions(-)
 create mode 100644 tests/data/acpi/q35/SSDT.cxl
 create mode 100644 tests/data/acpi/q35/SSDT.viot
Signature · 1 line
2.37.2