public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andi Kleen <andi@firstfloor.org>
To: mingo@elte.hu, venkatesh.pallipadi@intel.com, tglx@linutronix.de,
	linux-kernel@vger.kernel.org
Subject: [PATCH] Enable PAT for more AMD CPUs
Date: Thu, 17 Jan 2008 13:36:13 +0100	[thread overview]
Message-ID: <20080117123613.GA22563@basil.nowhere.org> (raw)


I checked some K7 errata files and couldn't find anything related
to PAT.  Also for Fam10h and 11h it should be definitely enabled.

Enable PAT for all AMD CPUs >= 6, which is K7 and newer.

Signed-off-by: Andi Kleen <ak@suse.de>

Index: linux/arch/x86/mm/pat.c
===================================================================
--- linux.orig/arch/x86/mm/pat.c
+++ linux/arch/x86/mm/pat.c
@@ -49,7 +49,7 @@ static int pat_known_cpu(void)
 		return cpu_has_pat;
 
 	if (boot_cpu_data.x86_vendor == X86_VENDOR_AMD &&
-					    (boot_cpu_data.x86 == 0xF))
+					    (boot_cpu_data.x86 >= 6))
 		return cpu_has_pat;
 
 	return 0;

             reply	other threads:[~2008-01-17 12:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 12:36 Andi Kleen [this message]
2008-01-17 12:43 ` [PATCH] Enable PAT for more AMD CPUs Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080117123613.GA22563@basil.nowhere.org \
    --to=andi@firstfloor.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=venkatesh.pallipadi@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox