kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* PCIe bus enumeration
@ 2015-01-22  8:46 J.Hwan Kim
  2015-01-22 11:37 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: J.Hwan Kim @ 2015-01-22  8:46 UTC (permalink / raw)
  To: kernelnewbies

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.

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

* PCIe bus enumeration
  2015-01-22  8:46 PCIe bus enumeration J.Hwan Kim
@ 2015-01-22 11:37 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2015-01-22 11:37 UTC (permalink / raw)
  To: kernelnewbies

On Thu, Jan 22, 2015 at 05:46:41PM +0900, J.Hwan Kim wrote:
> Hi,
> 
> Is there any method for assigning PCIe bus fixed?

Nope, sorry, the BIOS controls this.

> 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

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

end of thread, other threads:[~2015-01-22 11:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-22  8:46 PCIe bus enumeration J.Hwan Kim
2015-01-22 11:37 ` Greg KH

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).