LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-29-2020, 04:56 AM   #1
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Rep: Reputation: Disabled
Query current PCIe mode/speed for a given device


Hopefully a simple question: is there a way to query what PCIe 'version' or 'mode' a device is actually using? I know lspci -vv can query what the PCIe root supports (e.g. to tell you your motherboard is 1.0 or 2.0 or what have you), but I want to query 'the other way' and see what a device (like an add-in card) is actually negotiating or using. I know the nVidia proprietary driver's 'X Server Settings' application can get this information for supported nVidia GPUs (on the 'GPU' page under 'Graphics Card Information'), but what about for other devices? (and not just GPUs)
 
Old 12-30-2020, 12:09 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
If you check your box's specs, they usually big themselves up hurling those specs at you.

There's pcie stuff in /sys/bus/ and /sys/module - have you checked them?

A thing I thought would be more informative is how many lanes the board is using. Each lane doubles the bandwith, kind of.
 
Old 12-30-2020, 03:47 PM   #3
obobskivich
Member
 
Registered: Jun 2020
Posts: 596

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If you check your box's specs, they usually big themselves up hurling those specs at you.
Yes I know - I'm not interested in the maximum spec of the motherboard (and lspci -vv seems to report that), but what is actually being negotiated by the device itself with the motherboard. For example, most modern GPUs will not run at maximum revision x maximum lanes all the time, as a power saving feature. On Windows this can be monitored directly via software (like GPU-Z), can it also be done in linux? (apart from nVidia proprietary driver with certain GeForce GPUs)

Quote:
There's pcie stuff in /sys/bus/ and /sys/module - have you checked them?
No. Do you have more specifics?

Quote:
A thing I thought would be more informative is how many lanes the board is using. Each lane doubles the bandwith, kind of.
Yes this also - each 'generation' doubles bandwidth (kind of) as well, so ideally I'd like to see both, and not just for certain nVidia cards. (In other words, what are *other* controllers using? like USB 3.0, non-nVidia GPUs, PCIe port multipliers/bridges, PCIe storage devices, etc) This is more of a 'trust but verify' kind of operation - I can find whatever the device is advertised to do independent of the machine, but what is the device actually doing?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can PCIe device driver support to read a particlualr buffer in the PCIe device with mutiple buffers? cwang_sh Linux - Hardware 3 07-02-2018 09:17 AM
LXer: Skylake-U Mini-ITX features mini-PCIe and PCIe x4 LXer Syndicated Linux News 0 08-24-2017 01:25 AM
LXer: Compact, rugged box-PC expands via PCIe and Mini-PCIe LXer Syndicated Linux News 0 02-09-2014 02:10 PM
PCIe re-enumation in linux driver question (pcie hotplug doesn't work) blavo Programming 5 08-02-2012 02:12 PM
[SOLVED] Best PCIe 2.0 graphics card for for PCIe 1.1, Pentium Dual Core system. ags1 Linux - Hardware 12 04-27-2012 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration