* PCI Failed to allocate mem for PCI ROM
@ 2008-01-11 8:29 Kumar Gala
2008-01-11 8:41 ` Jiri Slaby
2008-01-11 17:50 ` Greg KH
0 siblings, 2 replies; 11+ messages in thread
From: Kumar Gala @ 2008-01-11 8:29 UTC (permalink / raw)
To: Greg KH; +Cc: linuxppc-dev list, linux-pci, LKML
Greg,
I'm getting the following message from the kernel on an embedded ppc32
system:
PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
The HW setup is a PCIe host controller and an e1000 NIC card. It
appears that pci_bus_assign_resources() is trying to call
pci_assign_resource() for the ROM and the resource for the ROM is
[100000:1fffff] where the PHB is [c0000000:dfffffff].
It seems like the resno that pci_assign_resource is getting called
with is wrong and thus pci_update_resource() doesn't get called.
any ideas?
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 8:29 PCI Failed to allocate mem for PCI ROM Kumar Gala
@ 2008-01-11 8:41 ` Jiri Slaby
2008-01-11 9:07 ` Kumar Gala
2008-01-11 17:50 ` Greg KH
1 sibling, 1 reply; 11+ messages in thread
From: Jiri Slaby @ 2008-01-11 8:41 UTC (permalink / raw)
To: Kumar Gala; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
On 01/11/2008 09:29 AM, Kumar Gala wrote:
> Greg,
>
> I'm getting the following message from the kernel on an embedded ppc32
> system:
>
> PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
>
> The HW setup is a PCIe host controller and an e1000 NIC card. It
> appears that pci_bus_assign_resources() is trying to call
> pci_assign_resource() for the ROM and the resource for the ROM is
> [100000:1fffff] where the PHB is [c0000000:dfffffff].
>
> It seems like the resno that pci_assign_resource is getting called with
> is wrong and thus pci_update_resource() doesn't get called.
>
> any ideas?
Kernel version, please.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 8:41 ` Jiri Slaby
@ 2008-01-11 9:07 ` Kumar Gala
2008-01-11 9:13 ` Jiri Slaby
0 siblings, 1 reply; 11+ messages in thread
From: Kumar Gala @ 2008-01-11 9:07 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
On Jan 11, 2008, at 2:41 AM, Jiri Slaby wrote:
> On 01/11/2008 09:29 AM, Kumar Gala wrote:
>> Greg,
>> I'm getting the following message from the kernel on an embedded
>> ppc32 system:
>> PCI: Failed to allocate mem resource #9:100000@e0000000 for
>> 0000:00:00.0
>> The HW setup is a PCIe host controller and an e1000 NIC card. It
>> appears that pci_bus_assign_resources() is trying to call
>> pci_assign_resource() for the ROM and the resource for the ROM is
>> [100000:1fffff] where the PHB is [c0000000:dfffffff].
>> It seems like the resno that pci_assign_resource is getting called
>> with is wrong and thus pci_update_resource() doesn't get called.
>> any ideas?
>
> Kernel version, please.
Sorry, its 2.6.24-rc7 + some ppc patches queued for 2.6.25
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 9:07 ` Kumar Gala
@ 2008-01-11 9:13 ` Jiri Slaby
2008-01-11 15:41 ` Kumar Gala
2008-01-11 17:49 ` Greg KH
0 siblings, 2 replies; 11+ messages in thread
From: Jiri Slaby @ 2008-01-11 9:13 UTC (permalink / raw)
To: Kumar Gala; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
On 01/11/2008 10:07 AM, Kumar Gala wrote:
>
> On Jan 11, 2008, at 2:41 AM, Jiri Slaby wrote:
>
>> On 01/11/2008 09:29 AM, Kumar Gala wrote:
>>> Greg,
>>> I'm getting the following message from the kernel on an embedded
>>> ppc32 system:
>>> PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
>>> The HW setup is a PCIe host controller and an e1000 NIC card. It
>>> appears that pci_bus_assign_resources() is trying to call
>>> pci_assign_resource() for the ROM and the resource for the ROM is
>>> [100000:1fffff] where the PHB is [c0000000:dfffffff].
>>> It seems like the resno that pci_assign_resource is getting called
>>> with is wrong and thus pci_update_resource() doesn't get called.
>>> any ideas?
>>
>> Kernel version, please.
>
> Sorry, its 2.6.24-rc7 + some ppc patches queued for 2.6.25
Could you try this patch?
http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob_plain;f=pci/pci-remove-default-pci-expansion-rom-memory-allocation.patch
Greg: is this 2.6.25 material, please? We need this for SP2.
thanks,
--
Jiri Slaby
Faculty of Informatics, Masaryk University
Suse Labs
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 9:13 ` Jiri Slaby
@ 2008-01-11 15:41 ` Kumar Gala
2008-01-11 16:52 ` Jiri Slaby
2008-01-11 17:49 ` Greg KH
1 sibling, 1 reply; 11+ messages in thread
From: Kumar Gala @ 2008-01-11 15:41 UTC (permalink / raw)
To: Jiri Slaby; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
On Jan 11, 2008, at 3:13 AM, Jiri Slaby wrote:
> On 01/11/2008 10:07 AM, Kumar Gala wrote:
>> On Jan 11, 2008, at 2:41 AM, Jiri Slaby wrote:
>>> On 01/11/2008 09:29 AM, Kumar Gala wrote:
>>>> Greg,
>>>> I'm getting the following message from the kernel on an embedded
>>>> ppc32 system:
>>>> PCI: Failed to allocate mem resource #9:100000@e0000000 for
>>>> 0000:00:00.0
>>>> The HW setup is a PCIe host controller and an e1000 NIC card. It
>>>> appears that pci_bus_assign_resources() is trying to call
>>>> pci_assign_resource() for the ROM and the resource for the ROM is
>>>> [100000:1fffff] where the PHB is [c0000000:dfffffff].
>>>> It seems like the resno that pci_assign_resource is getting
>>>> called with is wrong and thus pci_update_resource() doesn't get
>>>> called.
>>>> any ideas?
>>>
>>> Kernel version, please.
>> Sorry, its 2.6.24-rc7 + some ppc patches queued for 2.6.25
>
> Could you try this patch?
> http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob_plain;f=pci/pci-remove-default-pci-expansion-rom-memory-allocation.patch
>
> Greg: is this 2.6.25 material, please? We need this for SP2.
I saw that patch, but if you notice that its just x86 specific and I'm
having the issue on a powerpc 32-bit system.
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 15:41 ` Kumar Gala
@ 2008-01-11 16:52 ` Jiri Slaby
0 siblings, 0 replies; 11+ messages in thread
From: Jiri Slaby @ 2008-01-11 16:52 UTC (permalink / raw)
To: Kumar Gala; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
Kumar Gala napsal(a):
> I saw that patch, but if you notice that its just x86 specific and I'm
> having the issue on a powerpc 32-bit system.
My bad, sorry.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 9:13 ` Jiri Slaby
2008-01-11 15:41 ` Kumar Gala
@ 2008-01-11 17:49 ` Greg KH
1 sibling, 0 replies; 11+ messages in thread
From: Greg KH @ 2008-01-11 17:49 UTC (permalink / raw)
To: Jiri Slaby; +Cc: linuxppc-dev list, linux-pci, LKML
On Fri, Jan 11, 2008 at 10:13:23AM +0100, Jiri Slaby wrote:
> On 01/11/2008 10:07 AM, Kumar Gala wrote:
>> On Jan 11, 2008, at 2:41 AM, Jiri Slaby wrote:
>>> On 01/11/2008 09:29 AM, Kumar Gala wrote:
>>>> Greg,
>>>> I'm getting the following message from the kernel on an embedded ppc32
>>>> system:
>>>> PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
>>>> The HW setup is a PCIe host controller and an e1000 NIC card. It
>>>> appears that pci_bus_assign_resources() is trying to call
>>>> pci_assign_resource() for the ROM and the resource for the ROM is
>>>> [100000:1fffff] where the PHB is [c0000000:dfffffff].
>>>> It seems like the resno that pci_assign_resource is getting called with
>>>> is wrong and thus pci_update_resource() doesn't get called.
>>>> any ideas?
>>>
>>> Kernel version, please.
>> Sorry, its 2.6.24-rc7 + some ppc patches queued for 2.6.25
>
> Could you try this patch?
> http://git.kernel.org/?p=linux/kernel/git/gregkh/patches.git;a=blob_plain;f=pci/pci-remove-default-pci-expansion-rom-memory-allocation.patch
>
> Greg: is this 2.6.25 material, please? We need this for SP2.
Yes, this is queued up for 2.6.25, and I have no objection to adding it
for SLE10 SP2 if needed. But I think there is another patch in the
series that also goes with this, ask IBM, they know what is needed here.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 8:29 PCI Failed to allocate mem for PCI ROM Kumar Gala
2008-01-11 8:41 ` Jiri Slaby
@ 2008-01-11 17:50 ` Greg KH
2008-01-11 20:27 ` Kumar Gala
1 sibling, 1 reply; 11+ messages in thread
From: Greg KH @ 2008-01-11 17:50 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev list, linux-pci, LKML
On Fri, Jan 11, 2008 at 02:29:28AM -0600, Kumar Gala wrote:
> Greg,
>
> I'm getting the following message from the kernel on an embedded ppc32
> system:
>
> PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
>
> The HW setup is a PCIe host controller and an e1000 NIC card. It appears
> that pci_bus_assign_resources() is trying to call pci_assign_resource() for
> the ROM and the resource for the ROM is [100000:1fffff] where the PHB is
> [c0000000:dfffffff].
>
> It seems like the resno that pci_assign_resource is getting called with is
> wrong and thus pci_update_resource() doesn't get called.
>
> any ideas?
Nope, sorry, any help debugging this is appreciated, pci resource
allocation is "tricky" :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 17:50 ` Greg KH
@ 2008-01-11 20:27 ` Kumar Gala
2008-01-12 7:27 ` Grant Grundler
0 siblings, 1 reply; 11+ messages in thread
From: Kumar Gala @ 2008-01-11 20:27 UTC (permalink / raw)
To: Greg KH; +Cc: linuxppc-dev list, linux-pci, LKML
On Jan 11, 2008, at 11:50 AM, Greg KH wrote:
> On Fri, Jan 11, 2008 at 02:29:28AM -0600, Kumar Gala wrote:
>> Greg,
>>
>> I'm getting the following message from the kernel on an embedded
>> ppc32
>> system:
>>
>> PCI: Failed to allocate mem resource #9:100000@e0000000 for
>> 0000:00:00.0
>>
>> The HW setup is a PCIe host controller and an e1000 NIC card. It
>> appears
>> that pci_bus_assign_resources() is trying to call
>> pci_assign_resource() for
>> the ROM and the resource for the ROM is [100000:1fffff] where the
>> PHB is
>> [c0000000:dfffffff].
>>
>> It seems like the resno that pci_assign_resource is getting called
>> with is
>> wrong and thus pci_update_resource() doesn't get called.
>>
>> any ideas?
>
> Nope, sorry, any help debugging this is appreciated, pci resource
> allocation is "tricky" :)
I'm happy to debug, is the fact that the resno == 9 ok or does that
seem wrong?
- k
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-11 20:27 ` Kumar Gala
@ 2008-01-12 7:27 ` Grant Grundler
2008-01-12 15:12 ` Ivan Kokshaysky
0 siblings, 1 reply; 11+ messages in thread
From: Grant Grundler @ 2008-01-12 7:27 UTC (permalink / raw)
To: Kumar Gala; +Cc: Greg KH, linux-pci, LKML, linuxppc-dev list
On Fri, Jan 11, 2008 at 02:27:16PM -0600, Kumar Gala wrote:
>>> I'm getting the following message from the kernel on an embedded ppc32
>>> system:
>>>
>>> PCI: Failed to allocate mem resource #9:100000@e0000000 for 0000:00:00.0
>>>
>>> The HW setup is a PCIe host controller and an e1000 NIC card.
...
> I'm happy to debug, is the fact that the resno == 9 ok or does that seem
> wrong?
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: PCI Failed to allocate mem for PCI ROM
2008-01-12 7:27 ` Grant Grundler
@ 2008-01-12 15:12 ` Ivan Kokshaysky
0 siblings, 0 replies; 11+ messages in thread
From: Ivan Kokshaysky @ 2008-01-12 15:12 UTC (permalink / raw)
To: Grant Grundler; +Cc: linuxppc-dev list, Greg KH, linux-pci, LKML
On Sat, Jan 12, 2008 at 12:27:05AM -0700, Grant Grundler wrote:
> 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.
#10 is for cardbus bridges, IIRC.
> 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.
I believe that the setup-bus code just tried to allocate 1M ROM of some
device using prefetchable window of the bridge 0000:00:00.0. That failed,
probably because there is no MEM space left on the root bus, which is
perfectly OK. Then, the ROM might be successfully allocated in the
non-prefetchable MMIO space.
So, I don't see any problem in this situation. The only thing I could
suggest is to lower the log level in that message from KERN_ERR to
KERN_WARNING...
Ivan.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2008-01-12 15:36 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 8:29 PCI Failed to allocate mem for PCI ROM Kumar Gala
2008-01-11 8:41 ` Jiri Slaby
2008-01-11 9:07 ` Kumar Gala
2008-01-11 9:13 ` Jiri Slaby
2008-01-11 15:41 ` Kumar Gala
2008-01-11 16:52 ` Jiri Slaby
2008-01-11 17:49 ` Greg KH
2008-01-11 17:50 ` Greg KH
2008-01-11 20:27 ` Kumar Gala
2008-01-12 7:27 ` Grant Grundler
2008-01-12 15:12 ` Ivan Kokshaysky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).