Bug 474239

Summary: GPU name changes in system monitor when switching kernel.
Product: [Applications] plasma-systemmonitor Reporter: pete <hayyash>
Component: generalAssignee: KSysGuard Developers <ksysguard-bugs>
Status: CONFIRMED ---    
Severity: normal CC: ahiemstra, kde, nate, olib141, plasma-bugs-null
Priority: NOR    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description pete 2023-09-06 20:51:37 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. setup sensor in plasma-systemmonitor for gpu (my 6750 xt appeared as GPU 1) using linux-tkg-pds
2. restart into default Arch kerne and check for sensor readings.
3. restart back into linux-tkg-pds and check for sensor readings.

OBSERVED RESULT
When I boot into the vanilla Arch kernel, all my sensors go blank and I have to replace all the sensors with ones from "GPU 2" rather than "GPU 1". Its the same amd 6750xt card, standard mesa/radv drivers, and there are no other GPUs or APUs in my system.

EXPECTED RESULT
name of GPU should stay the same regardless of kernel. 

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.4
(available in About System)
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.109.0
Qt Version: 5.15.10

ADDITIONAL INFORMATION
Comment 1 pete 2023-09-06 21:00:27 UTC
I should note, linux-tkg-pds is currently at 6.4.10, whereas both the vanilla Arch kernel and linux-zen are at 6.4.12. The latter two both show the GPU name as GPU 2, while only tkg-pds shows GPU 1.
Comment 2 David Redondo 2023-09-08 06:37:10 UTC
we use the order in which the kernel reports GPUs as our order not sure what else we can do here.
Comment 3 Nate Graham 2023-09-08 16:55:24 UTC
Could we sort them by name?
Comment 4 pete 2023-09-10 16:07:35 UTC
(In reply to Nate Graham from comment #3)
> Could we sort them by name?

I think it might be card-related because my old card was listed as an RX580 in systemmonitor, whereas this new 6750XT is listed as either GPU1 or GPU2.