All of lore.kernel.org
 help / color / mirror / Atom feed
* x86: enable pat on amd athlon mode=6
@ 2008-06-25 19:53 Bernd Schubert
  2008-06-25 20:15 ` Rene Herman
  0 siblings, 1 reply; 4+ messages in thread
From: Bernd Schubert @ 2008-06-25 19:53 UTC (permalink / raw)
  To: linux-kernel

Hello,

on my AthlonXP 1700 PAT works fine (I tested it several days). Please accept one of the patches below, I don't know which you refer.


Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>

Patch to enable PAT specifically on model=6

diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..61a5aa5 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -57,6 +57,8 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
 	case X86_VENDOR_AMD:
 		if (c->x86 >= 0xf && c->x86 <= 0x11)
 			return;
+		if (c->x86 == 0x6)
+			return;
 		break;
 	case X86_VENDOR_INTEL:
 		if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))


Or maybe PAT on all system >=6 is suitable?


diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..f12c413 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -55,7 +55,7 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
 {
 	switch (c->x86_vendor) {
 	case X86_VENDOR_AMD:
-		if (c->x86 >= 0xf && c->x86 <= 0x11)
+		if (c->x86 >= 0x6 && c->x86 <= 0x11)
 			return;
 		break;
 	case X86_VENDOR_INTEL:


Thanks,
Bernd

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: x86: enable pat on amd athlon mode=6
  2008-06-25 19:53 x86: enable pat on amd athlon mode=6 Bernd Schubert
@ 2008-06-25 20:15 ` Rene Herman
  2008-06-25 20:20   ` Rene Herman
  0 siblings, 1 reply; 4+ messages in thread
From: Rene Herman @ 2008-06-25 20:15 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-kernel

On 25-06-08 21:53, Bernd Schubert wrote:

> on my AthlonXP 1700 PAT works fine (I tested it several days). Please
> accept one of the patches below, I don't know which you refer.
> 
> Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>

Yes, PAT works equally well on my earlier model 6. The setup's already 
changed in linux-next though and now blacklists some Intel models only:

http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=blob;f=arch/x86/kernel/cpu/addon_cpuid_features.c;h=84a8220a6072c0425b9da95fbb28b5a309cbfda1;hb=HEAD

Rene.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: x86: enable pat on amd athlon mode=6
  2008-06-25 20:15 ` Rene Herman
@ 2008-06-25 20:20   ` Rene Herman
  2008-06-25 20:44     ` Bernd Schubert
  0 siblings, 1 reply; 4+ messages in thread
From: Rene Herman @ 2008-06-25 20:20 UTC (permalink / raw)
  To: Bernd Schubert; +Cc: linux-kernel

On 25-06-08 22:15, Rene Herman wrote:

> On 25-06-08 21:53, Bernd Schubert wrote:
> 
>> on my AthlonXP 1700 PAT works fine (I tested it several days). Please
>> accept one of the patches below, I don't know which you refer.
>>
>> Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>
> 
> Yes, PAT works equally well on my earlier model 6. The setup's already 
> changed in linux-next though and now blacklists some Intel models only:
> 
> http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=blob;f=arch/x86/kernel/cpu/addon_cpuid_features.c;h=84a8220a6072c0425b9da95fbb28b5a309cbfda1;hb=HEAD 

Well, if I provide a link, I might as well look at it myself I guess...

Earlier patches on linux-kernel did the white->black list switching but 
as you can see that in linux-next at least all of AMD is already 
whitelisted.

Rene.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: x86: enable pat on amd athlon mode=6
  2008-06-25 20:20   ` Rene Herman
@ 2008-06-25 20:44     ` Bernd Schubert
  0 siblings, 0 replies; 4+ messages in thread
From: Bernd Schubert @ 2008-06-25 20:44 UTC (permalink / raw)
  To: Rene Herman; +Cc: linux-kernel

On Wednesday 25 June 2008, Rene Herman wrote:
> On 25-06-08 22:15, Rene Herman wrote:
> > On 25-06-08 21:53, Bernd Schubert wrote:
> >> on my AthlonXP 1700 PAT works fine (I tested it several days). Please
> >> accept one of the patches below, I don't know which you refer.
> >>
> >> Signed-off-by: Bernd Schubert <bernd-schubert@gmx.de>
> >
> > Yes, PAT works equally well on my earlier model 6. The setup's already
> > changed in linux-next though and now blacklists some Intel models only:
> >
> > http://git.kernel.org/?p=linux/kernel/git/sfr/linux-next.git;a=blob;f=arc
> >h/x86/kernel/cpu/addon_cpuid_features.c;h=84a8220a6072c0425b9da95fbb28b5a3
> >09cbfda1;hb=HEAD
>
> Well, if I provide a link, I might as well look at it myself I guess...
>
> Earlier patches on linux-kernel did the white->black list switching but
> as you can see that in linux-next at least all of AMD is already
> whitelisted.

Great, thanks!


Cheers,
Bernd

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-06-25 20:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-25 19:53 x86: enable pat on amd athlon mode=6 Bernd Schubert
2008-06-25 20:15 ` Rene Herman
2008-06-25 20:20   ` Rene Herman
2008-06-25 20:44     ` Bernd Schubert

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.