[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 0/5] VIA PM: Implement basic ACPI support
|
From: |
Bernhard Beschow |
|
Subject: |
[PATCH v5 0/5] VIA PM: Implement basic ACPI support |
|
Date: |
Sat, 28 Oct 2023 11:16:01 +0200 |
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: 20231005115159.81202-1-shentey@gmail.com/">https://patchew.org/QEMU/20231005115159.81202-1-shentey@gmail.com/
* 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(-)
--
2.42.0