Skip to content

VIA PM: Implement basic ACPI support

Bernhard Beschow qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 16 repliesIn review
  2. v31 patch 3 repliesSuperseded
  3. v21 patch 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch6 repliesSuperseded

Changes in v5 from the cover letter

* Implement software-based SMI triggering and handling of ACPI events based on v3

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5hw/isa/vt82c686: Respect SCI interrupt assignmenthw/isa/vt82c686.c+36 -120 replies
2/5hw/isa/vt82c686: Add missing initialization of ACPI general purpose event registershw/isa/vt82c686.c+4 -00 replies
3/5hw/isa/vt82c686: Reuse acpi_update_sci()hw/isa/vt82c686.c+2 -187 replies
4/5hw/isa/vt82c686: Implement ACPI powerdownhw/isa/vt82c686.c+14 -00 replies
5/5hw/isa/vt82c686: Implement software-based SMI triggeringhw/isa/vt82c686.c+87 -83 replies

Reviews trailers per patch

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

PatchPhilippe Mathieu-Daudé
1/5R-b
2/5
3/5
4/5
5/5

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

Read the v5 thread

Cover letter [PATCH v5 0/5] VIA PM: Implement basic ACPI support

This series is part of my work to bring the VIA south bridges to the PC machine [1]. It implements missing ACPI functionality which ACPI-aware x86 guests expect for a smooth experience. The implementation is heavily inspired by PIIX4.

Further quirks are needed in order to use the VIA south bridges in the PC machine. These were deliberately left out for a future series. The idea for now is to get the device model in shape for adding support for it in SeaBIOS.

The series is structured as follows: The first patch fixes ACPI events to be signalled by SCI interrupts. The next three patches implement typical ACPI event handling. The last patch adds software-based SMI triggering which is the mechanism used in ACPI to transition the system into ACPI mode.

Testing done:
* make check
* make check-avocado

* `qemu-system-ppc -M pegasos2 \
                   -device ati-vga,romfile="" \
                   -cdrom morphos-3.18.iso \
                   -bios pegasos2.rom`

[1] https://github.com/shentok/qemu/tree/pc-via

v5:
* Implement software-based SMI triggering and handling of ACPI events based on v3

v4:
* Alternative proposal (Zoltan)

v3: https://patchew.org/QEMU/[email protected]/
* Rename SCI irq attribute to sci_irq (Zoltan)
* Fix confusion about location of ACPI interrupt select register (Zoltan)
* Model SCI as named GPIO (Bernhard)
* Perform upcast via macro rather than sub structure selection (Bernhard)

v2:
* Introduce named constants for the ACPI interrupt select register at offset 0x42 (Phil)

Bernhard Beschow (5):
hw/isa/vt82c686: Respect SCI interrupt assignment hw/isa/vt82c686: Add missing initialization of ACPI general purpose
event registers
hw/isa/vt82c686: Reuse acpi_update_sci() hw/isa/vt82c686: Implement ACPI powerdown hw/isa/vt82c686: Implement software-based SMI triggering

 hw/isa/vt82c686.c | 179 ++++++++++++++++++++++++++++++++++++----------
 1 file changed, 142 insertions(+), 37 deletions(-)
Signature · 1 line
2.42.0