Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 69496 Details for
Bug 107547
patch from nvidia for 7676 and amd64
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for amd64/emt64 from nvidia on the nvidia-forum
NVIDIA_kernel-1.0-7676-1359015.diff (text/plain), 3.22 KB, created by
Volker Hemmann
on 2005-09-29 08:54:29 UTC
(
hide
)
Description:
patch for amd64/emt64 from nvidia on the nvidia-forum
Filename:
MIME Type:
Creator:
Volker Hemmann
Created:
2005-09-29 08:54:29 UTC
Size:
3.22 KB
patch
obsolete
>diff -ru usr/src/nv/Makefile.kbuild usr/src/nv.1359015/Makefile.kbuild >--- usr/src/nv/Makefile.kbuild 2005-07-29 22:51:12.000000000 +0200 >+++ usr/src/nv.1359015/Makefile.kbuild 2005-09-06 23:15:03.788036912 +0200 >@@ -222,6 +222,10 @@ > EXTRA_CFLAGS += -DNV_VMAP_4_PRESENT > endif > >+ifeq ($(shell $(CONFTEST) supported_pte_mask), 1) >+ EXTRA_CFLAGS += -DNV_SUPPORTED_PTE_MASK_PRESENT >+endif >+ > # > # Miscellaneous NVIDIA kernel module build support targets. They are needed > # to satisfy KBUILD requirements and to support NVIDIA specifics. >diff -ru usr/src/nv/Makefile.nvidia usr/src/nv.1359015/Makefile.nvidia >--- usr/src/nv/Makefile.nvidia 2005-07-29 22:51:12.000000000 +0200 >+++ usr/src/nv.1359015/Makefile.nvidia 2005-09-06 23:15:03.788036912 +0200 >@@ -85,6 +85,10 @@ > DEFINES += -DNV_VMAP_4_PRESENT > endif > >+ifeq ($(shell $(CONFTEST) supported_pte_mask), 1) >+ EXTRA_CFLAGS += -DNV_SUPPORTED_PTE_MASK_PRESENT >+endif >+ > DEFINES+=$(EXTRA_DEFINES) > > # allow build parameters to be passed in through the environment >diff -ru usr/src/nv/conftest.sh usr/src/nv.1359015/conftest.sh >--- usr/src/nv/conftest.sh 2005-07-29 22:51:12.000000000 +0200 >+++ usr/src/nv.1359015/conftest.sh 2005-09-06 23:15:03.789036760 +0200 >@@ -537,7 +537,8 @@ > > vmap_arg_count) > # >- # Determine, if vmap() is present, and how many arguments it takes >+ # Determine, if vmap() is present, and how many arguments >+ # it takes. > # > > echo "#include <linux/vmalloc.h> >@@ -567,4 +568,30 @@ > else > exit 1 # there ain't no vmap() > fi >+ ;; >+ >+ supported_pte_mask) >+ # >+ # Determine if the i386/x86_64 __supported_pte_mask symbol >+ # is available. >+ # >+ >+ echo "#include <asm/pgtable.h> >+ #include <asm/page.h> >+ void nv___suported_pte_mask_test() { >+ pgprot_t prot = __pgprot(0); >+ pgprot_val(prot) &= __supported_pte_mask; >+ }" > conftest$$.c >+ >+ $CC $CFLAGS -c conftest$$.c > /dev/null 2>&1 >+ rm -f conftest$$.c >+ >+ if [ -f conftest$$.o ]; then >+ rm -f conftest$$.o >+ echo 1 >+ else >+ echo 0 >+ fi >+ ;; >+ > esac >diff -ru usr/src/nv/nv-linux.h usr/src/nv.1359015/nv-linux.h >--- usr/src/nv/nv-linux.h 2005-07-29 22:51:12.000000000 +0200 >+++ usr/src/nv.1359015/nv-linux.h 2005-09-06 23:16:43.998802560 +0200 >@@ -980,7 +980,11 @@ > if (nv_use_cpa) > { > struct page *page = virt_to_page(__va(page_ptr->phys_addr)); >- change_page_attr(page, 1, PAGE_KERNEL_NOCACHE); >+ pgprot_t prot = PAGE_KERNEL_NOCACHE; >+#if defined(NV_SUPPORTED_PTE_MASK_PRESENT) >+ pgprot_val(prot) &= __supported_pte_mask; >+#endif >+ change_page_attr(page, 1, prot); > } > } > static inline void NV_SET_PAGE_ATTRIB_CACHED(nv_pte_t *page_ptr) >@@ -988,7 +992,11 @@ > if (nv_use_cpa) > { > struct page *page = virt_to_page(__va(page_ptr->phys_addr)); >- change_page_attr(page, 1, PAGE_KERNEL); >+ pgprot_t prot = PAGE_KERNEL; >+#if defined(NV_SUPPORTED_PTE_MASK_PRESENT) >+ pgprot_val(prot) &= __supported_pte_mask; >+#endif >+ change_page_attr(page, 1, prot); > } > } > #else
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 107547
: 69496