From 9b879cecdb00a08f7ac6c1c04fd46c941d6d8624 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 22 Mar 2023 06:45:12 -0400 Subject: [PATCH] x11-drivers/nvidia-drivers: keep IBT warning in all versions Upstream issue indicates this got fixed, but closed source drivers apparently get built with a custom ancient gcc that doesn't support IBT. Leave the warning vague given haven't really tested this and haven't setup exceptions for kernel-open nor tested which versions really actually work, just so users know what to try if something comes up. May re-adjust this later. Signed-off-by: Ionen Wolkens --- x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild | 5 ++--- x11-drivers/nvidia-drivers/nvidia-drivers-470.161.03.ebuild | 5 ++--- x11-drivers/nvidia-drivers/nvidia-drivers-510.108.03.ebuild | 5 ++--- x11-drivers/nvidia-drivers/nvidia-drivers-515.86.01.ebuild | 5 ++--- x11-drivers/nvidia-drivers/nvidia-drivers-525.47.14.ebuild | 3 +++ x11-drivers/nvidia-drivers/nvidia-drivers-525.85.05.ebuild | 3 +++ x11-drivers/nvidia-drivers/nvidia-drivers-525.89.02.ebuild | 3 +++ x11-drivers/nvidia-drivers/nvidia-drivers-530.30.02.ebuild | 3 +++ 8 files changed, 20 insertions(+), 12 deletions(-) diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild index 3bda88a05d319..09a8849c08438 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -98,8 +98,7 @@ pkg_setup() { selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. - If run into problems, either unset or pass ibt=off to the kernel. - https://github.com/NVIDIA/open-gpu-kernel-modules/issues/256" + If run into problems, either unset or try to pass ibt=off to the kernel." kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.161.03.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-470.161.03.ebuild index 87a70528199f3..d86fa7cad7107 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.161.03.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.161.03.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -101,8 +101,7 @@ pkg_setup() { selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. - If run into problems, either unset or pass ibt=off to the kernel. - https://github.com/NVIDIA/open-gpu-kernel-modules/issues/256" + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-510.108.03.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-510.108.03.ebuild index fb50c6c899e2d..680167225748c 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-510.108.03.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-510.108.03.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -103,8 +103,7 @@ pkg_setup() { selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. - If run into problems, either unset or pass ibt=off to the kernel. - https://github.com/NVIDIA/open-gpu-kernel-modules/issues/256" + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-515.86.01.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-515.86.01.ebuild index 97648a86e8c42..6d20051264932 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-515.86.01.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-515.86.01.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -106,8 +106,7 @@ pkg_setup() { selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. - If run into problems, either unset or pass ibt=off to the kernel. - https://github.com/NVIDIA/open-gpu-kernel-modules/issues/256" + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.14.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.14.ebuild index f4a9b9e7ecd43..b82004cf88ef8 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.14.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.47.14.ebuild @@ -97,12 +97,15 @@ pkg_setup() { ~SYSVIPC ~!LOCKDEP ~!SLUB_DEBUG_ON + ~!X86_KERNEL_IBT !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. Cannot be directly selected in the kernel's menuconfig, and may need selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." + local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.85.05.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.85.05.ebuild index 93e59196de1b4..17ab77c863997 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.85.05.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.85.05.ebuild @@ -96,12 +96,15 @@ pkg_setup() { ~SYSVIPC ~!LOCKDEP ~!SLUB_DEBUG_ON + ~!X86_KERNEL_IBT !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. Cannot be directly selected in the kernel's menuconfig, and may need selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." + local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-525.89.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-525.89.02.ebuild index 93e59196de1b4..17ab77c863997 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-525.89.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-525.89.02.ebuild @@ -96,12 +96,15 @@ pkg_setup() { ~SYSVIPC ~!LOCKDEP ~!SLUB_DEBUG_ON + ~!X86_KERNEL_IBT !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. Cannot be directly selected in the kernel's menuconfig, and may need selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." + local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764 diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-530.30.02.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-530.30.02.ebuild index 42ca4a2076b0f..536c6aeece46c 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-530.30.02.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-530.30.02.ebuild @@ -96,12 +96,15 @@ pkg_setup() { ~SYSVIPC ~!LOCKDEP ~!SLUB_DEBUG_ON + ~!X86_KERNEL_IBT !DEBUG_MUTEXES" local ERROR_DRM_KMS_HELPER="CONFIG_DRM_KMS_HELPER: is not set but needed for Xorg auto-detection of drivers (no custom config), and for wayland / nvidia-drm.modeset=1. Cannot be directly selected in the kernel's menuconfig, and may need selection of a DRM device even if unused, e.g. CONFIG_DRM_AMDGPU=m or DRM_I915=y, DRM_NOUVEAU=m also acceptable if a module and not built-in." + local ERROR_X86_KERNEL_IBT="CONFIG_X86_KERNEL_IBT: is set, be warned the modules may not load. + If run into problems, either unset or try to pass ibt=off to the kernel." use amd64 && kernel_is -ge 5 8 && CONFIG_CHECK+=" X86_PAT" #817764