/dev/kfd unusable after gpu detach
Brief summary of the problem:
After detaching gpu with echo "0000:03:00.0" > /sys/bus/pci/drivers/amdgpu/unbind
and trying to to use rocminfo
for example, it returns error Unable to open /dev/kfd read-write: Invalid argument
.
I have also integrated gpu so it should return something. Rebinding the gpu doesn't help.
Hardware description:
- CPU: AMD Ryzen 9 7950x
- GPU: AMD Radeon 7900 XTX / AMD Radeon Raphael
- System Memory: 32GB
- Display(s): 2
- Type of Display Connection: DP,HDMI
System information:
- Distro name and Version: NixOS 24.05.20240221.0e74ca9
- Kernel version: 6.7.5-zen1
- Custom kernel: Zen
- AMD official driver version: N/A
How to reproduce the issue:
- Detach gpu
- Try to use rocminfo or blender
Log files (for system lockups / game freezes / crashes)
dmesg_unbind.txt dmesg_bind.txt rocminfo.txt rocminfo_after_unbind.txt