LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-17-2022, 06:08 PM   #1
angryJellyBean
LQ Newbie
 
Registered: Jul 2021
Posts: 15

Rep: Reputation: Disabled
sddm fails to display (on host) if a monitor is connected to pci passthrough gpu


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!
 
Old 12-17-2022, 10:28 PM   #2
angryJellyBean
LQ Newbie
 
Registered: Jul 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
I have been googling and it looks like grub is supposed to follow the bios, but it does not for me. Maybe this is a bug in my mobo firmware? I am on F35, and the only later bioses on gigagbytes website are beta so I am hesitant to try them. In the meantime, I have been googling for other workarounds, none of which have worked so far.

Forcing the grub graphics mode in /etc/default/grub with
Code:
GRUB_GFXMODE=3840x2160x32
GRUB_GFXPAYLOAD_LINUX=keep
or just
Code:
GRUB_GFXPAYLOAD_LINUX=3840x2160x32
which was suggested in a post where someone was trying to force which screen was primary and the monitors have different resolutions. My monitors are also different resolutions, however this didn't work.

Either have any various video= parameters. I'll keep trying and post any updates
 
Old 12-18-2022, 12:54 AM   #3
angryJellyBean
LQ Newbie
 
Registered: Jul 2021
Posts: 15

Original Poster
Rep: Reputation: Disabled
I managed to get it working by enabling CSM in my bios settings. Now everything is working properly
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SDDM has only 1 screen and non-SDDM has both screens. Why? kevinbenko Linux - Newbie 4 12-17-2022 07:27 AM
sddm not starting / Auth: sddm-helper exited with 6 (or 11) wael_h Slackware 2 07-11-2021 12:02 PM
KVM GPU Passthrough won't work marthakaber Linux - Software 1 08-04-2015 05:08 PM
[SOLVED] PCI sata card not working when pci wifi card connected. Boot fails (HDD not found) tessx Linux - Hardware 3 01-16-2012 03:29 AM
PCI Passthrough with KVM fails martdj Linux - Virtualization and Cloud 5 02-01-2010 08:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration