All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Possible regression for Heathrow (PPC), with workaround
@ 2007-01-15 18:37 Stuart Brady
  0 siblings, 0 replies; only message in thread
From: Stuart Brady @ 2007-01-15 18:37 UTC (permalink / raw)
  To: qemu-devel

Hi,

I've noticed a possible regression involving the Heathrow (PPC) machine,
caused by the PCI IRQ sharing patch commited on 2006-09-24.

The Debian Sarge (3.1) installer does not appear to run correctly since
that commit, due to lost interrupts.

(FWIW, I was following http://overselfresearch.com/kb/qemu.html)

Here is a workaround for the issue:

diff -u -r1.3 grackle_pci.c
--- hw/grackle_pci.c	24 Sep 2006 17:01:44 -0000	1.3
+++ hw/grackle_pci.c	15 Jan 2007 18:31:47 -0000
@@ -77,12 +77,14 @@
 /* Don't know if this matches real hardware, but it agrees with OHW.  */
 static int pci_grackle_map_irq(PCIDevice *pci_dev, int irq_num)
 {
-    return (irq_num + (pci_dev->devfn >> 3)) & 3;
+    /* XXX: Workaround */
+    return pci_dev->config[PCI_INTERRUPT_LINE];
 }
 
 static void pci_grackle_set_irq(void *pic, int irq_num, int level)
 {
-    heathrow_pic_set_irq(pic, irq_num + 8, level);
+    /* XXX: Workaround */
+    heathrow_pic_set_irq(pic, irq_num, level);
 }
 
 PCIBus *pci_grackle_init(uint32_t base, void *pic)
 
Cheers,
-- 
Stuart Brady

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-01-15 18:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-15 18:37 [Qemu-devel] Possible regression for Heathrow (PPC), with workaround Stuart Brady

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.