Ricks-Lab / gpu-utils

A set of utilities for monitoring and customizing GPU performance
GNU General Public License v3.0
139 stars 23 forks source link

Wrong vendor for on-board GPU #132

Closed csecht closed 1 year ago

csecht commented 2 years ago

I just re-installed a system and now have this run configuration:

$ gpu-chk
Using rickslab-gpu-utils  3.7.7 
Using python 3.8.10
           Python version OK. 
Using Linux Kernel: 5.4.0-42-generic
           OS kernel OK. 
Using system type: systemd
           System type has been Validated. 
Using Linux distribution: Ubuntu 20.04.5 LTS
           Distro has been Validated. 
AMD: amdgpu version: 21.10-1247438
           AMD driver OK. 
python3 venv is installed
           python3-venv OK. 
rickslab-gpu-utils-env is NOT available
           rickslab-gpu-utils-env can be configured per User Guide. 
Virtual Environment not configured. Only required by developers.
Not in rickslab-gpu-utils-env, (Only needed if you want to duplicate development env)
           rickslab-gpu-utils-env can be activated per User Guide. 
Checking apt-key keyring:
           rickslab repository is not using apt-key keyring. 

Everything is working well, except gpu-utils is mis-naming the on-board Intel GPU (Card Number: 1) as AMD; all other pciid information is correct:

$ gpu-ls
Addon Package [clinfo] executable not found.  Use 'sudo apt install clinfo' to install
Detected GPUs: AMD: 2
AMD: amdgpu version: 21.10-1247438
AMD: Wattman features enabled: 0xfffd7fff
2 total GPUs, 1 rw, 0 r-only, 0 w-only

Card Number: 1
   Vendor:  AMD 
   PP Features: None
   Readable: False
   Writable: False
   Compute: Unknown
   Device ID: {'device': '0x3e91', 'subsystem_device': '0x3e91', 'subsystem_vendor': '0x1849', 'vendor': '0x8086'}
   Decoded Device ID: 8th Gen Core Processor Gaussian Mixture Model
   Card Model: Intel Corporation 8th Gen Core Processor Gaussian Mixture Model
   PCIe ID: 00:02.0
   Driver: i915
   GPU Type: Supported
   HWmon: None
   Card Path: /sys/class/drm/card1/device
   System Card Path: /sys/devices/pci0000:00/0000:00:02.0
   ##################################################
   Disabled Parameters: pp_od_clk_voltage, sclk_f_range, mclk_f_range, vddc_range

Card Number: 0
   Vendor:  AMD 
   PP Features: high: 0x00000623 low: 0xa3ddaffb
   Readable: True
   Writable: True
   Compute: Unknown
   Device ID: {'device': '0x731f', 'subsystem_device': '0xe411', 'subsystem_vendor': '0x1da2', 'vendor': '0x1002'}
   Decoded Device ID: Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT]
   ...
Ricks-Lab commented 2 years ago

Thanks for the bug report. I pushed a fix. I messed up the regex for AMD when making some recent optimizations.