Identifying whether a pci device is x1, x4, x8 or x16
Hi all, Is there a way to find out whether a PCI device in a given Linux machine is x1, x4, x8 or x16, in terms of physical dimensions (without opening the box...) Regards, Kevin
Kevin Wilson <wkevils@gmail.com> writes:
Hi all, Is there a way to find out whether a PCI device in a given Linux machine is x1, x4, x8 or x16, in terms of physical dimensions (without opening the box...)
Sure. Use something like "lspci -vvvnn" and check out LnkCap and LnkSta under Capabilities. There you can see both the number of channels and symbol rate. For example for an x8 card in an x4 slot (connection-wise - the connector is of course wider or the x8 card wouldn't fit): LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Exit Latency L0s <512ns, L1 <4us LnkSta: Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt- Bjørn
Thanks, Bjorn! This worked for me. Is there a way that "lspci -vvvnn" will return only info about a given bdf (like 0000:02:00.0, which is what ethtool -i eth4 returns in the "bus-info" field. Regards, Kevin On Tue, Jun 14, 2016 at 4:06 PM, Bjørn Mork <bjorn@mork.no> wrote:
Kevin Wilson <wkevils@gmail.com> writes:
Hi all, Is there a way to find out whether a PCI device in a given Linux machine is x1, x4, x8 or x16, in terms of physical dimensions (without opening the box...)
Sure. Use something like "lspci -vvvnn" and check out LnkCap and LnkSta under Capabilities. There you can see both the number of channels and symbol rate.
For example for an x8 card in an x4 slot (connection-wise - the connector is of course wider or the x8 card wouldn't fit):
LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Exit Latency L0s <512ns, L1 <4us LnkSta: Speed 2.5GT/s, Width x4, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
Bjørn
Try: lshw On 2016-06-14 08:40, Kevin Wilson wrote:
Hi all, Is there a way to find out whether a PCI device in a given Linux machine is x1, x4, x8 or x16, in terms of physical dimensions (without opening the box...)
Regards, Kevin
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Thanks all! So I see in the example sent by Mork that the slot, which is represented by LnkCap, is with Speed of 5GT/s: .... LnkCap: Port #0, Speed 5GT/s, Width x8, ASPM L0s, Exit Latency L0s <512ns, L1 <4us ... Is there a way to find out whether the slot is PCI Gen 3 or PCI Gen 2 or other (there are PCI Gen 1, and not so common but I think that PCI Gen4 are arriving) ? Regards, Kevin On Wed, Jun 15, 2016 at 12:46 AM, John Chludzinski <john.chludzinski@vivaldi.net> wrote:
Try: lshw
On 2016-06-14 08:40, Kevin Wilson wrote:
Hi all, Is there a way to find out whether a PCI device in a given Linux machine is x1, x4, x8 or x16, in terms of physical dimensions (without opening the box...)
Regards, Kevin
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Bjørn Mork -
John Chludzinski -
Kevin Wilson