[PATCH] PPC: PCI: Fix pcibios_io_space_offset() so it works for 32-bit ptr/64-bit rsrcs

Ben Collins ben.c at servergy.com
Fri Jun 8 01:38:59 EST 2012


On Jun 7, 2012, at 5:30 AM, Benjamin Herrenschmidt wrote:

> On Wed, 2012-06-06 at 19:35 -0400, Ben Collins wrote:
>> 
>> pci_bus 0000:00: root bus resource [io  0xffbed000-0xffbfcfff] (bus
>> address [0x100000000-0x10000ffff])
>> 
>> Without the fix that I sent, it ends up looking like:
>> 
>> pci_bus 0000:00: root bus resource [io  0xffbed000-0xffbfcfff] (bus
>> address [0x0000-0xffff])
>> 
>> And that's when some devices fail to be assigned valid bar 0's and the
>> kernel complains because of it.
> 
> Note that oddly, the second range of bus addresses looks -more- correct
> than the first one...

Except that the first one is exactly the same bus address as my bare metal system:

pci_bus 0000:00: root bus resource [io  0xffbeb000-0xffbfafff] (bus address [0x100000000-0x10000ffff])

I only have one PCIe RAID card on the bare metal system. Not surprising I never noticed the problem on it directly.

> Cheers,
> Ben.
> 
> 

--
Ben Collins
Servergy, Inc.
(757) 243-7557

CONFIDENTIALITY NOTICE: This communication contains privileged and/or confidential information; and should be maintained with the strictest confidence. It is intended solely for the use of the person or entity in which it is addressed. If you are not the intended recipient, you are STRICTLY PROHIBITED from disclosing, copying, distributing or using any of this information. If you received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy.



More information about the Linuxppc-dev mailing list