dmidecode reporting incorrect pcie slot occupation
by timsoft from LinuxQuestions.org on (#6END4)
Hi all, I've observed that the data reported by dmidecode regarding pcie slot occupation is incorrect on my systems. I heard from the motherboard manufacturer that it seemed to be incorrect for AMD boards and correct for Intel boards.
the question
can anyone else varify this, or even better, have a fix for the incorrect values on AMD boards ?. I only have AMD based boards.
my test
The following snippet should list all slots and their usage, when run as root.
Code:dmidecode -t slot|awk '($1=="Type:") {$1="";printf("%s",$0)} ($1$2=="CurrentUsage:") {$1="";$2="";print $0}'example results
for example on one of my systems (asrock A520M PRO4 with ryzen 5600G) with slackware64 15.0 with 5.15.117 kernel running this givesQuote:
even though the physical board has 2 pci slots and 3 (pcie) m.2 slots, only one m.2 slot being used.
On an Asrock A320M-HDV with A8-9600 running slackware64 14.2 4.4.227 kernel i get Quote:
for a board with 2 pcie slots and 1 m.2 slot (non occupied)
it is obviously not a new issue, and it definitely effects all my amd pc's, running various versions of slackware.
You would think that all slots are queried by the bios on startup, so it is hard to figure out how they could be incorrect.
the question
can anyone else varify this, or even better, have a fix for the incorrect values on AMD boards ?. I only have AMD based boards.
my test
The following snippet should list all slots and their usage, when run as root.
Code:dmidecode -t slot|awk '($1=="Type:") {$1="";printf("%s",$0)} ($1$2=="CurrentUsage:") {$1="";$2="";print $0}'example results
for example on one of my systems (asrock A520M PRO4 with ryzen 5600G) with slackware64 15.0 with 5.15.117 kernel running this givesQuote:
x16 PCI Express In Use x1 PCI Express In Use x1 PCI Express In Use x1 PCI Express In Use x1 PCI Express In Use x1 PCI Express In Use |
On an Asrock A320M-HDV with A8-9600 running slackware64 14.2 4.4.227 kernel i get Quote:
x1 PCI Express In Use x16 PCI Express In Use x4 PCI Express In Use |
it is obviously not a new issue, and it definitely effects all my amd pc's, running various versions of slackware.
You would think that all slots are queried by the bios on startup, so it is hard to figure out how they could be incorrect.