Bug 512866 - Intel GPU using xe driver not detected/displayed
Summary: Intel GPU using xe driver not detected/displayed
Status: ASSIGNED
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (other bugs)
Version First Reported In: git-stable-Plasma/6.3
Platform: CachyOS Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-02 13:00 UTC by Hunter Hardy
Modified: 2025-12-05 09:25 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot of System monitor (103.58 KB, image/png)
2025-12-02 13:00 UTC, Hunter Hardy
Details
Screenshot of nvtop (104.54 KB, image/png)
2025-12-02 13:02 UTC, Hunter Hardy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hunter Hardy 2025-12-02 13:00:48 UTC
Created attachment 187304 [details]
Screenshot of System monitor

SUMMARY
Intel discrete GPU (Arc B580) using the xe kernel driver is not detected or displayed in Plasma System Monitor's GPU information, while it works correctly in other tools.

STEPS TO REPRODUCE
1. Have an Intel GPU using the xe driver (e.g., Arc B580, Battlemage)
2. Open Plasma System Monitor or KDE Info Center
3. Look for GPU information

OBSERVED BEHAVIOR
The Intel GPU using the xe driver does not appear in the GPU listing.

EXPECTED BEHAVIOR
The GPU should be detected and displayed, similar to how it appears in nvtop and other monitoring tools.

SYSTEM INFORMATION
- Plasma 6.x / KInfoCenter 6.5.3
- Kernel: 6.17.9-2-cachyos
- GPU: Intel Arc B580 (Battlemage G21) [8086:e20b]
- Driver: xe (not i915)
- Mesa: 25.2.7

ADDITIONAL INFORMATION
The GPU is fully functional and detected by:
- lspci: Shows "VGA compatible controller: Intel Corporation Battlemage G21 [Arc B580]"
- /sys/class/drm/card0: Present with correct vendor/device IDs
- nvtop: Detects and monitors the GPU correctly
- glxinfo: Reports "Mesa Intel(R) Arc(tm) B580 Graphics"

The xe driver is the only supported driver for Battlemage GPUs - i915 cannot be used as an alternative.

It appears the GPU detection code may only look for i915/amdgpu/nvidia drivers and not the newer xe driver.

REPRODUCTION HINTS FOR DEVELOPERS

The xe driver can be identified via:
- /sys/class/drm/card*/device/uevent contains "DRIVER=xe"
- /sys/class/drm/card*/device/driver symlink points to ".../drivers/xe"

xe driver sysfs structure is similar to i915 but under a different driver path:
- /sys/bus/pci/drivers/xe/  (vs /sys/bus/pci/drivers/i915/)

The xe driver DOES expose hwmon sensors (power, temp, fan):
- /sys/class/hwmon/hwmon*/name = "xe"
- temp2_label: "pkg", temp3_label: "vram"
- energy1_label: "card", energy2_label: "pkg"
- fan1_input, fan2_input, fan3_input

Detection approach that works:
1. Enumerate /sys/class/drm/card*
2. Check /sys/class/drm/card*/device/uevent for DRIVER=
3. Accept "xe" in addition to "i915", "amdgpu", "nvidia", etc.

Affected hardware (xe driver only, no i915 fallback):
- Intel Arc B-series (Battlemage): B580, B570
- Intel Lunar Lake integrated graphics
- Future Intel discrete GPUs

The i915 driver cannot be used for these GPUs - xe is the only option.
Comment 1 Hunter Hardy 2025-12-02 13:02:12 UTC
Created attachment 187305 [details]
Screenshot of nvtop
Comment 2 David Redondo 2025-12-03 12:43:32 UTC
We dont have any code for handling xe driver indeed. I don't have a xe driver gpu so that makes development hard. ideally someone with such a gpu would contribute the code.
Comment 3 Bug Janitor Service 2025-12-05 09:25:50 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/ksystemstats/-/merge_requests/119