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)
Linux – finding PCIe lanes in linux
linuxpcipci-express
Best Answer
lspci -vv
should give you this information, look for the "Width" part in theLnkCap
section.