Re: PCI Failed to allocate mem for PCI ROM

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kumar Gala <galak@...>
Cc: Greg KH <greg@...>, LKML <linux-kernel@...>, linuxppc-dev list <linuxppc-dev@...>, <linux-pci@...>
Date: Saturday, January 12, 2008 - 3:27 am

On Fri, Jan 11, 2008 at 02:27:16PM -0600, Kumar Gala wrote:
...

That is fine for the Bridge. See include/linux/pci.h :
#define PCI_ROM_RESOURCE        6
#define PCI_BRIDGE_RESOURCES    7
#define PCI_NUM_RESOURCES       11

IIRC, Bridges may have two 32-bit or one 64-bit BAR, Expansion ROM BAR and
three "range" registers: IO Port, MMIO (Prefetchable and non-prefetchable).
The BRIDGE_RESOURCES (7-10) are what failed to be assigned for some reason.

Looking at setup-bus.c:pci_bridge_check_ranges(), I'm concluding that:
[7] is IO Range.
[8] is MMIO
[9] is Prefetchable MMIO
[10] no clue...maybe used by host PCI bus controllers.

0x100000 is 1MB and would be the minimum MMIO range that can be allocated.
So that looks right too. Probably need to find out what is allocating
0xe0000000 instead.

hth,
grant
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
PCI Failed to allocate mem for PCI ROM, Kumar Gala, (Fri Jan 11, 4:29 am)
Re: PCI Failed to allocate mem for PCI ROM, Greg KH, (Fri Jan 11, 1:50 pm)
Re: PCI Failed to allocate mem for PCI ROM, Kumar Gala, (Fri Jan 11, 4:27 pm)
Re: PCI Failed to allocate mem for PCI ROM, Grant Grundler, (Sat Jan 12, 3:27 am)
Re: PCI Failed to allocate mem for PCI ROM, Ivan Kokshaysky, (Sat Jan 12, 11:12 am)
Re: PCI Failed to allocate mem for PCI ROM, Jiri Slaby, (Fri Jan 11, 4:41 am)
Re: PCI Failed to allocate mem for PCI ROM, Kumar Gala, (Fri Jan 11, 5:07 am)
Re: PCI Failed to allocate mem for PCI ROM, Jiri Slaby, (Fri Jan 11, 5:13 am)
Re: PCI Failed to allocate mem for PCI ROM, Greg KH, (Fri Jan 11, 1:49 pm)
Re: PCI Failed to allocate mem for PCI ROM, Kumar Gala, (Fri Jan 11, 11:41 am)
Re: PCI Failed to allocate mem for PCI ROM, Jiri Slaby, (Fri Jan 11, 12:52 pm)