Bug#280238: kernel-source-2.6.9: nvidia binary module does not work
tag +patch 280238
On Mon, Nov 08, 2004 at 12:05:55PM +0100, Robert Trebula wrote:
> Package: kernel-source-2.6.9
> Version: 2.6.9-1
> Severity: wishlist
> Tags: patch
>
> Binary module from nvidia.com does not work with this kernel. I guess
> that this patch might fix it but I have not tested it yet (no physical
> access currently).
>
> http://www.nvnews.net/vbulletin/showpost.php?p=467873&postcount=24
Thanks, I had a look and the change does not seem to be upstream yet.
It looks like it should build fine, which is about as much testing
as I can do from here. If you have a chance to test it that would be
great.
I attached the patch above for reference.
--
Horms
diff -ru linux-2.6.10-rc1-bk8/mm/mmap.c linux-2.6.10-rc1-bk8-2/mm/mmap.c
--- linux-2.6.10-rc1-bk8/mm/mmap.c 2004-11-06 15:04:28.000000000 +0100
+++ linux-2.6.10-rc1-bk8-2/mm/mmap.c 2004-11-06 15:39:47.000000000 +0100
@@ -1011,7 +1011,8 @@
__vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
if (vm_flags & VM_LOCKED) {
mm->locked_vm += len >> PAGE_SHIFT;
- make_pages_present(addr, addr + len);
+ if (!(vm_flags & VM_IO))
+ make_pages_present(addr, addr + len);
}
if (flags & MAP_POPULATE) {
up_write(&mm->mmap_sem);
Reply to: