commit:     69ea157c9d2851d3aa369484fd13fcb1f69f4477
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 21 17:29:55 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Jul 21 19:42:51 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69ea157c

x11-drivers/nvidia-drivers: warn about slub_debug issues

May not affect many users but it is hard to diagnose
without a hint.

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

 x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild 
b/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
index ea8905ecfe0..a972835bc8a 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild
@@ -90,6 +90,7 @@ pkg_setup() {
                ~DRM_KMS_HELPER
                ~SYSVIPC
                ~!LOCKDEP
+               ~!SLUB_DEBUG_ON
                !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 optional nvidia-drm.modeset=1.
@@ -422,6 +423,12 @@ pkg_postinst() {
                use driver && ewarn "The easiest way to fix this is usually to 
reboot."
        fi
 
+       if [[ $(</proc/cmdline) == *slub_debug=[!-]* ]]; then
+               ewarn "Detected that the current kernel command line is using 
'slub_debug=',"
+               ewarn "this may lead to system instability/freezes with this 
version of"
+               ewarn "${PN}. Bug: https://bugs.gentoo.org/796329";
+       fi
+
        if [[ ${NV_LEGACY_MASK} ]]; then
                ewarn "You are installing a version of nvidia-drivers known not 
to work"
                ewarn "with a GPU of the current system. If unwanted, add the 
mask:"

Reply via email to