qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ide: implement simple legacy/native mode switching for PCI IDE controllers
@ 2023-10-19 13:04 Mark Cave-Ayland
  2023-10-19 13:04 ` [PATCH 1/2] ide/pci.c: introduce pci_ide_update_mode() function Mark Cave-Ayland
                   ` (3 more replies)
  0 siblings, 4 replies; 15+ messages in thread
From: Mark Cave-Ayland @ 2023-10-19 13:04 UTC (permalink / raw)
  To: jsnow, qemu-block, qemu-devel, balaton, philmd, shentey

This series adds a simple implementation of legacy/native mode switching for PCI
IDE controllers and updates the via-ide device to use it.

The approach I take here is to add a new pci_ide_update_mode() function which handles
management of the PCI BARs and legacy IDE ioports for each mode to avoid exposing
details of the internal logic to individual PCI IDE controllers.

As noted in [1] this is extracted from a local WIP branch I have which contains
further work in this area. However for the moment I've kept it simple (and
restricted it to the via-ide device) which is good enough for Zoltan's PPC
images whilst paving the way for future improvements after 8.2.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>


[1] https://lists.gnu.org/archive/html/qemu-devel/2023-10/msg05403.html

Mark Cave-Ayland (2):
  ide/pci.c: introduce pci_ide_update_mode() function
  hw/ide/via: implement legacy/native mode switching

 hw/ide/pci.c         | 90 ++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/via.c         | 20 +++++++++-
 include/hw/ide/pci.h |  1 +
 3 files changed, 109 insertions(+), 2 deletions(-)

-- 
2.39.2



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

end of thread, other threads:[~2023-10-24 20:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19 13:04 [PATCH 0/2] ide: implement simple legacy/native mode switching for PCI IDE controllers Mark Cave-Ayland
2023-10-19 13:04 ` [PATCH 1/2] ide/pci.c: introduce pci_ide_update_mode() function Mark Cave-Ayland
2023-10-22 22:06   ` Bernhard Beschow
2023-10-23 17:19     ` Bernhard Beschow
2023-10-23 21:06       ` Mark Cave-Ayland
2023-10-24  7:08         ` Bernhard Beschow
2023-10-24 20:52           ` Mark Cave-Ayland
2023-10-23 18:01     ` Mark Cave-Ayland
2023-10-19 13:04 ` [PATCH 2/2] hw/ide/via: implement legacy/native mode switching Mark Cave-Ayland
2023-10-19 23:09   ` BALATON Zoltan
2023-10-23 21:56     ` Mark Cave-Ayland
2023-10-23 22:31       ` BALATON Zoltan
2023-10-19 23:14 ` [PATCH 0/2] ide: implement simple legacy/native mode switching for PCI IDE controllers BALATON Zoltan
2023-10-22 22:10 ` Bernhard Beschow
2023-10-23 18:03   ` Mark Cave-Ayland

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