qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Implement "non 100% native mode" in via-ide
@ 2020-03-09  0:42 BALATON Zoltan
  2020-03-09  0:42 ` [PATCH v2 1/2] ide: Make room for flags in PCIIDEState and add one for legacy IRQ routing BALATON Zoltan
  2020-03-09  0:42 ` [PATCH v2 2/2] via-ide: Also emulate non 100% native mode BALATON Zoltan
  0 siblings, 2 replies; 10+ messages in thread
From: BALATON Zoltan @ 2020-03-09  0:42 UTC (permalink / raw)
  To: qemu-devel, qemu-block
  Cc: John Snow, Mark Cave-Ayland, Aleksandar Markovic, philmd,
	Artyom Tarasenko, Richard Henderson

This small series implements the quirky mode of via-ide found at least
on pegasos2 which is needed for guests that expect this and activate
work arounds on that platform and don't work unless this is emulated.
(Symptom is missing IDE interrupts.) We need a flag to turn this mode
on or off so the first patch repurposes the last remaining CMD646
specific field in PCIIDEState to allow more flags and make room for
the new legacy-irq flag there. (The CMD646 may need similar mode or
something else may need more flags in the future.) Boards using CMD646
and VIA IDE are updated for the above changes.

Tested with Linux and MorphOS on pegasos2 and a Gentoo live CD kernel
for mips_fulong2e that's the only one I could find but being beta not
sure if that fully works on real hardware. (The mips_fulong2e also
seems to have problems with pci devices so to boot Linux you need
-net none -vga none and use serial console otherwise the kernel panics.)

Regards,
BALATON Zoltan

BALATON Zoltan (2):
  ide: Make room for flags in PCIIDEState and add one for legacy IRQ
    routing
  via-ide: Also emulate non 100% native mode

 hw/alpha/dp264.c        |  2 +-
 hw/ide/cmd646.c         | 12 ++++-----
 hw/ide/via.c            | 57 +++++++++++++++++++++++++++++++++++------
 hw/mips/mips_fulong2e.c |  2 +-
 hw/sparc64/sun4u.c      |  9 ++-----
 include/hw/ide.h        |  7 ++---
 include/hw/ide/pci.h    |  7 ++++-
 7 files changed, 69 insertions(+), 27 deletions(-)

-- 
2.21.1



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

end of thread, other threads:[~2020-03-10 19:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-09  0:42 [PATCH v2 0/2] Implement "non 100% native mode" in via-ide BALATON Zoltan
2020-03-09  0:42 ` [PATCH v2 1/2] ide: Make room for flags in PCIIDEState and add one for legacy IRQ routing BALATON Zoltan
2020-03-09  0:42 ` [PATCH v2 2/2] via-ide: Also emulate non 100% native mode BALATON Zoltan
2020-03-09 16:46   ` Mark Cave-Ayland
2020-03-09 20:17     ` BALATON Zoltan
2020-03-10 18:12       ` Mark Cave-Ayland
2020-03-10 18:34         ` BALATON Zoltan
2020-03-10 19:28           ` BALATON Zoltan
2020-03-09 19:50   ` Mark Cave-Ayland
2020-03-09 20:19     ` 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).