https://bugzilla.suse.com/show_bug.cgi?id=1195094
Bug ID: 1195094 Summary: nVidia: Remove generic (fb) driver first ... Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: x86-64 OS: openSUSE Tumbleweed Status: NEW Severity: Enhancement Priority: P5 - None Component: X11 3rd Party Driver Assignee: gfx-bugs@suse.de Reporter: sndirsch@suse.com QA Contact: sndirsch@suse.com Found By: --- Blocker: ---
Users of nVidia's proprietary driver are running into issues with the introduction of 'simpledrm'.
https://forums.developer.nvidia.com/t/510-39-01-on-5-16-0-kernel-green-scree...
There are workarounds available like
a) patching the nvidia kernel module and no longer calling pci_request_regions(...) function b) Kernel option 'initcall_blacklist=simpledrm_platform_driver_init' c) Kerneloption ' fbcon=map:1'.
But the culprit is that nVidia doesn't remove the generic driver (e.g. efifb/vesafb) first. This should be changed to address the real issue here.
API under MIT license
https://elixir.bootlin.com/linux/latest/source/include/drm/drm_aperture.h
Example for nouveau driver.
https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/nouveau/nouve...
Thomas is the author of 'simpledrm'. Please correct me, if I misunderstood anything and feel free to add more details here.
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c1
Stefan Dirsch sndirsch@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High Status|NEW |IN_PROGRESS CC| |ddadap@nvidia.com, | |tzimmermann@suse.com Assignee|gfx-bugs@suse.de |sndirsch@suse.com
--- Comment #1 from Stefan Dirsch sndirsch@suse.com --- @Daniel Could you please consider addressing and tracking this on your side? We can talk in more detail about this (as far as I understood the issue) in next week's call of course.
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c2
--- Comment #2 from Stefan Dirsch sndirsch@suse.com --- simpledrm is new since Kernel version 5.14
https://www.phoronix.com/scan.php?page=news_item&px=Linux-5.14-Initial-D...
(In reply to Stefan Dirsch from comment #0)
There are workarounds available like
a) patching the nvidia kernel module and no longer calling pci_request_regions(...) function
https://github.com/rpmfusion/nvidia-kmod/blob/master/nvidia-kmod-pci-request...
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c3
--- Comment #3 from Stefan Dirsch sndirsch@suse.com --- openSUSE Testkernel with simpledrm support.
https://build.suse.de/package/show/home:tiwai:test:simpledrm/kernel-default
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c5
--- Comment #5 from Thomas Zimmermann tzimmermann@suse.com --- Here's an example patch from Fedora
https://github.com/rpmfusion/nvidia-kmod/commit/cad35064f5eb115b9ef8ea06159b...
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c8
--- Comment #8 from Stefan Dirsch sndirsch@suse.com --- (In reply to Thomas Zimmermann from comment #5)
Here's an example patch from Fedora
https://github.com/rpmfusion/nvidia-kmod/commit/ cad35064f5eb115b9ef8ea06159b4c0716e1599b
We figured out, that this breaks the Linux console. One would need to add a generic drm console, which might be just a one-liner according to Thomas Zimmermann. Unfortunately he couldn't work on this before his parental leave. He'll be back in April and then will work again on the remaining issues of simpledrm.
https://bugzilla.suse.com/show_bug.cgi?id=1195094
Stefan Dirsch sndirsch@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|nVidia: Remove generic (fb) |nVidia: Remove generic (fb) |driver first ... |driver first and add | |generic drm console
https://bugzilla.suse.com/show_bug.cgi?id=1195094
Stefan Dirsch sndirsch@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |1193250
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c9
--- Comment #9 from Stefan Dirsch sndirsch@suse.com --- (In reply to Stefan Dirsch from comment #8)
(In reply to Thomas Zimmermann from comment #5)
Here's an example patch from Fedora
https://github.com/rpmfusion/nvidia-kmod/commit/ cad35064f5eb115b9ef8ea06159b4c0716e1599b
We figured out, that this breaks the Linux console. One would need to add a generic drm console, which might be just a one-liner according to Thomas Zimmermann. Unfortunately he couldn't work on this before his parental leave. He'll be back in April and then will work again on the remaining issues of simpledrm.
That may even make more sense with the OpenSource driver now ...
https://bugzilla.suse.com/show_bug.cgi?id=1195094
Stefan Dirsch sndirsch@suse.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |msuchanek@suse.com
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c13
--- Comment #13 from Stefan Dirsch sndirsch@suse.com --- Oh. Wow! Thanks for the pointer, Michal!
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c17
--- Comment #17 from Stefan Dirsch sndirsch@suse.com --- There is hope. NVIDIA is working now on that.
https://github.com/NVIDIA/open-gpu-kernel-modules/issues/341#issuecomment-14...
https://github.com/NVIDIA/open-gpu-kernel-modules/files/10483493/nvidia-525....
https://bugzilla.suse.com/show_bug.cgi?id=1195094 https://bugzilla.suse.com/show_bug.cgi?id=1195094#c18
--- Comment #18 from Stefan Dirsch sndirsch@suse.com --- See also
https://github.com/NVIDIA/open-gpu-kernel-modules/pull/342#issuecomment-1397...