From akpm@linux-foundation.org Wed May 23 15:04:29 2007 Message-Id: <200705232150.l4NLo20f001915@shell0.pdx.osdl.net> From: Ivan Kokshaysky Subject: PCI: i386: fixup for Siemens Nixdorf AG FSC Multiprocessor Interrupt Controllers To: ak@suse.de Cc: akpm@linux-foundation.org, ink@jurassic.park.msu.ru, Wolfgang.Erig@gmx.de, cebbert@redhat.com, greg@kroah.com From: akpm@linux-foundation.org Date: Wed, 23 May 2007 14:50:02 -0700 From: Ivan Kokshaysky Wolfgang gets: PCI: Cannot allocate resource region 0 of device 0000:00:04.0 PCI: Error while updating region 0000:00:04.0/0 (a8008000 != fec08000) Note that the BAR seems to have high address bits hardwired to fec00000. And device 0000:00:04.0 is 00:04.0 System peripheral: Siemens Nixdorf AG FSC Multiprocessor Interrupt Controller (rev 02) I'd guess that when we try to reassign this resource, PCI interrupts might just stop working. This could explain SCSI timeouts and other weird things. Cc: Wolfgang Erig Cc: Chuck Ebbert Cc: Andi Kleen Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- arch/i386/pci/fixup.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/arch/i386/pci/fixup.c +++ b/arch/i386/pci/fixup.c @@ -436,3 +436,14 @@ DECLARE_PCI_FIXUP_EARLY(PCI_VENDOR_ID_CY pci_early_fixup_cyrix_5530); DECLARE_PCI_FIXUP_RESUME(PCI_VENDOR_ID_CYRIX, PCI_DEVICE_ID_CYRIX_5530_LEGACY, pci_early_fixup_cyrix_5530); + +/* + * Siemens Nixdorf AG FSC Multiprocessor Interrupt Controller: + * prevent update of the BAR0, which doesn't look like a normal BAR. + */ +static void __devinit pci_siemens_interrupt_controller(struct pci_dev *dev) +{ + dev->resource[0].flags |= IORESOURCE_PCI_FIXED; +} +DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_SIEMENS, 0x0015, + pci_siemens_interrupt_controller);