Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208604 - x11-drivers/nvidia-drivers-169.09 fails against 2.6.24-git9
Summary: x11-drivers/nvidia-drivers-169.09 fails against 2.6.24-git9
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2008-02-02 17:30 UTC by Adrian Bassett
Modified: 2008-02-02 19:12 UTC (History)
0 users

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


Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Bassett 2008-02-02 17:30:46 UTC
[ebuild   R   ] x11-drivers/nvidia-drivers-169.09  USE="acpi gtk -custom-cflags (-multilib)" 0 kB

re-emerge of nvidia-drivers-169.09 against upgrade to newest sys-kernel/git-sources (2.6.24-git9) fails with the following diagnostic:

/var/tmp/portage/x11-drivers/nvidia-drivers-169.09/work/NVIDIA-Linux-x86-169.09-pkg0/usr/src/nv/nv-vm.c: In function 'nv_flush_caches':
/var/tmp/portage/x11-drivers/nvidia-drivers-169.09/work/NVIDIA-Linux-x86-169.09-pkg0/usr/src/nv/nv-vm.c:364: error: implicit declaration of function 'global_flush_tlb'
make[3]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-169.09/work/NVIDIA-Linux-x86-169.09-pkg0/usr/src/nv/nv-vm.o] Error 1
make[2]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-169.09/work/NVIDIA-Linux-x86-169.09-pkg0/usr/src/nv] Error 2
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
 * ERROR: x11-drivers/nvidia-drivers-169.09 failed.
 * Call stack:
 *     , line   46:  Called src_compile
 *             environment, line 3552:  Called linux-mod_src_compile
 *             environment, line 2620:  Called die
 * The specific snippet of code:
 *               emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} || die "Unable to make ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}.";
 *  The die message:
 *   Unable to make  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux clean module.

The failure seems to be on account of a commit (d7c8f21a8cad0228c7c5ce2bb6dbd95d1ee49d13) to the kernel code on 30.i.2008 where global_flush_tlb() disappears in favour of cpa_flush_all():

commit d7c8f21a8cad0228c7c5ce2bb6dbd95d1ee49d13
Author: Thomas Gleixner <>
Date:   Wed Jan 30 13:34:07 2008 +0100

    x86: cpa: move flush to cpa
    The set_memory_* and set_pages_* family of API's currently requires the
    callers to do a global tlb flush after the function call; forgetting this is
    a very nasty deathtrap. This patch moves the global tlb flush into
    each of the callers
    Signed-off-by: Arjan van de Ven <>
    Signed-off-by: Ingo Molnar <>
    Signed-off-by: Thomas Gleixner <>

re-iterated by:

commit af1e6844d60057774910a2d08bd75b67d73ba7d5
Author: Thomas Gleixner <>
Date:   Wed Jan 30 13:34:08 2008 +0100

    x86: cpa: rename global_flush_tlb() to cpa_flush_all()
    The function name global_flush_tlb() suggests something different from
    what the function really does. Rename it to cpa_flush_all(), which is an
    understandable counterpart to cpa_flush_range().
    no global visibility of the old API anymore.
    Signed-off-by: Thomas Gleixner <>
    Signed-off-by: Ingo Molnar <>

Of course, nv-vm.c uses global_flush_tlb().

Cf. also: for further details.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 17:35:54 UTC
Unsupported kernel; reopen if you can reproduce with a supported one.
Comment 2 Adrian Bassett 2008-02-02 19:09:44 UTC
Thanks for the comments.

My purpose in reporting thie problem was not to request support as such but to draw attention to an issue (unless the commit is reverted) that will affect a fair number of people not too far in the future as a forthcoming vanilla surface in gentoo-sources.

But I will raise the matter again only in the proper context and once it has become an issue for supported kernels.

Thanks again.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 19:12:09 UTC
Well, since this build just fine with 2.6.24 vanilla, chances are that the broken commit already has been reverted. ;)