[PATCH] PCI: fix problems with MSI-X on ia64
commita0454b40ee8fac03194bb71f01730266506e75e1
authorGrant Grundler <iod00d@hp.com>
Fri, 17 Feb 2006 07:58:29 +0000 (16 23:58 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:35:14 +0000 (23 14:35 -0800)
treea746423eeeeb968bd271de17f4f8e80acac56999
parentb408cbc704352eccee301e1103b23203ba1c3a0e
[PATCH] PCI: fix problems with MSI-X on ia64

Use "unsigned long" when dealing with PCI resources.
The BAR Indicator Register (BIR) can be a 64-bit value
or the resource could be a 64-bit host physical address.

Enables ib_mthca and cciss drivers to use MSI-X on ia64 HW.
Problem showed up now because of new system firmware on one platform.
Symptom will either be memory corruption or MCA.

Second part of this patch deals with "useless" code.
We walk through the steps to find the phys_addr and then
don't use the result. I suspect the intent was to zero
out the respective MSI-X entry but I'm not sure at the moment.
Delete the code inside the #if 0/#endif if it's really
not needed.

Signed-off-by: Grant Grundler <iod00d@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/msi.c