]> git.hungrycats.org Git - linux/commit
[PATCH] PCI: Patch to get cpqphp working with IOAPIC
authorDely Sy <dlsy@snoqualmie.dp.intel.com>
Mon, 2 Feb 2004 04:19:50 +0000 (20:19 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 2 Feb 2004 04:19:50 +0000 (20:19 -0800)
commitab2a9ae687f2660d551d014d8d3841da15aea2fc
treef60c9cb9e39881da9a1aa75e938a5be1c96ca084
parent706c39a10d1b77519004b737ae0a2be146fce505
[PATCH] PCI: Patch to get cpqphp working with IOAPIC

Here is a patch for to get cpqphp working with IOAPIC.
My earlier statement that a kernel patch is not needed for 2.6 is
true only when ACPI is enabled.  A similar patch is needed in
pcibios_enable_irq() for 2.4 kernel and I will send it out
later.

The fix is in pirq_enable_irq().  This function is called indirectly
by pci_enable_device().  For device present during boot up, it should
get the proper dev->irq for pcibios_fixup_irqs() has been called to
get the dev->irq from MP table. If the value is still zero, then
this is properly caused by "buggy MP table".  For hot-plug device,
its dev->irq is 0 when the pci_enable_device() is called for it hasn't
gone through the fixup.  Therefore, the code (similiar to the code
in pcibios_fixup_irqs) is needed here.
arch/i386/pci/irq.c
drivers/pci/hotplug/cpqphp_ctrl.c
drivers/pci/hotplug/cpqphp_pci.c