Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 468346 Details for
Bug 613884
x11-drivers/nvidia-drivers-340 fail to compile with kernel-4.10
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to compile x11-drivers/nvidia-drivers-340.120 with kernel-4.10
nvidia-4.10.patch (text/plain), 2.05 KB, created by
Sven Müller
on 2017-03-26 10:17:16 UTC
(
hide
)
Description:
Patch to compile x11-drivers/nvidia-drivers-340.120 with kernel-4.10
Filename:
MIME Type:
Creator:
Sven Müller
Created:
2017-03-26 10:17:16 UTC
Size:
2.05 KB
patch
obsolete
>diff -ur work.orig/kernel/nv-linux.h work/kernel/nv-linux.h >--- work.orig/kernel/nv-linux.h 2017-03-02 20:07:06.155149811 +0100 >+++ work/kernel/nv-linux.h 2017-03-02 20:09:39.871830734 +0100 >@@ -270,7 +270,8 @@ > > extern int nv_pat_mode; > >-#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU) >+//#if !defined(NV_VMWARE) && defined(CONFIG_HOTPLUG_CPU) >+#if 0 > #define NV_ENABLE_HOTPLUG_CPU > #include <linux/cpu.h> /* CPU hotplug support */ > #include <linux/notifier.h> /* struct notifier_block, etc */ >diff -ur work.orig/kernel/nv-p2p.c work/kernel/nv-p2p.c >--- work.orig/kernel/nv-p2p.c 2017-03-02 20:07:06.155149811 +0100 >+++ work/kernel/nv-p2p.c 2017-03-02 20:11:52.313197256 +0100 >@@ -112,7 +112,7 @@ > int nvidia_p2p_get_pages( > uint64_t p2p_token, > uint32_t va_space, >- uint64_t virtual_address, >+ uint64_t address, > uint64_t length, > struct nvidia_p2p_page_table **page_table, > void (*free_callback)(void * data), >@@ -136,7 +136,7 @@ > return -ENOMEM; > > status = rm_p2p_get_pages(sp, p2p_token, va_space, >- virtual_address, length, &physical_addresses, &wreqmb_h, >+ address, length, &physical_addresses, &wreqmb_h, > &rreqmb_h, &entries, *page_table, > free_callback, data); > if (status != RM_OK) >@@ -195,7 +195,7 @@ > nvidia_p2p_page_t_cache); > } > >- rm_p2p_put_pages(sp, p2p_token, va_space, virtual_address, >+ rm_p2p_put_pages(sp, p2p_token, va_space, address, > *page_table); > > os_free_mem((*page_table)->pages); >@@ -232,7 +232,7 @@ > int nvidia_p2p_put_pages( > uint64_t p2p_token, > uint32_t va_space, >- uint64_t virtual_address, >+ uint64_t address, > struct nvidia_p2p_page_table *page_table > ) > { >@@ -243,7 +243,7 @@ > if (sp == NULL) > return -ENOMEM; > >- status = rm_p2p_put_pages(sp, p2p_token, va_space, virtual_address, >+ status = rm_p2p_put_pages(sp, p2p_token, va_space, address, > page_table); > if (status == RM_OK) > nvidia_p2p_free_page_table(page_table);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 613884
: 468346 |
468528