qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v5 0/5] VIA PM: Implement basic ACPI support
@ 2023-10-28  9:16 Bernhard Beschow
  2023-10-28  9:16 ` [PATCH v5 1/5] hw/isa/vt82c686: Respect SCI interrupt assignment Bernhard Beschow
                   ` (5 more replies)
  0 siblings, 6 replies; 22+ messages in thread
From: Bernhard Beschow @ 2023-10-28  9:16 UTC (permalink / raw)
  To: qemu-devel
  Cc: BALATON Zoltan, Jiaxun Yang, Philippe Mathieu-Daudé,
	Bernhard Beschow

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/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



^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-10-30 10:44 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-28  9:16 [PATCH v5 0/5] VIA PM: Implement basic ACPI support Bernhard Beschow
2023-10-28  9:16 ` [PATCH v5 1/5] hw/isa/vt82c686: Respect SCI interrupt assignment Bernhard Beschow
2023-10-28  9:16 ` [PATCH v5 2/5] hw/isa/vt82c686: Add missing initialization of ACPI general purpose event registers Bernhard Beschow
2023-10-28  9:16 ` [PATCH v5 3/5] hw/isa/vt82c686: Reuse acpi_update_sci() Bernhard Beschow
2023-10-28 12:59   ` BALATON Zoltan
2023-10-28 15:40     ` Bernhard Beschow
2023-10-29  0:07   ` BALATON Zoltan
2023-10-29  1:07     ` Bernhard Beschow
2023-10-29  9:47       ` BALATON Zoltan
2023-10-30  9:45     ` Bernhard Beschow
2023-10-30 10:43       ` BALATON Zoltan
2023-10-28  9:16 ` [PATCH v5 4/5] hw/isa/vt82c686: Implement ACPI powerdown Bernhard Beschow
2023-10-28  9:16 ` [PATCH v5 5/5] hw/isa/vt82c686: Implement software-based SMI triggering Bernhard Beschow
2023-10-28 13:03   ` BALATON Zoltan
2023-10-28 15:44     ` Bernhard Beschow
2023-10-28 17:41       ` BALATON Zoltan
2023-10-28 12:58 ` [PATCH v5 0/5] VIA PM: Implement basic ACPI support BALATON Zoltan
2023-10-28 15:20   ` Bernhard Beschow
2023-10-28 17:47     ` BALATON Zoltan
2023-10-29  0:03       ` BALATON Zoltan
2023-10-29  1:05       ` Bernhard Beschow
2023-10-29  9:46         ` BALATON Zoltan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).