Bug 2224326

Summary: No Text mode Virtul Terminal / boot messages on NVIDIA card if vfio-pci loaded
Product: [Fedora] Fedora Reporter: maverick.pt
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 37CC: acaringi, adscvr, airlied, alciregi, bskeggs, garrett.mitchener, hdegoede, hpa, jarodwilson, josef, kernel-maint, lgoncalv, linville, masami256, mchehab, ptalbert, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description maverick.pt 2023-07-20 12:25:09 UTC
Hi,

After installing Fedora 37 on my new PC and setting up my secondary GPU to be used on a KVM W10 VM (vfio) i realized that i don't have text mode virtual consoles anymore and also on boot i don't see the boot messages on my NVIDIA GPU.

Then i realized that the text mode virtual consoles and boot messages where going to the onboard GPU, so i disabled it with the kernel parameter pci-stub.ids=1a03:2000. After that no more boot messages or virtual console on any GPU.

Finally i realized that what was causing the lack of text mode virtual consoles and no boot messages was the vfio-pci module.

As soon as i removed vfio-pci from dracut, was no longer loaded at boot and i could see the boot messages on my NVIDIA GPU and text mode virtual consoles are also working on NVIDIA GPU.

After booting, if i manually load vfio-pci i loose immediately the text mode virtual consoles.


MY ENVIRONMENT:

OS: Fedora 37 (6.3.12-100.fc37.x86_64)
MB: Supermicro H12SSL-i
CPU: AMD EPYC 7313P
GPU0: ASPEED Technology, Inc. ASPEED Graphics Family [1a03:2000] (onboard)
GPU1: NVIDIA GeForce GTX 1070
GPU2: MSI Radeon RX 6700 XT MECH 2X 12G (only used in KVM W10 VM / vfio-pci)

NVIDIA drivers i use are the ones from negativo17 repo:
nvidia-kmod-common-535.54.03-1.fc37.noarch
nvidia-libXNVCtrl-535.54.03-1.fc37.x86_64
nvidia-driver-libs-535.54.03-1.fc37.x86_64
nvidia-driver-535.54.03-1.fc37.x86_64
nvidia-driver-cuda-libs-535.54.03-1.fc37.x86_64
nvidia-driver-NVML-535.54.03-1.fc37.x86_64
nvidia-persistenced-535.54.03-1.fc37.x86_64
nvidia-driver-cuda-535.54.03-1.fc37.x86_64
nvidia-settings-535.54.03-1.fc37.x86_64
nvidia-vaapi-driver-0.0.10-1.fc37.x86_64
nvidia-gpu-firmware-20230625-151.fc37.noarch
akmod-nvidia-535.54.03-1.fc37.x86_64
kmod-nvidia-6.3.12-100.fc37.x86_64-535.54.03-1.fc37.x86_64



Reproducible: Always

Steps to Reproduce:
1.load vfio-pci module
2.
3.