ilya-zlobintsev / LACT

Linux AMDGPU Configuration Tool
MIT License
1.16k stars 30 forks source link

Debian VBIOS dump error, DebugFS not found #310

Closed knuxyl closed 5 months ago

knuxyl commented 5 months ago

Checklist

Bug description

Cannot dump the vbios. esfsprogs is installed which is the only reference to DebugFS I can find. Tried as user and root. Maybe an extra step is needed?

2024-04-23T12:26:36.008910Z  INFO lact_client: connecting to service at "/var/run/lactd.sock"
2024-04-23T12:26:42.078105Z  WARN lact_gui::app: Got error from daemon, end of client boundary

Caused by:
DebugFS not found

Screenshot from 2024-04-23 07-30-50

System info

LACT-sysfs-snapshot-20240423-072913.tar.gz

- LACT version: 0.5.4-release (commit 6dc3520)
- GPU model: AMD Radeon WX 4100
- Kernel version: 6.6.15-amd64
- Distribution: Debian Testing
ilya-zlobintsev commented 5 months ago

Could you post the output of

sudo ls -la  /sys/kernel/debug/dri/
Umio-Yasuno commented 5 months ago

@ilya-zlobintsev

/sys/kernel/debug/dri/<pci>/ was probably added from Linux Kernel v6.7.

https://github.com/ilya-zlobintsev/LACT/commit/6dc35200d73333e617e6826a0d1a5665e327a1ac#diff-f1e0455b3977cb0b446b361aedfbcb7c31be1f413b65f0dc2465dea330194655R631-R635

ilya-zlobintsev commented 5 months ago

Interesting, I did not know that the pci symlinks are new. It should probably use /sys/kernel/debug/dri/*/name to identify the right GPU for better compatibility with older kernels.

knuxyl commented 5 months ago

sudo ls -la /sys/kernel/debug/dri/

total 0
drwxr-xr-x  6 root root 0 Apr 23 07:20 .
drwx------ 46 root root 0 Apr 23 07:20 ..
drwxr-xr-x 13 root root 0 Apr 23 07:21 0
drwxr-xr-x 12 root root 0 Apr 23 07:21 1
drwxr-xr-x  2 root root 0 Apr 23 07:21 128
drwxr-xr-x  2 root root 0 Apr 23 07:21 129

My system has a Intel HD P630 integrated gpu in my Xeon W-1290T, which is why there's 2.

ilya-zlobintsev commented 5 months ago

Should be fixed with https://github.com/ilya-zlobintsev/LACT/commit/c9d708059aed5b605e0a2ee3bbb959efb23daeae You can try the test build

knuxyl commented 5 months ago

That fixed it, was able to dump "1002_67E3_vbios_dump.rom" without issue. Thanks!