Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15722 - nvidia rmap 15b issue with gentoo/lolo sources
Summary: nvidia rmap 15b issue with gentoo/lolo sources
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: (DEPRECATED)
Depends on:
Reported: 2003-02-14 20:31 UTC by Jay Pfeifer (RETIRED)
Modified: 2003-03-17 18:42 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

sample updated ebuild (nvidia-kernel-1.0.4191-r1.ebuild,3.81 KB, text/plain)
2003-02-15 07:53 UTC, Jay Pfeifer (RETIRED)
ebuild w/simple check for rmap on 2.4 kernels (nvidia-kernel-1.0.4191-r2.ebuild,3.91 KB, text/plain)
2003-02-22 08:34 UTC, Jay Pfeifer (RETIRED)

Note You need to log in before you can comment on or make changes to this bug.
Description Jay Pfeifer (RETIRED) gentoo-dev 2003-02-14 20:31:54 UTC
rmap15b has issues with nvidia-kernel 

Reproducible: Always
Steps to Reproduce:

solution is here:
Comment 1 Jay Pfeifer (RETIRED) gentoo-dev 2003-02-14 21:42:47 UTC
want to clarify. i know that a rmap patch exists in the nvidia-kernel ebuild, but it fails to 
help with highmem/rmap when used on lolo-sources 2.4.20r1_rc3 or higher. It works fine on 
lolo-sources 2.4.20-r1_rc2 and earlier. the patch earlier does not help. 
Comment 2 Jay Pfeifer (RETIRED) gentoo-dev 2003-02-14 22:26:09 UTC
ok. the fix was right under our noses... we apply the patch from here: 
only to 2.5 kernels...  :-) 
it is also for the rmap issue on 2.4 - i'll get an update ebuild attached in a bit. 
patch works great so far... 
Comment 3 Jay Pfeifer (RETIRED) gentoo-dev 2003-02-15 07:53:40 UTC
Created attachment 8298 [details]
sample updated ebuild

maybe this should be assigned to azarah? it is a fix for the nvidia-kernel
anyway, he is a sample updated ebuild that will patch 2.4 as well as 2.5 based
kernels. i also 
removed the seemingly outdated rmap patch we were using. 
Comment 4 Brandon Low (RETIRED) gentoo-dev 2003-02-21 20:27:34 UTC
az, please take a look at this, I'm not sure what we should do about this since only some kernels currently use rmap... thanks.
Comment 5 Martin Schlemmer (RETIRED) gentoo-dev 2003-02-22 06:37:51 UTC
The patch in protage is the updated on.  Now, we could apply it for 2.4 kernels,
only problem is .... will it work fine with non rmap kernel ?
Comment 6 Jay Pfeifer (RETIRED) gentoo-dev 2003-02-22 08:16:34 UTC
ok, how about this: 
we have to have the running kernel's sources in /usr/src/linux so... 
so, we already do the check for 2.4 vs 2.5, when it comes up as 2.4 
why don't we have the ebuild check for /usr/src/linux/mm/rmap.c 
if it exists... apply the patch(NVIDIA_kernel-1.0-4191-2.5-tl.diff), if not skip it. 
make sense? 
i'll write a sample ebuild and post in a bit. 
Comment 7 Jay Pfeifer (RETIRED) gentoo-dev 2003-02-22 08:34:22 UTC
Created attachment 8606 [details]
ebuild w/simple check for rmap on 2.4 kernels

basically reworked this minor change to the ebuild:

local RMAPSRC="/usr/src/linux/mm/rmap.c"

    cd ${S}
    if [ "${KV_major}" -eq 2 -a "${KV_minor}" -eq 4 ] && [ -r "${RMAPSRC}" ]
	einfo "Detected rmap enabled kernel."
	EPATCH_SINGLE_MSG="Applying rmap patch for kernel 2.4..." \
	epatch ${FILESDIR}/${NV_PACKAGE}-2.5-tl.diff

Comment 8 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-04 20:48:35 UTC
added updated ebuild to cvs. 
Comment 9 Jay Pfeifer (RETIRED) gentoo-dev 2003-03-07 23:05:02 UTC
closing as the nvidia-kernel/rmap15b issue seems to be resolved.