1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Have anyone tried 4.0 kernel yet?

Discussion in 'General Linux Discussion' started by Aryvandaar, Apr 18, 2015.

  1. Aryvandaar

    Aryvandaar Active Member

    Joined:
    Jun 21, 2014
    Messages:
    304
    Likes Received:
    28
    Trophy Points:
    28
    Location:
    Norway
    Have anyone tried the 4.0 kernel yet?

    I'm using it atm.
  2. booman

    booman Grand High Exalted Mystic Emperor of Linux Gaming Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    8,153
    Likes Received:
    595
    Trophy Points:
    113
    Location:
    Linux, Arizona
    Home page:
    Nope, I'll wait for Mint to update it for me
  3. ThunderRd

    ThunderRd Irreverent Query Chairman Staff Member

    Joined:
    Dec 17, 2012
    Messages:
    2,516
    Likes Received:
    83
    Trophy Points:
    48
    Location:
    Northern Thailand, the Land of Smiles
    Home page:
    thunderrd@QX9650:~$ uname -a
    Linux QX9650 4.0.0-ck #1 SMP PREEMPT Sun Apr 19 10:44:56 ICT 2015 x86_64 Intel(R) Core(TM)2 Extreme CPU X9650 @ 3.90GHz GenuineIntel GNU/Linux


    I built it a few days ago, so far no problems, other than I had to patch the nvidia v340.76 driver file to cooperate with the kernel. This is a problem if you have an older GPU card that is no longer supported by the new driver versions. If you need it here is the patch, since the nvidia boys haven't included it officially as yet:

    Code:
    --- a/kernel/nv-pat.c.orig
    +++ b/kernel/nv-pat.c
    @@ -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)
    
    Last edited: Apr 21, 2015

Share This Page