15

I have a PCIe (ver 2) linux system. I want to find out how many PCIe lanes were negotiated and are being used between my device and the host controller . (I do not know how many lanes my device supports or how many lanes the slot has)

Kyle Brandt
  • 83,619
  • 74
  • 305
  • 448
MK.
  • 305
  • 1
  • 3
  • 6

1 Answers1

17

lspci -vv should give you this information, look for the "Width" part in the LnkCap section.

Sven
  • 98,649
  • 14
  • 180
  • 226
  • 5
    Note that "LnkCap" is the capability of the slot, and "LnkSta" is the actual status of the card. I had to run this as root to get the link info. – Nattgew Nov 19 '16 at 17:02