x86: Disable large pages on CPUs with Atom erratum AAE44

Previous thread: powerpc/ps3: Update ps3_defconfig by Linux Kernel Mailing List on Thursday, April 29, 2010 - 5:59 pm. (1 message)

Next thread: ARM: 6023/1: update bcmring_defconfig to latest version and fix build error by Linux Kernel Mailing List on Thursday, April 29, 2010 - 5:59 pm. (1 message)
From: Linux Kernel Mailing List
Date: Thursday, April 29, 2010 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/7a0fc404ae663776e96db43879a0fa24fec1fa3a
Commit:     7a0fc404ae663776e96db43879a0fa24fec1fa3a
Parent:     7ce5a2b9bb2e92902230e3121d8c3047fab9cb47
Author:     H. Peter Anvin <hpa@linux.intel.com>
AuthorDate: Tue Apr 13 14:40:54 2010 -0700
Committer:  H. Peter Anvin <hpa@zytor.com>
CommitDate: Fri Apr 23 16:49:51 2010 -0700

    x86: Disable large pages on CPUs with Atom erratum AAE44
    
    Atom erratum AAE44/AAF40/AAG38/AAH41:
    
    "If software clears the PS (page size) bit in a present PDE (page
    directory entry), that will cause linear addresses mapped through this
    PDE to use 4-KByte pages instead of using a large page after old TLB
    entries are invalidated. Due to this erratum, if a code fetch uses
    this PDE before the TLB entry for the large page is invalidated then
    it may fetch from a different physical address than specified by
    either the old large page translation or the new 4-KByte page
    translation. This erratum may also cause speculative code fetches from
    incorrect addresses."
    
    [http://download.intel.com/design/processor/specupdt/319536.pdf]
    
    Where as commit 211b3d03c7400f48a781977a50104c9d12f4e229 seems to
    workaround errata AAH41 (mixed 4K TLBs) it reduces the window of
    opportunity for the bug to occur and does not totally remove it.  This
    patch disables mixed 4K/4MB page tables totally avoiding the page
    splitting and not tripping this processor issue.
    
    This is based on an original patch by Colin King.
    
    Originally-by: Colin Ian King <colin.king@canonical.com>
    Cc: Colin Ian King <colin.king@canonical.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
    LKML-Reference: <1269271251-19775-1-git-send-email-colin.king@canonical.com>
    Cc: <stable@kernel.org>
---
 arch/x86/kernel/cpu/intel.c |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git ...
Previous thread: powerpc/ps3: Update ps3_defconfig by Linux Kernel Mailing List on Thursday, April 29, 2010 - 5:59 pm. (1 message)

Next thread: ARM: 6023/1: update bcmring_defconfig to latest version and fix build error by Linux Kernel Mailing List on Thursday, April 29, 2010 - 5:59 pm. (1 message)