2nd monitor/gpu crashes system, maybe a kernel bug?
by TheEzekielProject from LinuxQuestions.org on (#5HYBJ)
Hello, thanks for reading. I am having trouble getting Arch to work with a 2nd gpu and monitor. If I try to enable the second display, it crashes the system. I have KDE and LXQT desktop environments installed.
Mobo: Asus B550-f
cpu: Ryzen 3600xt
gpu #1: XFX RX 5700xt
gpu #2: Visiontek Radeon 5450 2gb
As soon as the second monitor is plugged into gpu #2, the screen on monitor #1 goes black, with a mouse cursor that won't move. I am unable to change tty, and it doesn't respond to magic sysrq keys either. Unplugging the monitor does not fix it, and I have to hard reset.
Each gpu works fine on its own, when the other isn't installed, but I can't get them both working together on Arch. Ubuntu handles both gpu's/monitors without any manual configuration so I know it can work.
The only errors I find in the Xorg logs are (EE) AMDGPU(G0): amdgpu_device_initialize failed
and (EE) AMDGPU(0): Failed to make import prime FD as pixmap: 22. But those same errors occur in ubuntu, which is able to use both monitors and gpu's without issue. And I don't see anything in journalctl that looks relevant so I think it's happening so fast no logs are made or written to.
The freezes happen with kernel versions: 5.12.3-arch1-1, 5.12.4-arch1-2. But it DOES NOT happen with LTS kernel 5.10.37-1-lts. Any ideas how I can go about diagnosing exactly? Or getting any more useful information? Any help is appreciated


Mobo: Asus B550-f
cpu: Ryzen 3600xt
gpu #1: XFX RX 5700xt
gpu #2: Visiontek Radeon 5450 2gb
As soon as the second monitor is plugged into gpu #2, the screen on monitor #1 goes black, with a mouse cursor that won't move. I am unable to change tty, and it doesn't respond to magic sysrq keys either. Unplugging the monitor does not fix it, and I have to hard reset.
Each gpu works fine on its own, when the other isn't installed, but I can't get them both working together on Arch. Ubuntu handles both gpu's/monitors without any manual configuration so I know it can work.
The only errors I find in the Xorg logs are (EE) AMDGPU(G0): amdgpu_device_initialize failed
and (EE) AMDGPU(0): Failed to make import prime FD as pixmap: 22. But those same errors occur in ubuntu, which is able to use both monitors and gpu's without issue. And I don't see anything in journalctl that looks relevant so I think it's happening so fast no logs are made or written to.
The freezes happen with kernel versions: 5.12.3-arch1-1, 5.12.4-arch1-2. But it DOES NOT happen with LTS kernel 5.10.37-1-lts. Any ideas how I can go about diagnosing exactly? Or getting any more useful information? Any help is appreciated