Umio-Yasuno / amdgpu_top

Tool to display AMDGPU usage
MIT License
750 stars 15 forks source link

PCIe Bandwidth Usage always reports zero #34

Closed nfp0 closed 1 year ago

nfp0 commented 1 year ago

The PCIe Bandwidth Usage indicator always reports zero, even when under heavy GPU load.

My system is as follows: CPU: Ryzen 7 3700X GPU: Radeon RX 6800 Motherboard: Gigabyte B450 AORUS PRO

If any more information is needed, I'll be glad to help!

Umio-Yasuno commented 1 year ago

Could you attach the results of cat pcie_bw? pcie_bw is output to AMDGPU sysfs.

nfp0 commented 1 year ago

Not sure if this is what you wanted, but executing sudo cat /sys/class/drm/card0/device/pcie_bw outputs:

cat: /sys/class/drm/card0/device/pcie_bw: No data available

Umio-Yasuno commented 1 year ago

Ok, RDNA 1/2 GPU dose not support pcie_bw.

https://lists.freedesktop.org/archives/amd-gfx/2020-May/049649.html

For APUs, pcie_bw is not created. But for RDNA 1/2 GPU, pcie_bw is created as an invalid sysfs file.

The pcie_bw check process needs to be improved.

nfp0 commented 1 year ago

Oh I see. So there is no way to check PCIe bandwidth usage on RDNA 1/2 GPUs?

Umio-Yasuno commented 1 year ago

Oh I see. So there is no way to check PCIe bandwidth usage on RDNA 1/2 GPUs?

Probably, yes.
It seems that PCIe RX/TX performance counters have been removed on RDNA GPUs.

nfp0 commented 1 year ago

Got it! If I can help testing anything with my RDNA 2 card in the future, please ping me.