commit:     3cfd7a4f51f154d59f90ca04d399ff26db56fff3
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sat Feb  1 01:12:36 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sat Feb  1 01:26:15 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3cfd7a4f

x11-drivers/nvidia-drivers: check for CONFIG_DRM_FBDEV_EMULATION

Should've known about this given the TTM bit, but kind of forgot.

Keep it optional, like the rest of the DRM bits a system can work
without these if you know what you're doing (e.g. disabled KMS_HELPER
needs modeset=0 and a custom Xorg.conf). TTM on the other hand is
required *if* FBDEV is enabled else it results in a build failure
on recent kernels.

Plans is mostly to make most people enable it before we do the switch
"eventually".

For what it's worth, only check in 570+ given there's no plans to ever
enable fbdev=1 by default in old branches, legacy ones did not even
support it.

Bug: https://bugs.gentoo.org/949097
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild 
b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild
index 068810f548aa..7c35e53a4a89 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-570.86.16-r1.ebuild
@@ -106,6 +106,7 @@ pkg_setup() {
        local CONFIG_CHECK="
                PROC_FS
                ~DRM_KMS_HELPER
+               ~DRM_FBDEV_EMULATION
                ~SYSVIPC
                ~!LOCKDEP
                ~!PREEMPT_RT
@@ -131,6 +132,9 @@ pkg_setup() {
        local ERROR_DRM_TTM_HELPER="CONFIG_DRM_TTM_HELPER: is not set but is 
needed to compile when using
        kernel version 6.11.x or newer while DRM_FBDEV_EMULATION is set.
        ${drm_helper_msg}"
+       local ERROR_DRM_FBDEV_EMULATION="CONFIG_DRM_FBDEV_EMULATION: is not set 
but is needed for
+       nvidia-drm.fbdev=1 support, currently off-by-default and it could
+       be ignored, but note that is due to change in the future."
        local ERROR_MMU_NOTIFIER="CONFIG_MMU_NOTIFIER: is not set but needed to 
build with USE=kernel-open.
        Cannot be directly selected in the kernel's menuconfig, and may need
        selection of another option that requires it such as CONFIG_KVM."

Reply via email to