]> git.ipfire.org Git - thirdparty/qemu.git/commit - hw/pci-host/ppc440_pcix.c
sam460ex: Fix PCI interrupts with multiple devices
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 31 Jul 2018 11:08:00 +0000 (13:08 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 1 Aug 2018 01:01:38 +0000 (11:01 +1000)
commit6484ab3dffadc79020a71376010f517d60b81b83
treec5851a2628797a459098f1e1e65652314e791747
parent1069a3c6e1176001116116629427550f138d68a4
sam460ex: Fix PCI interrupts with multiple devices

The four interrupts of the PCI bus are connected to the same UIC pin
on the real Sam460ex. Evidence for this can be found in the UBoot
source for the Sam460ex in the Sam460ex.c file where
PCI_INTERRUPT_LINE is written. Change the ppc440_pcix model to behave
more like this.

This fixes the problem that can be observed when adding further PCI
cards that got their interrupt rotated to other interrupts than PCI
INT A. In particular, the bug was observed with an additional OHCI PCI
card or an ES1370 sound device.

Signed-off-by: Sebastian Bauer <mail@sebastianbauer.info>
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Tested-by: Sebastian Bauer <mail@sebastianbauer.info>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/ppc440_pcix.c
hw/ppc/sam460ex.c