|
|
#1 | |
|
Registered User
Join Date: Apr 2003
Posts: 48
|
177.70 is working under 2.6.27-rc3-mm1 and a bleeding-edge 2.6.27-rc5-mmotm (as of 08/29) kernel, with only one minor speed bump - the API for cap_raise() is changed in recent -mm kernels. Fortunately, all it's doing is raising the RLIMIT_MEMLOCK limit, which is configurable via other means on Fedora and probably most other sane distributions...
I've attached the one trivial patch needed... |
|
|
|
|
|
|
#2 | |
|
Registered User
Join Date: Apr 2003
Posts: 48
|
OK.. Now to actually *attach* 8t.
![]() |
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Apr 2003
Posts: 48
|
Blarg. I suck. Especially when Noscript nukes the javascript...
![]() |
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Jul 2008
Location: CHristchurch, New Zealand
Posts: 15
|
What is the problem you see with the driver (many of us have problems with that beta and various configurations) and is the patch for the driver or the kernel?
|
|
|
|
|
|
|
#5 |
|
Registered User
Join Date: Apr 2003
Posts: 48
|
The patch is against usr/src/nv/os-interface.c in the driver. It basically converts a '#if !CONFIG_XEN' into an '#if 0' around some code that sets a resource limit. That code include a call to cap_raise(), which has a different API in recent -mm kernels. The end result is that the driver can't automagically raise the user's ulimit for mem-lockable pages - fortunately, most distros allow you to configure that ulimit via other means.
A *proper* fix would be to check what cap_raise() API the kernel has, and do the appropriate #ifdef magic for both cases. I don't blame NVidia in the slightest if they insist on waiting for that API change to actually land in the mainline kernel before they do something - there's no such thing as a nailed-down API in the -mm tree My patch was a quick one-liner so I could get a works-for-me driver so I could proceed to find all the *other* stuff busticated in current -mm.The patch is totally useless unless you're either (a) trying to run a very recent (last 2-3 weeks) -mm kernel or (b) need a heads-up that there may be an API change future drivers need to worry about. |
|
|
|
|
|
#6 | |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
I briefly looked at this today, but didn't have much lock with the current mmotm kernel and the most recent -mm* kernel I found didn't have the problem described here. I'll take another look when the next -mm* kernel becomes available.
|
|
|
|
|
|
|
#7 |
|
NVIDIA Corporation
Join Date: Aug 2002
Posts: 3,740
|
I was able to reproduce the problem with Linux 2.6.27-rc5-mm1 at the end of last week. It should be resolved in a future driver release.
|
|
|
|
![]() |
| Thread Tools | |
|
|