All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Fix IRQ routing in via south bridge
@ 2023-10-28 23:56 BALATON Zoltan
  2023-10-28 23:56 ` [PATCH 1/4] hw/isa/vt82c686: Bring back via_isa_set_irq() BALATON Zoltan
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: BALATON Zoltan @ 2023-10-28 23:56 UTC (permalink / raw)
  To: qemu-devel; +Cc: philmd, Jiaxun Yang, Bernhard Beschow, vr_qemu

This is going back to my otiginal proposal in
https://patchew.org/QEMU/cover.1677004414.git.balaton@eik.bme.hu/
implementing routing of interrupts from device functions and PCI
devices to ISA interrupts. On pegasos2 the firmware sets evertyhing to
share IRQ 9 so the current simpified version worked for taht but with
the amigaone machine its firmware makes use of this feature and
assigns different interrupts to functions and PCI devices so we need
to properly impelent this. Since any ISA interrupt can be controlled
by any interrupt source (different functions of the multifunction
device plus the 4 input pins from PCI devices) there are more than 4
possible sources so this can't be handled by just the 4 PCI interrupt
lines. We need to keep track of the state of each interrupt source to
be able to determine the level of the ISA interrupt and avoid one
device clearing it while other still has an interrupt.

This fixes USB on amigaone and maybe other bugs not discovered yet.

Regards,
BALATON Zoltan

BALATON Zoltan (4):
  hw/isa/vt82c686: Bring back via_isa_set_irq()
  hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts
  hw/isa/vt82c686: Route PIRQ inputs using via_isa_set_irq()
  hw/audio/via-ac97: Route interrupts using via_isa_set_irq()

 hw/audio/via-ac97.c        |  8 ++---
 hw/isa/vt82c686.c          | 67 +++++++++++++++++++++++---------------
 hw/usb/vt82c686-uhci-pci.c |  9 +++++
 include/hw/isa/vt82c686.h  |  2 ++
 4 files changed, 56 insertions(+), 30 deletions(-)

-- 
2.30.9



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

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

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-28 23:56 [PATCH 0/4] Fix IRQ routing in via south bridge BALATON Zoltan
2023-10-28 23:56 ` [PATCH 1/4] hw/isa/vt82c686: Bring back via_isa_set_irq() BALATON Zoltan
2023-10-28 23:56 ` [PATCH 2/4] hw/usb/vt82c686-uhci-pci: Use ISA instead of PCI interrupts BALATON Zoltan
2023-10-28 23:56 ` [PATCH 3/4] hw/isa/vt82c686: Route PIRQ inputs using via_isa_set_irq() BALATON Zoltan
2023-10-28 23:56 ` [PATCH 4/4] hw/audio/via-ac97: Route interrupts " BALATON Zoltan
2023-10-29 11:28 ` [PATCH 0/4] Fix IRQ routing in via south bridge Bernhard Beschow
2023-10-29 11:35   ` BALATON Zoltan
2023-10-30  9:49     ` Bernhard Beschow
2023-10-29 12:43 ` Mark Cave-Ayland
2023-10-29 13:45   ` BALATON Zoltan
2023-10-30 20:30     ` Mark Cave-Ayland
2023-10-30 21:57       ` BALATON Zoltan
2023-10-31 19:45         ` Mark Cave-Ayland
2023-10-31 20:56           ` BALATON Zoltan
2023-10-31 22:30             ` BALATON Zoltan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.