Page MenuHomeFreeBSD

D49828.1774931410.diff
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

D49828.1774931410.diff

diff --git a/x11/nvidia-driver/Makefile b/x11/nvidia-driver/Makefile
--- a/x11/nvidia-driver/Makefile
+++ b/x11/nvidia-driver/Makefile
@@ -14,7 +14,7 @@
PORTNAME?= nvidia-driver
DISTVERSION?= ${NVIDIA_DISTVERSION}
# Always try to set PORTREVISION as it can be overridden by the slave ports
-PORTREVISION?= 1
+PORTREVISION?= 2
CATEGORIES= x11
MASTER_SITES= NVIDIA/XFree86/FreeBSD-${ARCH_SUFX}/${DISTVERSION}
DISTNAME= NVIDIA-FreeBSD-${ARCH_SUFX}-${DISTVERSION}
@@ -80,6 +80,12 @@
SUB_PATCHES+= extra-patch-src-nvidia_subr.c
.endif
+# Temporarily disable GSP firmware as it is known to cause
+# issues with suspend/resume
+.if ${NVVERSION} >= 565.00000
+SUB_PATCHES+= extra-gsp-patch-src-nvidia_subr.c
+.endif
+
DOCSDIR= ${PREFIX}/share/doc/NVIDIA_GLX-1.0
MODULESDIR= lib/xorg/modules
EXTENSIONSDIR?= ${MODULESDIR}/extensions/.nvidia
diff --git a/x11/nvidia-driver/files/extra-gsp-patch-src-nvidia_subr.c.in b/x11/nvidia-driver/files/extra-gsp-patch-src-nvidia_subr.c.in
new file mode 100644
--- /dev/null
+++ b/x11/nvidia-driver/files/extra-gsp-patch-src-nvidia_subr.c.in
@@ -0,0 +1,11 @@
+--- src/nvidia/nvidia_subr.c.orig 2025-04-14 16:14:13 UTC
++++ src/nvidia/nvidia_subr.c
+@@ -32,7 +32,7 @@ nv_cap_t *nvidia_caps_root = NULL;
+ nv_state_t nvidia_ctl_state;
+ nv_cap_t *nvidia_caps_root = NULL;
+
+-const NvBool nv_is_rm_firmware_supported_os = NV_TRUE;
++const NvBool nv_is_rm_firmware_supported_os = NV_FALSE;
+
+ static struct callout snapshot_timer;
+ static struct mtx snapshot_timer_mutex;

File Metadata

Mime Type
text/plain
Expires
Tue, Mar 31, 4:30 AM (3 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28233348
Default Alt Text
D49828.1774931410.diff (1 KB)

Event Timeline