Skip to contentSkip to conversation

PCIe bus enumeration

DISCUSSION J.Hwan Kim 2 participants 2 messages Jan 22, 2015

lore
Share & tools
lore

J.Hwan Kim

author
#0 lore raw

Hi,

Is there any method for assigning PCIe bus fixed?

For example, my device pcie bus number is changed
when another pcie device is inserted.

I have a 4 same pcie device and i want to identify each device according to the pci bus number (according to pcie slot they are inserted into).

When i change kernel boot parameter for kernel to assign the pci bus number, the result was the same.

Is there any method for that?

Thanks in advance.

Regards,
J.Hwan Kim.

#1 lore raw
Quoted 3 lines · J.Hwan Kim

Hi,

Is there any method for assigning PCIe bus fixed?

Nope, sorry, the BIOS controls this.

Quoted 6 lines

For example, my device pcie bus number is changed
when another pcie device is inserted.

I have a 4 same pcie device and i want to identify each device according to the pci bus number (according to pcie slot they are inserted into).

Then use the slot attribute, if your BIOS supports that. If it doesn't, then there's nothing you can do, pci ids can be randomly assigned, and you should never make any assumptions based on them. I had a bios that would change the order every other boot, was great for testing things like this out.

sorry,

greg k-h