Summary: | All current x11-drivers/nvidia-driver versions break with new linux-2.6.33-rt patch series | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | filip |
Component: | New packages | Assignee: | Doug Goldstein (RETIRED) <cardoe> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | uberthoth |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Defines nv_spinlock_t as raw_spinlock_t
New patch version |
Description
filip
2010-03-11 08:29:21 UTC
Created attachment 223131 [details, diff]
Defines nv_spinlock_t as raw_spinlock_t
Snooping around, I found that the atomic_spinlock_t (and associated functions) have changed names to raw_spinlock_t (etc). So I created a patch (enclosed) to fix the name change. Next, there obviously are some other compilation errors:
/var/tmp/portage/x11-drivers/nvidia-drivers-190.53-r2/work/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c: In function 'nv_alloc_file_private':
/var/tmp/portage/x11-drivers/nvidia-drivers-190.53-r2/work/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c:2012: error: implicit declaration of function 'semaphore_init'
/var/tmp/portage/x11-drivers/nvidia-drivers-190.53-r2/work/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c: In function 'nv_kern_open':
/var/tmp/portage/x11-drivers/nvidia-drivers-190.53-r2/work/NVIDIA-Linux-x86_64-190.53-pkg2/usr/src/nv/nv.c:2188: warning: initialization from incompatible pointer type
It would seem that I have to patch nv-linux.h some more to get nvidia-drivers to work on the 2.6.33-rt kernels.
Created attachment 223153 [details, diff]
New patch version
This patch resolves the last compilation problem. It applies against both 190 and 195 versions of the driver. Alas, it does not work. X hangs on startup without meaningful errors in the log.
I haven't compared the two patches, but the patch referenced on the Nvidia forum here: http://www.nvnews.net/vbulletin/showthread.php?t=148509 compiles *and* runs fine for me. Give it a go. We don't support the rt kernel. gentoo-sources and vanilla-sources are the only supported kernels. So, if you're not supporting this bug - I suppose you will resolve it as WONTFIX. That's a pity since the patch in the forum is working for me too (with a 195 series kernel). The only problem is that the linked patch isn't making the header file take kernel version into account. If there is interest I could fix it up to that end - and otherwise I could just go on using the patch in my own /usr/local/portage. Or is there an overlay for which it is appropriate? It would be very nice, if a solutions was found, for that to be in the pro-audio overlay. You guys are more than welcome to maintain patches in an overlay. Nothing is stopping you. |