[pkg-nvidia-devel] Work towards 2.6.29 support.
Lennart Sorensen
lsorense at csclub.uwaterloo.ca
Tue Mar 31 20:50:51 UTC 2009
On Tue, Mar 31, 2009 at 04:45:26PM -0400, Lennart Sorensen wrote:
> New file nv/conftest.h:
> /* Implement conftest.sh function remap_page_range */
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,11)
> #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
> #define NV_REMAP_PAGE_RANGE_PRESENT
> #define NV_REMAP_PAGE_RANGE_ARGUMENT_COUNT 4
> #else
> #define NV_REMAP_PAGE_RANGE_PRESENT
> #define NV_REMAP_PAGE_RANGE_ARGUMENT_COUNT 5
> #endif
> #else
> #undef NV_REMAP_PAGE_RANGE_PRESENT
> #endif
>
> /* Implement conftest.sh function set_pages_uc */
> #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25)
> #ifdef NV_CHANGE_PAGE_ATTR_PRESENT
> #undef NV_CHANGE_PAGE_ATTR_PRESENT
> #endif
> #define NV_SET_PAGES_UC_PRESENT
> #else
> #undef NV_SET_PAGES_UC_PRESENT
> #endif
This stuff by the way is the result of 5 hours of grepping through git
logs and all 2.4.x and 2.6.x kernel patch files to locate when each
change nvidia cares about happend, which really is something nvidia
should be doing instead of their stupid conftest.sh script.
Do you have any contacts at nvidia that might be interested in taking
over this file to make the nvidia driver fully kbuild compatible?
The only thing it doesn't cover is the CONFIG_XEN detection stuff as
far as I can tell. I couldn't make sense of what their test was trying
to do for that.
--
Len Sorensen
More information about the Pkg-nvidia-devel
mailing list