Bug 479958 - nvidia spams journal/dmesg with a second monitor on a dgpu setup
Summary: nvidia spams journal/dmesg with a second monitor on a dgpu setup
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: 5.92.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen, qt6, wayland-only
Depends on:
Blocks:
 
Reported: 2024-01-17 19:14 UTC by Tom Englund
Modified: 2024-02-25 15:34 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Englund 2024-01-17 19:14:13 UTC
SUMMARY

im not sure if this is a kwin bug or a nvidia one but if i use an external monitor on my dgpu and run a game in wine or some other random thing eventually it begins spamming "[drm] [nvidia-drm] [GPU ID 0x00000100] Framebuffer memory not appropriate for scanout" in dmesg/journal. this happend before on 5.27.x series and testing the 5.92.0 RC from archlinux kde-unstable repo it does aswell. was seeing posts like https://forums.developer.nvidia.com/t/hardware-cursor-is-not-working-on-wayland-drm-sessions/261853/2 so i thought id wait until that is figured out but if im not mistaken this RC has the HW cursor patches from https://invent.kde.org/plasma/kwin/-/merge_requests/4695


STEPS TO REPRODUCE
1. run a laptop with a nvidia dgpu and attach a external monitor
2. launch a wine game fullscreened
3. nvidia begins spamming

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.92.0
KDE Frameworks Version: 5.248.0
Qt Version: 6.7.0
Kernel Version: 6.6.8-273-tkg-eevdf-llvm (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800H with Radeon Graphics
Memory: 30,7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Comment 1 Zamundaaa 2024-02-22 14:56:48 UTC
This happens because KWin tries to do direct scanout. If that fails, the driver should not log anything... please report that to NVidia
Comment 2 Nate Graham 2024-02-22 17:15:35 UTC
Indeed, please report this issue to the NVIDIA folks, either by sending an email to linux-bugs@nvidia.com or making a post at https://forums.developer.nvidia.com/c/gpu-graphics/linux. It would be helpful to the NVIDIA developers if you could run nvidia-bug-report.sh and attach the resulting file in your report. Thanks!
Comment 3 ByteEnable 2024-02-25 15:34:16 UTC
Also spams DMESG when the lock screen is shown.

Driver details:
└─❯ modinfo nvidia
filename:       /lib/modules/6.7.5-200.fc39.x86_64/extra/nvidia/nvidia.ko.xz
alias:          char-major-195-*
version:        550.54.14
supported:      external
license:        NVIDIA
firmware:       nvidia/550.54.14/gsp_tu10x.bin
firmware:       nvidia/550.54.14/gsp_ga10x.bin

Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.12
Kernel Version: 6.7.5-200.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 32 × 13th Gen Intel® Core™ i9-13900HX
Memory: 62.5 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 4080 Laptop GPU/PCIe/SSE2
Manufacturer: LENOVO
Product Name: 82WQ
System Version: Legion Pro 7 16IRX8H