All of lore.kernel.org
 help / color / mirror / Atom feed
* PCI Out of Resources
@ 2015-04-14  1:00 moussa ba
  2015-04-14 13:05 ` Bjorn Helgaas
  0 siblings, 1 reply; 6+ messages in thread
From: moussa ba @ 2015-04-14  1:00 UTC (permalink / raw)
  To: linux-pci

I am working on a system that has 20 PCie cards conencted via a series
of PCi-Switches. While booting, the BIOS complains after 11 cards that
it ran out of resources. Despite that, we are able to properly see all
devices up to 16 devices once the OS boots.

I am running centos 7 with a 3.10 kernel.

Interestingly enough, we are able to see all devices under lspci, but
the 4 missing devices have no memory allocated to any of the BAR
spaces.

My understanding is that we can allocate that memory via setpci.

A working device looks as follows under lspci:

9a:00.0 Mass storage controller: *******
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr-
Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0
Interrupt: pin A routed to IRQ 139
Region 2: Memory at fbb02000 (32-bit, non-prefetchable) [size=4K]
Region 3: Memory at fbb03000 (32-bit, non-prefetchable) [size=4K]
Region 4: I/O ports at c000 [size=16]
Region 5: Memory at fbb00000 (32-bit, non-prefetchable) [size=8K]
Capabilities: [40] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited




A missing device looks as follows:

05:00.0 Mass storage controller: *******
        Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
<TAbort- <MAbort- >SERR- <PERR- INTx-
        Interrupt: pin A routed to IRQ 26
        Region 4: I/O ports at 0000
        Capabilities: [40] Express (v2) Endpoint, MSI 00




I was going to simply use:
#setpci -s 0000:05:00.0 BASE_MEMORY_ADDRESS_2=0x..........

Unfortunately I end up with a <ignored> message under lspci.  How do I
determine the appropriate address to use to properly assign the
resources (I have been looking at /proc/iomem)


Thank you

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-15  0:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14  1:00 PCI Out of Resources moussa ba
2015-04-14 13:05 ` Bjorn Helgaas
2015-04-14 13:58   ` Bjorn Helgaas
2015-04-14 21:43     ` moussa ba
2015-04-14 22:23       ` Bjorn Helgaas
2015-04-15  0:31         ` moussa ba

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.