I wasn't sure where to post, as this could potentially fit multiple places. Hopefully this is the proper forum section.
First here is system specs:
All AMD
vm host: Debian Bullseye kernel 5.19.0-0.deb11.2-amd64, DE:Plasma/SDDM
mobo: Aorus Pro Wifi x570
cpu: Ryzen 9 5950x
gpu1: Aorus 6700xt (amdgpu)(pcie slot 1)
gpu2: FirePro w4100 2gb (radeon)(pcie slot 2)
System setup is gpu2 (w4100) for Debian Host, set to primary gpu in bios. 6700xt is for vm passthrough.
If a monitor is attached to the passed through 6700xt, sddm fails to display on the host.
I have googled various log entries but nothing seems to be particularly useful. I am only finding similar issues, and posted solutions don't work for me (e.g. for most posts people either just restart sddm or enable KMS, neither of which help)
Code:
sudo systemctl status sddm
● sddm.service - Simple Desktop Display Manager
Loaded: loaded (/lib/systemd/system/sddm.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2022-12-17 14:07:36 PST; 12min ago
Docs: man:sddm(1)
man:sddm.conf(5)
Main PID: 2366 (sddm)
Tasks: 2 (limit: 38316)
Memory: 21.6M
CPU: 40ms
CGroup: /system.slice/sddm.service
└─2366 /usr/bin/sddm
Dec 17 14:07:37 debServ sddm[2366]: Initializing...
Dec 17 14:07:37 debServ sddm[2366]: Starting...
Dec 17 14:07:37 debServ sddm[2366]: Logind interface found
Dec 17 14:07:37 debServ sddm[2366]: Adding new display on vt 7 ...
Dec 17 14:07:37 debServ sddm[2366]: Loading theme configuration from ""
Dec 17 14:07:37 debServ sddm[2366]: Display server starting...
Dec 17 14:07:37 debServ sddm[2366]: Adding cookie to "/var/run/sddm/{944eb169-2ef3-4864-a32b-c4919582dc71}"
Dec 17 14:07:37 debServ sddm[2366]: Running: /usr/bin/X -nolisten tcp -auth /var/run/sddm/{944eb169-2ef3-4864-a32b-c4919582dc71} -background none -noreset -displayfd 17 -seat seat0 vt7
Dec 17 14:07:38 debServ sddm[2366]: Failed to read display number from pipe
Dec 17 14:07:38 debServ sddm[2366]: Could not start Display server on vt 7
Code:
cat /var/log/Xorg.0.log | grep -e EE -e WW
[ 24.410] Current Operating System: Linux debServ 5.19.0-0.deb11.2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.19.11-1~bpo11+1 (2022-10-03) x86_64
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 24.502] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 24.836] (WW) Falling back to old probe method for modesetting
[ 24.843] (EE) Unable to find a valid framebuffer device
[ 24.843] (WW) Falling back to old probe method for fbdev
[ 24.843] (EE) Screen 0 deleted because of no matching config section.
[ 24.843] (EE) Screen 1 deleted because of no matching config section.
[ 24.843] (EE) Screen 1 deleted because of no matching config section.
[ 24.843] (EE)
[ 24.843] (EE) Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices
[ 24.843] (EE)
[ 24.843] (EE)
[ 24.843] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 24.843] (EE)
[ 24.856] (EE) Server terminated with error (1). Closing log file.
There is no sddm log
Code:
cat /var/log/sddm.log
I have no xorg.conf either. I tried creating one and testing it, but it didn't help.
Restarting SDDM does not work.
The 6700xt seems to be properly isolated from the host system,
Code:
lspci -nnk
0c:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [1002:73df] (rev c1)
Subsystem: Gigabyte Technology Co., Ltd Navi 22 [1458:232d]
Kernel driver in use: vfio-pci
Kernel modules: amdgpu
However, on boot, after bios is displayed, it will display grub on the monitor of the passthrough 6700xt, before running vga_switcheroo, and switching to the monitor attached to the w4100.
kernel.org says this about vga switcheroo:
Code:
vga_switcheroo is the Linux subsystem for laptop hybrid graphics. These come in two flavors:
muxed: Dual GPUs with a multiplexer chip to switch outputs between GPUs.
muxless: Dual GPUs but only one of them is connected to outputs. The other one is merely used to offload rendering, its results are copied over PCIe into the framebuffer. On Linux this is supported with DRI PRIME.
So it looks like this was originally for laptops, I assume it's not a problem though because I didn't install this explicitly, it came with other packages, and I don't see anything intended for desktop use instead of it.
Code:
inxi -G --display
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 22 driver: vfio-pci v: N/A
Device-2: Advanced Micro Devices [AMD/ATI] Cape Verde GL [FirePro W4100] driver: radeon v: kernel
Display: server: X.org 1.20.11 driver: loaded: ati,radeon unloaded: fbdev,modesetting,vesa
Message: No advanced graphics data found on this system.
Boot with nomodeset: causes to boot on passedthrough 6700xt
I have also tried different kernels with the same result:
linux-image-5.10.0-19-amd64
linux-image-6.0.0-0.deb11.2-amd64
Successful boot, with no monitor attached to 6700xt:
Code:
inxi -G
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Navi 22 driver: vfio-pci v: N/A
Device-2: Advanced Micro Devices [AMD/ATI] Cape Verde GL [FirePro W4100] driver: radeon v: kernel
Display: server: X.Org 1.20.11 driver: loaded: ati,radeon unloaded: fbdev,modesetting,vesa
resolution: 3840x2160~60Hz
OpenGL: renderer: AMD VERDE (DRM 2.50.0 5.19.0-0.deb11.2-amd64 LLVM 11.0.1) v: 4.5 Mesa 20.3.
Anyone have any ideas as to how I can get this to work? Or where else I can search for clues to fix it? Thanks!