Note: The following commands should be native to the Linux OS and could be run from anywhere. The commands are case-sensitive. You may have to follow the commands with "> filename.txt" to output the text to a file for review. For Example: lspci > filename.txt
First lets figure out what the bus address of the device in question is by running the command: lspci
We can see an LSI RAID controller however the controller is not a raid controller so that is the incorrect device. The only other LSI device is listed as having a bus address "04:00.0"
Note: We can also see other devices like an Intel 82599EB 10 GB NIC listed. You can see both ports on this dual port NIC using its LUN ID of .0 or .1
At this point we have two options: Run command lspci -nv and search within it for our bus address, in this case "04:00.0"
Note: We can see the "LnkCap" with a "Width x8" and a "LnkSta" with a "Width x8" from this we can see that the device has a negotiated speed of 8x.
Or we could run command dmidecode and search within it for our bus address, in this case "04:00.0"
Note: We can see under "Designation" that the slot type accepts x16,x8, or x4. From the "Type" we can see the length of the slot as being x16.