How to install amd-debug-tools (needs systemd-devel) on Bazzite for kernel debugging?
Hardware: HP EliteBook X G1a, AMD Ryzen AI 9 HX 375 (Strix Point)
Problem:
The symptom is that the laptop cannot be woken up from suspend.
Debugged and found that the system hangs on suspend entry when amd_pmc driver is loaded.
Current workaround is to add kargs: initcall_blacklist=amd_pmc_driver_init
I then contacted amd_pc maintainer, who requested:
Install amd-debug-tools from PyPI to collect debug logs for upstream bug report.
Now is the real issue:
amd-debug-tools requires compiling systemd Python bindings, which needs systemd-devel package.
What I tried:
â rpm-ostree layer systemd-devel â System won't boot after reboot, had to rollback
â Distrobox with systemd-devel â Can install, but can't access /sys/kernel/debug or dmesg
â Pre-compile wheel in distrobox then install on host â Script hardcoded to compile csystemd dependency itself
Question:
What's the Bazzite-recommended way to:
Install debug tools that need compilation/system headers?
OR collect amd_pmc debug data for upstream kernel bug reports?
Would appreciate any guidance on the "right way" to do kernel-level debugging on Bazzite.
Orignal message received from AMD maintainer:
Problem:
The symptom is that the laptop cannot be woken up from suspend.
Debugged and found that the system hangs on suspend entry when amd_pmc driver is loaded.
Current workaround is to add kargs: initcall_blacklist=amd_pmc_driver_init
I then contacted amd_pc maintainer, who requested:
Install amd-debug-tools from PyPI to collect debug logs for upstream bug report.
Now is the real issue:
amd-debug-tools requires compiling systemd Python bindings, which needs systemd-devel package.
What I tried:
â rpm-ostree layer systemd-devel â System won't boot after reboot, had to rollback
â Distrobox with systemd-devel â Can install, but can't access /sys/kernel/debug or dmesg
â Pre-compile wheel in distrobox then install on host â Script hardcoded to compile csystemd dependency itself
Question:
What's the Bazzite-recommended way to:
Install debug tools that need compilation/system headers?
OR collect amd_pmc debug data for upstream kernel bug reports?
Would appreciate any guidance on the "right way" to do kernel-level debugging on Bazzite.
Orignal message received from AMD maintainer:
Solution
OK LMAO, I figured out a way.
turns out this
https://github.com/superm1/amd-debug-tools/blob/master/src/launcher.py
We are so doomed. What kind of maintainer they have, bundling hard-coded gcc-12 compilation with systemd-headers when these are almost installed on every machine nowadays.:dispair:
turns out this
amd-debug-tool is just a set of damn simple scripts calling journalctl and dmesg to collects logs. I just cloned the repo and directly calls these scripts, it is working perfectly. https://github.com/superm1/amd-debug-tools/blob/master/src/launcher.py
We are so doomed. What kind of maintainer they have, bundling hard-coded gcc-12 compilation with systemd-headers when these are almost installed on every machine nowadays.:dispair:
GitHub
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/superm1/amd-debug-tools.git/ - superm1/amd-debug-tools