Skip to contentSkip to conversation

Pcie bus enumeration and 64bit issues

DISCUSSION Ruudgoogle 2 participants 2 messages Sep 16, 2015

lore
Share & tools
lore

Ruudgoogle

author
#0 lore raw

Hello all,

For a big system i use an external pcie enclosure. Unfortunately the bios fails to properly initialise the system. As work around i plan to start the chassis after the linux kernel has booted. This leads to some other problems i would like to discuss here/get pointers to kernel code to read.

1) the chassis adds several pcie busses, i would like to reserve a range of busnumbers at the last pcie switch in the host. Something like that seems to be done for cardbus, but not for pcie switches in general. The reason is clear: allocating big chunks of busnumbers will exhaust that resource. Looking for advice!

2) For unclear reasons the linux kernel maps the 64bit bars below 4G and that range get exhausted, how can i check if a 64bit mmio pool is present/do i need to specify it manually or should the bios indicate a range? Looking for advice as well.

Ruud

#1 lore raw
Quoted 7 lines · Ruudgoogle

For a big system i use an external pcie enclosure. Unfortunately the bios fails to properly initialise the system. As work around i plan to start the chassis after the linux kernel has booted. This leads to some other problems i would like to discuss here/get pointers to kernel code to read.

1) the chassis adds several pcie busses, i would like to reserve a range of busnumbers at the last pcie switch in the host. Something like that seems to be done for cardbus, but not for pcie switches in general. The reason is clear: allocating big chunks of busnumbers will exhaust that resource. Looking for advice!

2) For unclear reasons the linux kernel maps the 64bit bars below 4G and that range get exhausted, how can i check if a 64bit mmio pool is present/do i need to specify it manually or should the bios indicate a range? Looking for advice as well.

I have one patch set that would do pci busn allocation.

So please check

git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git
for-pci-v4.3-rc1

and it also have latest resource allocation enhancement.

please post boot log with "debug ignore_loglevel" along with output from lspci -vvv
lspci -tv

Thanks

Yinghai