Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 320375

Summary: nvidia-drivers-195.36.24 (et al?) needs vga-arbitor patch
Product: Gentoo Linux Reporter: m0par
Component: [OLD] Core systemAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal CC: jer, kernel, pacho, scanpat, spock
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://www.nvnews.net/vbulletin/showthread.php?t=142656
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: vga_arbitor.patch
vga_arbitor.patch -- newer version with ifdefs

Description m0par 2010-05-18 11:48:11 UTC
System will lock up hard when CONFIG_VGA_ARB is set in kernel on SLI system.

CONFIG_VGA_ARB defaults to yes, and is hidden from menuconfig unless CONFIG_EMBEDDED=y, so in my opinion, it would be better to include the patch.

I am not a developer, so I don't know if this patch is proper, etc. I just know it works, and would benefit SLI users unaware of the VGA_ARB issue, at least until Nvidia addresses it.

Reproducible: Always

Steps to Reproduce:
1. build nvidia-drivers-195.36.24 on SLI system using gentoo-sources-2.6.33*
2. "modprobe nvidia" or reboot

Actual Results:  
Frozen system. Unable to ssh into it or do anything but hard-reset.


http://www.nvnews.net/vbulletin/showthread.php?t=142656 is the thread where I first ran across the patch (see post #2). I'm assuming it is "underling"'s work, but I don't know.
Comment 1 m0par 2010-05-18 11:53:54 UTC
Created attachment 231949 [details, diff]
vga_arbitor.patch

underling's patch from http://www.nvnews.net/vbulletin/showthread.php?t=142656
Comment 2 m0par 2010-05-18 11:56:06 UTC
Created attachment 231951 [details, diff]
vga_arbitor.patch -- newer version with ifdefs

underling's patch from http://www.nvnews.net/vbulletin/showthread.php?t=142656
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2010-05-26 19:59:20 UTC
*** Bug 312445 has been marked as a duplicate of this bug. ***
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2010-05-27 02:05:07 UTC
Interestingly this patch won't actually work for all kernel versions. 2.6.33 and all the way through Linus' current tree have a bug in include/linux/vgaarb.h that prevent multiple includes of the header (look right after the #ifndef line, the #define is missing). I've pushed a patch to the upstream maintainers but did not hit the LKML.

@gentoo kernel people: can you consider applying the fix? I can attach it here if you want the one liner.
Comment 5 m0par 2010-06-29 15:38:43 UTC
Upstream fix in nvidia-drivers-256.35
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2010-07-13 05:17:12 UTC
Fixed in 195.36.31 in tree.