public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] [PATCH]  Linus breaks nvidia-drivers again
@ 2012-10-15 16:05 walt
  2012-10-15 17:30 ` [gentoo-user] Re: [PATCH] Linus breaks ati-drivers again walt
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: walt @ 2012-10-15 16:05 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 179 bytes --]

Well, this is really a temporary workaround for people who like to
run the latest git kernel from Linus, and it's only tested for
nvidia-drivers-302.17-r1, and only on ~amd_64.



[-- Attachment #2: nvidia.patch --]
[-- Type: text/x-patch, Size: 1995 bytes --]

diff -ur NVIDIA-Linux-x86_64-302.17.orig/kernel/conftest.sh NVIDIA-Linux-x86_64-302.17/kernel/conftest.sh
--- NVIDIA-Linux-x86_64-302.17.orig/kernel/conftest.sh	2012-06-12 16:03:27.000000000 -0700
+++ NVIDIA-Linux-x86_64-302.17/kernel/conftest.sh	2012-10-15 08:12:56.594959000 -0700
@@ -126,7 +126,7 @@
     CFLAGS="$BASE_CFLAGS $MACH_CFLAGS $OUTPUT_CFLAGS -I$HEADERS $AUTOCONF_CFLAGS"
 
     if [ "$ARCH" = "i386" -o "$ARCH" = "x86_64" ]; then
-        CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$OUTPUT/arch/x86/include/generated"
+        CFLAGS="$CFLAGS -I$SOURCES/arch/x86/include -I$OUTPUT/arch/x86/include/generated -I$SOURCES/include/uapi"
     elif [ "$ARCH" = "arm" ]; then
         CFLAGS="$CFLAGS -I$SOURCES/arch/arm/include -I$OUTPUT/arch/arm/include/generated"
     fi
diff -ur NVIDIA-Linux-x86_64-302.17.orig/kernel/nv-acpi.c NVIDIA-Linux-x86_64-302.17/kernel/nv-acpi.c
--- NVIDIA-Linux-x86_64-302.17.orig/kernel/nv-acpi.c	2012-06-12 16:03:27.000000000 -0700
+++ NVIDIA-Linux-x86_64-302.17/kernel/nv-acpi.c	2012-10-15 08:15:15.888959000 -0700
@@ -300,7 +300,7 @@
     if (pNvAcpiObject->notify_handler_installed)
     {
         // no status returned for this function
-        acpi_os_wait_events_complete(NULL);
+        acpi_os_wait_events_complete();
 
         // remove event notifier
         status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);
diff -ur NVIDIA-Linux-x86_64-302.17.orig/kernel/nv-mmap.c NVIDIA-Linux-x86_64-302.17/kernel/nv-mmap.c
--- NVIDIA-Linux-x86_64-302.17.orig/kernel/nv-mmap.c	2012-06-12 16:03:27.000000000 -0700
+++ NVIDIA-Linux-x86_64-302.17/kernel/nv-mmap.c	2012-10-15 08:17:13.084959000 -0700
@@ -450,7 +450,7 @@
         NV_PRINT_AT(NV_DBG_MEMINFO, at);
         nv_vm_list_page_count(&at->page_table[i], pages);
 
-        vma->vm_flags |= (VM_IO | VM_LOCKED | VM_RESERVED);
+        vma->vm_flags |= (VM_IO | VM_LOCKED | VM_IO);
 
 #if defined(VM_DRIVER_PAGES)
         vma->vm_flags |= VM_DRIVER_PAGES;

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-10-16  7:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-15 16:05 [gentoo-user] [PATCH] Linus breaks nvidia-drivers again walt
2012-10-15 17:30 ` [gentoo-user] Re: [PATCH] Linus breaks ati-drivers again walt
2012-10-15 17:33 ` [gentoo-user] Re: [PATCH] Linus breaks virtualbox-modules again walt
2012-10-15 18:10 ` [gentoo-user] [PATCH] Linus breaks nvidia-drivers again Walter Dnes
2012-10-15 18:19   ` pk
2012-10-15 18:59     ` Walter Dnes
2012-10-15 23:21   ` [gentoo-user] " walt
2012-10-16  7:30     ` microcai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox