Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 241798 - Compile fix for nvidia-drivers-71.86.06 and gentoo-sources-2.6.27
Summary: Compile fix for nvidia-drivers-71.86.06 and gentoo-sources-2.6.27
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Ricardo Mendoza (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 242708
  Show dependency tree
 
Reported: 2008-10-13 17:01 UTC by Sascha Hlusiak
Modified: 2008-12-18 18:38 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Compile fix for 2.6.27 kernels (nvidia-2.6.27.patch,727 bytes, patch)
2008-10-13 17:02 UTC, Sascha Hlusiak
Details | Diff
make nvidia-drivers-71.86.06 work with kernel 2.6.27 (nvidia-patch.patch,708 bytes, patch)
2008-10-18 22:26 UTC, Sascha Hlusiak
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Hlusiak 2008-10-13 17:01:35 UTC
Legacy drivers don't build with recent 2.6.27 kernel. Please apply attached patch, when building on 2.6.27.

Reproducible: Always
Comment 1 Sascha Hlusiak 2008-10-13 17:02:25 UTC
Created attachment 168310 [details, diff]
Compile fix for 2.6.27 kernels
Comment 2 Sascha Hlusiak 2008-10-13 18:01:46 UTC
Sorry, attached patch is wrong, because kill_proc_info is not an exported symbol. I'm unable to find an equivalent that works; using kill_pid failes, because the needed find_vpid is a GPL export only which nvidia isn't. I guess we depend on nvidia to be mercyful. :-(
Comment 3 Wormo (RETIRED) gentoo-dev 2008-10-13 20:09:48 UTC
Yup, looks like 2.6.27 requires an updated driver from Nvidia. Keep an eye on http://www.nvnews.net to see when one gets released...
Comment 4 Sascha Hlusiak 2008-10-18 22:26:44 UTC
Created attachment 169010 [details, diff]
make nvidia-drivers-71.86.06 work with kernel 2.6.27

Following patch in bug #242476 to make nvidia-drivers compile and work. Changes the behaviour by not letting the driver kill procs anymore but nobody knows when the BLOB calls it and how important it is.
Comment 5 Sascha Hlusiak 2008-10-18 22:30:11 UTC
Reopen to examine new patch and decide if it's fixworthy.
Comment 6 Wormo (RETIRED) gentoo-dev 2008-10-18 23:00:40 UTC
How well does the driver built with this patch work for you so far? If everything seems normal, it is worth getting the nvidia ebuild maintainer to take a look.
Comment 7 Sascha Hlusiak 2008-10-18 23:06:21 UTC
The driver built fine, I'm running 2.6.27 now with accelerated 2D and 3D, I can log out of and can kill the server with ctrl+alt+backspace and everythings seems to work just fine. I don't know when kill_proc is called so I don't know what it would break.
Comment 8 Wormo (RETIRED) gentoo-dev 2008-10-19 04:39:38 UTC
Ok thanks for the patch, let's have the maintainer take a look at it
Comment 9 Tony Vroon (RETIRED) gentoo-dev 2008-10-20 09:59:00 UTC
Thank you, but I have passed maintainership of the nvidia-drivers on to ricmm. I no longer have the appropriate hardware in my laptop.
Comment 10 Arthur Nascimento 2008-11-13 12:59:50 UTC
(In reply to comment #2)
> Sorry, attached patch is wrong, because kill_proc_info is not an exported
> symbol. I'm unable to find an equivalent that works; using kill_pid failes,
> because the needed find_vpid is a GPL export only which nvidia isn't. I guess
> we depend on nvidia to be mercyful. :-(
> 

There is an equivalent call on this patch http://bugs.gentoo.org/attachment.cgi?id=170738


Comment 11 Daniel Drake (RETIRED) gentoo-dev 2008-12-02 20:23:28 UTC
w.r.t. the kill_proc modification:

I haven't looked at the actual source file, but from the context available it
looks like the whole function is being removed, resulting in an undefined value
being returned. This would probably cause problems down the line.

I would say that "return RM_ERR_OPERATING_SYSTEM;" is probably a suitable replacement (rather than nothing)
Comment 12 Daniel Drake (RETIRED) gentoo-dev 2008-12-09 21:14:25 UTC
Reminder to maintainers: 2.6.27 is planned to go stable on December 15th, it would be great if you could work on this before then
Comment 13 Doug Goldstein (RETIRED) gentoo-dev 2008-12-18 18:37:19 UTC
nvidia-drivers-71.86.07 have been added to the tree to support 2.6.27. Please test and report any issues you have with that package.
Comment 14 Doug Goldstein (RETIRED) gentoo-dev 2008-12-18 18:38:44 UTC
Marking as fixed since we now have support for 2.6.27.