diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-10-11 09:27:28 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-10-11 09:58:06 -0400 |
commit | b7e8fd33216e094df447d2b5a1a20d15616f8fd9 (patch) | |
tree | 3f5f7e25274f2d72a4085c9bb7fd62c3ef40a418 /x11-drivers | |
parent | sys-process/atop: keyword ~riscv (diff) | |
download | gentoo-b7e8fd33216e094df447d2b5a1a20d15616f8fd9.tar.gz gentoo-b7e8fd33216e094df447d2b5a1a20d15616f8fd9.tar.bz2 gentoo-b7e8fd33216e094df447d2b5a1a20d15616f8fd9.zip |
x11-drivers/nvidia-drivers: check for CONFIG_X86_PAT
NVIDIA has a fallback implementation if unset, but it uses
__flush_tlb removed on x86 since >=5.8 kernels (albeit fairly
unlikely to be unset given default and gated behind EXPERT=y).
All versions are affected.
Closes: https://bugs.gentoo.org/817764
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-drivers')
5 files changed, 10 insertions, 0 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144.ebuild index 669f669cd416..f85a6e3a7a1a 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.144.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.144.ebuild @@ -98,6 +98,8 @@ pkg_setup() { options such as CONFIG_DRM_FBDEV_EMULATION instead. 390.xx branch: also used by a GLX workaround needed for OpenGL." + use amd64 || use x86 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 + BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' use x86 && BUILD_PARAMS+=' ARCH=i386' # needed for recognition BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03.ebuild index 6d71ba06004b..29ce7c8d9dd6 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-460.91.03.ebuild @@ -95,6 +95,8 @@ pkg_setup() { Cannot be directly selected in the kernel's menuconfig, so enable options such as CONFIG_DRM_FBDEV_EMULATION instead." + use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 + BUILD_PARAMS='NV_VERBOSE=1 IGNORE_CC_MISMATCH=yes SYSSRC="${KV_DIR}" SYSOUT="${KV_OUT_DIR}"' BUILD_TARGETS="modules" # defaults' clean sometimes deletes modules MODULE_NAMES=" diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.05.ebuild index 9f201131b30f..406ac0e96fc2 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.62.05.ebuild @@ -101,6 +101,8 @@ pkg_setup() { Cannot be directly selected in the kernel's menuconfig, so enable options such as CONFIG_DRM_FBDEV_EMULATION instead." + kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 + MODULE_NAMES=" nvidia(video:kernel) nvidia-drm(video:kernel) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.63.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.63.01.ebuild index 6f30694aadeb..c4d23b1df07a 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.63.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.63.01.ebuild @@ -100,6 +100,8 @@ pkg_setup() { Cannot be directly selected in the kernel's menuconfig, so enable options such as CONFIG_DRM_FBDEV_EMULATION instead." + use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 + MODULE_NAMES=" nvidia(video:kernel) nvidia-drm(video:kernel) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.74.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.74.ebuild index f9aedac372c8..9d38a366a0c3 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.74.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.74.ebuild @@ -101,6 +101,8 @@ pkg_setup() { Cannot be directly selected in the kernel's menuconfig, so enable options such as CONFIG_DRM_FBDEV_EMULATION instead." + use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 + MODULE_NAMES=" nvidia(video:kernel) nvidia-drm(video:kernel) |