Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908532 - x11-drivers/nvidia-drivers do not provide efifb with kernel >=6.x
Summary: x11-drivers/nvidia-drivers do not provide efifb with kernel >=6.x
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ionen Wolkens
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-06-15 09:36 UTC by Luke A. Guest
Modified: 2023-06-18 00:19 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Redhat patch to fix nvidia drivers / efifb (0001-Redhat-s-patch-to-fix-no-efifb-on-nv-drivers.patch,1.31 KB, patch)
2023-06-15 09:37 UTC, Luke A. Guest
Details | Diff
6.3.8 kernel config (dot-config.gz,41.73 KB, application/gzip)
2023-06-15 15:27 UTC, Luke A. Guest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Luke A. Guest 2023-06-15 09:36:18 UTC
As of any kernel in the 6.x series, the framebuffer no longer works with nvidia drivers. kernels in the 5.x series works. i.e. there is no output on boot as you'd expect.

Reproducible: Always

Steps to Reproduce:
1. Install nvidia-drivers.
2. Build 6.x kernel.
3. Reboot.
Actual Results:  
See nothing until X.

Expected Results:  
Boot messages.

I have been tracking this here https://github.com/NVIDIA/open-gpu-kernel-modules/issues/458, there is a patch from redhat to fix it which apparently works but not for me.

```
Comment 1 Luke A. Guest 2023-06-15 09:37:18 UTC
Created attachment 863855 [details, diff]
Redhat patch to fix nvidia drivers / efifb

Here's their patch.
Comment 2 Luke A. Guest 2023-06-15 09:37:42 UTC
the only work around I have had work is to comment out the line in aperture.c.
Comment 3 Ionen Wolkens gentoo-dev 2023-06-15 11:11:44 UTC
The ebuild already gives a warning to disable SIMPLEDRM, then such patch is not needed.
Comment 4 Ionen Wolkens gentoo-dev 2023-06-15 11:12:53 UTC
(In reply to Ionen Wolkens from comment #3)
> The ebuild already gives a warning to disable SIMPLEDRM, then such patch is
> not needed.

(among a few others tips that tend to work, FB_SIMPLE and SYSFB_SIMPLEFB tend to conflict since recent kernels)

I'm using FB_EFI just fine myself.
Comment 5 Ionen Wolkens gentoo-dev 2023-06-15 11:24:47 UTC
(In reply to Ionen Wolkens from comment #3)
> The ebuild already gives a warning to disable SIMPLEDRM, then such patch is
> not needed.
Also that patch is fedora/redhat specific, it tries to detect nvidia drivers through kernel boot params and then prevents SIMPLEDRM from being used. Meaning it will typically do nothing if not used that way.

So (to resume) ensure you have the following disabled in your kernel (or being built as module is fine too):
- CONFIG_DRM_SIMPLEDRM
- CONFIG_FB_SIMPLE
- CONFIG_SYSFB_SIMPLEFB

And then check that this one is enabled
- CONFIG_FB_EFI
(may want FB_VESA too in case we're overlooking something here)

Then may want to re-emerge nvidia-drivers and check if it outputs anything warnings.

If this does not work, then I don't know. nvidia-drivers itself doesn't provide anything, framebuffer is all from the kernel, so this is a kernel issue.

The last resort would be to try to pass nomodeset to the kernel command line.
Comment 6 Luke A. Guest 2023-06-15 11:37:00 UTC
(In reply to Ionen Wolkens from comment #3)
> The ebuild already gives a warning to disable SIMPLEDRM, then such patch is
> not needed.

You obviously didn't read my entire link, as I stated today on that, that I enabled it to see if that made a difference, it didn't.
Comment 7 Ionen Wolkens gentoo-dev 2023-06-15 11:54:09 UTC
(In reply to Luke A. Guest from comment #6)
> (In reply to Ionen Wolkens from comment #3)
> > The ebuild already gives a warning to disable SIMPLEDRM, then such patch is
> > not needed.
> 
> You obviously didn't read my entire link, as I stated today on that, that I
> enabled it to see if that made a difference, it didn't.
Sorry, I've read that issue before already, so I didn't check the link again for potential new posts (nor do I know if replies are from you from a quick look).
Comment 8 Ionen Wolkens gentoo-dev 2023-06-15 12:13:48 UTC
(In reply to Ionen Wolkens from comment #7)
> (nor do I know if replies are from you from a quick look).
To clarify, I assumed "tracking at" just meant that you were following the bug, not necessarily created it.

Either way, I said everything I know may or may not help in comment #5

As noted, nvidia-drivers does /not/ handle framebuffer on any kernel version -- at worst nvidia-drivers may conflict when loaded but it wouldn't stop early boot messages (that's all handled by the kernel).
Comment 9 Luke A. Guest 2023-06-15 15:27:59 UTC
Created attachment 863867 [details]
6.3.8 kernel config

Nope, still nothing shown.

$ cat /proc/cmdline 
BOOT_IMAGE=/@/boot/vmlinuz-6.3.8-gentoo-x86_64 root=/dev/mapper/vg0_ssd-ws_rootfs ro rootflags=subvol=@ dolvm dobtrfs quiet amd_iommu=on iommu=pt hugepages=4608 pci=noats vfio-pci.ids=1002:67df,1002:aaf0,1b73:1100 crashkernel=@128M kgdboc=/dev/ttyS0,11520 module_blacklist=evbug rootfstype=btrfs
Comment 10 Ionen Wolkens gentoo-dev 2023-06-15 18:01:16 UTC
Don't know then, as a better than nothing fallback may want to try "nomodeset" boot option.

Could be some different kernel regressions affecting your specific hardware, or something else I haven't heard about yet.

Nothing that open-gpu-kernel-modules upstream or nvidia-drivers here can do about given they don't handle early boot display.
Comment 11 Ionen Wolkens gentoo-dev 2023-06-18 00:19:33 UTC
(In reply to Ionen Wolkens from comment #10)
> Nothing that open-gpu-kernel-modules upstream or nvidia-drivers here can do
> about given they don't handle early boot display.
As I said, this isn't from nvidia-drivers. At best it could be a kernel bug, but well.