Skip to content

VIA and general PCI IDE cleanup

Bernhard Beschow qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 0 repliesNew
  2. v16 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* Add missing Signed-off-by tag to last commit (Zoltan)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hw/ide/pci: Expose legacy interrupts as named GPIOshw/ide/pci.c+9 -00 replies
2/6hw/ide/via: Wire up IDE legacy interrupts in host devicehw/ide/via.c hw/isa/vt82c686.c+9 -20 replies
3/6hw/isa/vt82c686: Remove via_isa_set_irq()hw/isa/vt82c686.c include/hw/isa/vt82c686.h+0 -80 replies
4/6hw/ide: Extract IDEBus assignment into bmdma_init()hw/ide/cmd646.c hw/ide/pci.c hw/ide/piix.c +2 more+1 -40 replies
5/6hw/ide: Extract bmdma_status_writeb()hw/ide/cmd646.c hw/ide/pci.c hw/ide/piix.c +3 more+11 -70 replies
6/6hw/ide/piix: Move registration of VMStateDescription to DeviceClasshw/ide/piix.c+2 -30 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchMark Cave-AylandBALATON ZoltanPhilippe Mathieu-Daudé
1/6R-b
2/6R-b
3/6R-b
4/6R-b R-b R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/6] VIA and general PCI IDE cleanup

This series is split off from a more general PCI IDE refactoring aiming for a common implementation of the PCI IDE controller specification for all TYPE_PCI_IDE models [1].

The first three patches resolve a circular dependency between the VIA IDE controller and its south bridge. The next two patches resolves redundant code accross all TYPE_PCI_IDE models. The last patch modernizes VM state setup in PIIX IDE.

Testing done:
* make check
* make check-avocado
* `qemu-system-ppc -machine pegasos2 -rtc base=localtime -device \
ati-vga,guest_hwcursor=true,romfile="" -cdrom morphos-3.17.iso \
-bios pegasos2.rom`
The machine booted successfully and a startup sound was hearable
* `qemu-system-ppc -machine sam460ex -rtc base=localtime -drive \
if=none,id=cd,file=morphos-3.17.iso,format=raw -device \
ide-cd,drive=cd,bus=ide.1`
The machine booted successfully into graphical desktop environment

v2:
* Add missing Signed-off-by tag to last commit (Zoltan)

Changes since [1]:
* Turn legacy IRQs into named GPIOs (Mark)
* Don't make VIA IDE legacy IRQs routable; just wire up in host device (Zoltan)
* Rename extracted bmdma_clear_status() (Zoltan)
... to bmdma_status_writeb() (Mark)

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

Bernhard Beschow (6):
hw/ide/pci: Expose legacy interrupts as named GPIOs hw/ide/via: Wire up IDE legacy interrupts in host device hw/isa/vt82c686: Remove via_isa_set_irq()
hw/ide: Extract IDEBus assignment into bmdma_init() hw/ide: Extract bmdma_status_writeb()
hw/ide/piix: Move registration of VMStateDescription to DeviceClass

 include/hw/ide/pci.h      |  1 +
 include/hw/isa/vt82c686.h |  2 --
 hw/ide/cmd646.c           |  3 +--
 hw/ide/pci.c              | 15 +++++++++++++++
 hw/ide/piix.c             |  8 +++-----
 hw/ide/sii3112.c          |  7 ++-----
 hw/ide/via.c              |  9 +++++----
 hw/isa/vt82c686.c         | 11 +++++------
 8 files changed, 32 insertions(+), 24 deletions(-)
Signature · 1 line
2.40.1