qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Reuse TYPE_GPIO_PWR in ppce500 machine
@ 2024-10-05 10:02 Bernhard Beschow
  2024-10-05 10:02 ` [PATCH v2 1/2] MAINTAINERS: Add hw/gpio/gpio_pwr.c Bernhard Beschow
  2024-10-05 10:02 ` [PATCH v2 2/2] hw/ppc/e500: Reuse TYPE_GPIO_PWR Bernhard Beschow
  0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Beschow @ 2024-10-05 10:02 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Paolo Bonzini, Bernhard Beschow, qemu-ppc,
	qemu-arm

Just like the ARM virt machine, the ppce500 machine implements a
"gpio-poweroff"-compatible device tree node. So far, the implementations
aren't shared, and in addition, the ppce500 machine uses qemu_allocate_irq()
which leaks memory. This series fixes both by reusing TYPE_GPIO_PWR.

Testing done:
* Build qemu_ppc64_e5500_defconfig in Buildroot, run it in the ppce500 machine
  and issue the `poweroff` command. Observe that QEMU is shut down cleanly.

[1] https://github.com/shentok/qemu/tree/e500-fdt

Supersedes: 20240923101554.12900-1-shentey@gmail.com

Bernhard Beschow (2):
  MAINTAINERS: Add hw/gpio/gpio_pwr.c
  hw/ppc/e500: Reuse TYPE_GPIO_PWR

 MAINTAINERS    |  1 +
 hw/ppc/e500.c  | 16 ++++------------
 hw/ppc/Kconfig |  1 +
 3 files changed, 6 insertions(+), 12 deletions(-)

-- 
2.46.2



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

end of thread, other threads:[~2024-10-12 13:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-05 10:02 [PATCH v2 0/2] Reuse TYPE_GPIO_PWR in ppce500 machine Bernhard Beschow
2024-10-05 10:02 ` [PATCH v2 1/2] MAINTAINERS: Add hw/gpio/gpio_pwr.c Bernhard Beschow
2024-10-05 10:02 ` [PATCH v2 2/2] hw/ppc/e500: Reuse TYPE_GPIO_PWR Bernhard Beschow
2024-10-07 21:13   ` Philippe Mathieu-Daudé
2024-10-12 13:41     ` Bernhard Beschow

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).