`scripts/psr.py` crashes with `KeyError: 0` in `line 20, in decode_psr_support`.
When I run scripts/psr.py
on my system it crashes with
DRI device 1 DMCUB F/W version: 0x08002a81
Traceback (most recent call last):
File "/usr/bin/amd_psr-identification", line 84, in <module>
decode_psr_support(f)
File "/usr/bin/amd_psr-identification", line 20, in decode_psr_support
print("○ %s [%d]" % (PSR_SUPPORT[v], v))
~~~~~~~~~~~^^^
KeyError: 0
(instead of gracefully printing what it misses).
For system information here the output of your scripts/amd_s2idle.py --count 0 --acpidump --log /dev/null --wait 1 --duration 1
:
Debugging script for s2idle on AMD systems
💻 GPD G1619-04 (Game machining Series 28P) running BIOS 0.35 (0.35) released 09/12/2023 and EC 0.14
🐧 Artix Linux
🐧 Kernel 6.6.9-artix1-1
🔋 Battery BAT0 (Standard SR Real Battery) is operating at 102.45% of design
Checking prerequisites for s2idle
🚦Logs are provided via dmesg, timestamps may not be accurate over multiple cycles
✅ AMD Ryzen 7 7840U w/ Radeon 780M Graphics (family 19 model 74)
✅ LPS0 _DSM enabled
✅ ACPI FADT supports Low-power S0 idle
✅ HSMP driver `amd_hsmp` not detected (blocked: False)
✅ PMC driver `amd_pmc` loaded (Program 0 Firmware 76.65.0)
✅ USB4 driver `thunderbolt` loaded
✅ GPU driver `amdgpu` available
✅ System is configured for s2idle
✅ NVME Sandisk Corp PC SN740 NVMe SSD is configured for s2idle in BIOS
✅ NVME Sandisk Corp WD Black SN750 / PC SN730 NVMe SSD is configured for s2idle in BIOS
✅ GPIO driver `pinctrl_amd` available
Regards!
Edited by Drei Eck