ports/181118: [patch] x11/nvidia-driver
Nikolai Lifanov
lifanov at mail.lifanov.com
Wed Aug 7 17:30:01 UTC 2013
>Number: 181118
>Category: ports
>Synopsis: [patch] x11/nvidia-driver
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Aug 07 17:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Nikolai Lifanov
>Release: FreeBSD 9.1-RELEASE-p5 amd64
>Organization:
>Environment:
System: FreeBSD mail.lifanov.com 9.1-RELEASE-p5 FreeBSD 9.1-RELEASE-p5 #0: Sat Jul 27 01:14:23 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
FreeBSD base revision r254025:
Replace kernel virtual address space allocation with vmem.
This specifically broke kmem_free and kmem_alloc_contig functions, which are used in nvidia-driver port.
This patch fixes the problem. However, OSVERSION > 1000040 is a bit imprecise, since r254025 doesn't come with a param.h bump.
>How-To-Repeat:
Update to CURRENT above r254025
make -C /usr/ports/x11/nvidia-driver
>Fix:
Apply this patch.
--- patch.txt begins here ---
Index: x11/nvidia-driver/Makefile
===================================================================
--- x11/nvidia-driver/Makefile (revision 324359)
+++ x11/nvidia-driver/Makefile (working copy)
@@ -111,6 +111,12 @@
.endif
post-patch: .SILENT
+.if ${OSVERSION} > 1000040
+ ${REINPLACE_CMD} -e 's/kmem_free(kernel_map,/kva_free(/g ; \
+ s/kmem_alloc_contig(kernel_map,/kmem_alloc_contig(kernel_arena,/g' \
+ ${WRKSRC}/src/nvidia_subr.c
+.endif
+
# We should support -CURRENT: kill the check
${REINPLACE_CMD} -e '24,26d' ${WRKSRC}/src/nv-freebsd.h
# Adjust legacy drivers for updated d_mmap() since FreeBSD src SVN r201223
--- patch.txt ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list