Fan, Temp and GPU-Util not being reported
- Dominant language
- C++
- Stars
- 194
- Forks
- 34
- PR merge metrics
- No merged PRs in 30d
Description
```
davi@davi:~$ xpu-smi
+----------------------------------------------+----------------------------+------------------------+
| Intel XPU-SMI v2.0 Driver: 1CF0B7A60BF9DB210B10E48 Level Zero: 1.28.0 |
+----------------------------------------------+----------------------------+------------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
+----------------------------------------------+----------------------------+------------------------+
| 0 Intel(R) Arc(TM) B580 Off | 0000:09:00.0 Off | Disabled |
| Graphics | | |
| N/A N/A 35W / 190W | 11610MiB / 12216MiB | N/A Default |
+----------------------------------------------+----------------------------+------------------------+
+-------+--------+--------+------------------+-------------------------------------------------------+
| Processes: |
| GPU PID Type Process Name GPU Memory Usage |
+-------+--------+--------+------------------+-------------------------------------------------------+
| 0 6971 C ./llama-server 11584 MiB |
+-------+--------+--------+------------------+-------------------------------------------------------+
```
As you can see, Fan, Temp and GPU-Util are not being reported. When running with `sudo`, Temp and GPU-Util gets reported. The temperatures and fan speeds are reported on `/sys/class/drm/renderD128/device/hwmon/hwmon2`, being readable by normal users. It would be nice if it didnt require `sudo xpu-smi` to read those values.
xpu-smi installed from https://github.com/intel/xpumanager/releases/tag/v2.0.1
Contributor guide
Research direction
Reproduce the report with xpu-smi as a normal user and with sudo, then inspect the handling of the reported fan, temperature, and GPU-util values. Compare access to /sys/class/drm/renderD128/device/hwmon/hwmon2 and verify that these values are reported without sudo while existing output remains correct.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100