Summary: | x11-drivers/nvidia-drivers-340.76 does not build on sys-kernel/gentoo-sources-3.18.19; build on 3.18.16-gentoo | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Roman Gruber <roman.gruber> |
Component: | Current packages | Assignee: | Jeroen Roovers (RETIRED) <jer> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | jrx1138, rdalek1967 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Roman Gruber
2015-08-17 16:59:54 UTC
Please attach your build log; we don't accept pastebin links. Thanks! Solved Knight roman # glxinfo |grep Yes direct rendering: Yes Knight roman # uname -a Linux Knight 4.1.6-gentoo_08_22_2015 #1 SMP PREEMPT Sat Aug 22 23:18:22 CEST 2015 x86_64 Intel(R) Core(TM)2 Duo CPU T9500 @ 2.60GHz GenuineIntel GNU/Linux Knight roman # cat /etc/portage/patches/x11-drivers/nvidia-drivers-340.76/nvidia-drivers-340-76-kernel-4.0.patch --- a/kernel/nv-pat.c.orig 2015-02-20 02:49:40.000000000 +0100 +++ b/kernel/nv-pat.c 2015-02-25 07:56:40.000000000 +0100 @@ -35,8 +35,13 @@ unsigned long cr0 = read_cr0(); write_cr0(((cr0 & (0xdfffffff)) | 0x40000000)); wbinvd(); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) *cr4 = read_cr4(); if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80); +#else + *cr4 = __read_cr4(); + if (*cr4 & 0x80) __write_cr4(*cr4 & ~0x80); +#endif __flush_tlb(); } @@ -46,7 +51,11 @@ wbinvd(); __flush_tlb(); write_cr0((cr0 & 0x9fffffff)); +#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 20, 0) if (cr4 & 0x80) write_cr4(cr4); +#else + if (cr4 & 0x80) __write_cr4(cr4); +#endif } static int nv_determine_pat_mode(void) According to: https://forums.gentoo.org/viewtopic-p-7802832.html#7802832 genius kernel devs have renamed function write_cr4 to __write_cr4 which happens starting with gentoo-sources 3.18.19. (old behaviour till 3.18.16 gentoo-sources ...) As longterm supported kernels are afaik 4.1 now I upgraded to it. It is worth bumping the ebuild for x11-drivers/nvidia-drivers-340.76. It is for legacy gpus like my 9800m gts. longterm supported kernels are now afaik 4.1 (kernel 4.0 seems to work accoridng to above forum link) So anyone can use his legacy gpu with latest gentoo-sources. Please reopen bugs, some peeps run into this, and do not find the bug. The ebuild seems to be not fixed. And please tell me which information is needed. You got emerge -info, build.log. and suggested fix. and there is a hole forum topic about it. whihc clearly states it is an issue, and how to fix it. and i used that for quite some weeks until i upgraded my box. as this is a legacy driver, you may add a text with my proposal at the end of the ebuild, so guys can apply it manually. or fix the ebuild. 340.xx will be only used by guys which legacy gpus, so the others will use newer hardware and they do not need this fix anyway, because the have recent gpus. Recent post of a user with a legacy gpu: https://forums.gentoo.org/viewtopic-t-1031488-highlight-.html and this bug was not visible anymore, becuase someone set it invisible, does not show up when you search for it anymore. fix the ebuild, or at least add some text to the ebuild, when you doubt everyone needs it, which is the case. ty |