* [X86] Add recent Centaur CPUs to PAT whitelist
@ 2008-05-20 4:09 Dave Jones
2008-05-20 5:49 ` Yinghai Lu
0 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2008-05-20 4:09 UTC (permalink / raw)
To: Linux Kernel; +Cc: Ingo Molnar, Thomas Gleixner, hpa
>From conversation with Centaur engineers, both the newer generations
of the VIA C7, and their future CPUs support PAT, with no known errata.
Signed-off-by: Dave Jones <davej@redhat.com>
diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..638a3a6 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -62,6 +81,10 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
return;
break;
+ case X86_VENDOR_CENTAUR:
+ if ((c->x86 > 6) || (c->x86 == 6 && c->x86_model >= 10))
+ set_cpu_cap(c, X86_FEATURE_PAT);
+ break;
}
pat_disable(cpu_has_pat ?
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-20 4:09 [X86] Add recent Centaur CPUs to PAT whitelist Dave Jones
@ 2008-05-20 5:49 ` Yinghai Lu
2008-05-20 13:19 ` Dave Jones
0 siblings, 1 reply; 8+ messages in thread
From: Yinghai Lu @ 2008-05-20 5:49 UTC (permalink / raw)
To: Dave Jones; +Cc: Linux Kernel, Ingo Molnar, Thomas Gleixner, hpa
On Mon, May 19, 2008 at 9:09 PM, Dave Jones <davej@redhat.com> wrote:
> From conversation with Centaur engineers, both the newer generations
> of the VIA C7, and their future CPUs support PAT, with no known errata.
>
> Signed-off-by: Dave Jones <davej@redhat.com>
>
> diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
> index c2e1ce3..638a3a6 100644
> --- a/arch/x86/kernel/cpu/addon_cpuid_features.c
> +++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
> @@ -62,6 +81,10 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
> if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
> return;
> break;
> + case X86_VENDOR_CENTAUR:
> + if ((c->x86 > 6) || (c->x86 == 6 && c->x86_model >= 10))
> + set_cpu_cap(c, X86_FEATURE_PAT);
> + break;
> }
>
> pat_disable(cpu_has_pat ?
you may need to return early...
> + case X86_VENDOR_CENTAUR:
> + if ((c->x86 > 6) || (c->x86 == 6 && c->x86_model >= 10)) {
> + set_cpu_cap(c, X86_FEATURE_PAT); /* may not need, if cpuid already has that set */
> + return;
> + }
> + break;
YH
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-20 5:49 ` Yinghai Lu
@ 2008-05-20 13:19 ` Dave Jones
2008-05-21 23:56 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2008-05-20 13:19 UTC (permalink / raw)
To: Yinghai Lu; +Cc: Linux Kernel, Ingo Molnar, Thomas Gleixner, hpa
On Mon, May 19, 2008 at 10:49:28PM -0700, Yinghai Lu wrote:
> > + case X86_VENDOR_CENTAUR:
> > + if ((c->x86 > 6) || (c->x86 == 6 && c->x86_model >= 10))
> > + set_cpu_cap(c, X86_FEATURE_PAT);
> > + break;
> > }
> >
> > pat_disable(cpu_has_pat ?
>
> you may need to return early...
Argh, old version of the patch. This one should be right.
Dave
---
>From conversation with Centaur engineers, both the newer generations
of the VIA C7, and their future CPUs support PAT, with no known errata.
Signed-off-by: Dave Jones <davej@redhat.com>
diff --git a/arch/x86/kernel/cpu/addon_cpuid_features.c b/arch/x86/kernel/cpu/addon_cpuid_features.c
index c2e1ce3..b9f14f9 100644
--- a/arch/x86/kernel/cpu/addon_cpuid_features.c
+++ b/arch/x86/kernel/cpu/addon_cpuid_features.c
@@ -62,6 +62,10 @@ void __cpuinit validate_pat_support(struct cpuinfo_x86 *c)
if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
return;
break;
+ case X86_VENDOR_CENTAUR:
+ if ((c->x86 > 6) || (c->x86 == 6 && c->x86_model >= 10))
+ return;
+ break;
}
pat_disable(cpu_has_pat ?
--
http://www.codemonkey.org.uk
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-20 13:19 ` Dave Jones
@ 2008-05-21 23:56 ` H. Peter Anvin
2008-05-22 14:07 ` Dave Jones
0 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2008-05-21 23:56 UTC (permalink / raw)
To: Dave Jones, Yinghai Lu, Linux Kernel, Ingo Molnar,
Thomas Gleixner, hpa
Dave Jones wrote:
>
> From conversation with Centaur engineers, both the newer generations
> of the VIA C7, and their future CPUs support PAT, with no known errata.
>
> Signed-off-by: Dave Jones <davej@redhat.com>
>
Question: are there any VIA CPUs that display the PAT CPUID flag that
aren't covered by the above?
-hpa
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-21 23:56 ` H. Peter Anvin
@ 2008-05-22 14:07 ` Dave Jones
2008-05-22 16:48 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2008-05-22 14:07 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Yinghai Lu, Linux Kernel, Ingo Molnar, Thomas Gleixner
On Wed, May 21, 2008 at 04:56:28PM -0700, H. Peter Anvin wrote:
> Dave Jones wrote:
> >
> > From conversation with Centaur engineers, both the newer generations
> > of the VIA C7, and their future CPUs support PAT, with no known errata.
> >
> > Signed-off-by: Dave Jones <davej@redhat.com>
> >
>
> Question: are there any VIA CPUs that display the PAT CPUID flag that
> aren't covered by the above?
No. They only added PAT support with the current Esther (C7) generation iirc.
Dave
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-22 14:07 ` Dave Jones
@ 2008-05-22 16:48 ` H. Peter Anvin
2008-05-22 17:02 ` Dave Jones
0 siblings, 1 reply; 8+ messages in thread
From: H. Peter Anvin @ 2008-05-22 16:48 UTC (permalink / raw)
To: Dave Jones, H. Peter Anvin, Yinghai Lu, Linux Kernel, Ingo Molnar,
Thomas Gleixner
Dave Jones wrote:
> On Wed, May 21, 2008 at 04:56:28PM -0700, H. Peter Anvin wrote:
> > Dave Jones wrote:
> > >
> > > From conversation with Centaur engineers, both the newer generations
> > > of the VIA C7, and their future CPUs support PAT, with no known errata.
> > >
> > > Signed-off-by: Dave Jones <davej@redhat.com>
> > >
> >
> > Question: are there any VIA CPUs that display the PAT CPUID flag that
> > aren't covered by the above?
>
> No. They only added PAT support with the current Esther (C7) generation iirc.
>
OK, so we should just enable VIA unconditionally as long as PAT is
displayed and not worry about generation numbers; same with Transmeta
(only the Transmeta Efficeon supported PAT, and it had a
strictly-coherent memory system.)
-hpa
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-22 16:48 ` H. Peter Anvin
@ 2008-05-22 17:02 ` Dave Jones
2008-05-22 20:23 ` H. Peter Anvin
0 siblings, 1 reply; 8+ messages in thread
From: Dave Jones @ 2008-05-22 17:02 UTC (permalink / raw)
To: H. Peter Anvin; +Cc: Yinghai Lu, Linux Kernel, Ingo Molnar, Thomas Gleixner
On Thu, May 22, 2008 at 09:48:44AM -0700, H. Peter Anvin wrote:
> Dave Jones wrote:
> > On Wed, May 21, 2008 at 04:56:28PM -0700, H. Peter Anvin wrote:
> > > Dave Jones wrote:
> > > >
> > > > From conversation with Centaur engineers, both the newer generations
> > > > of the VIA C7, and their future CPUs support PAT, with no known errata.
> > > >
> > > > Signed-off-by: Dave Jones <davej@redhat.com>
> > > >
> > >
> > > Question: are there any VIA CPUs that display the PAT CPUID flag that
> > > aren't covered by the above?
> >
> > No. They only added PAT support with the current Esther (C7) generation iirc.
> >
>
> OK, so we should just enable VIA unconditionally as long as PAT is
> displayed and not worry about generation numbers; same with Transmeta
> (only the Transmeta Efficeon supported PAT, and it had a
> strictly-coherent memory system.)
Like so?
Unconditionally enable PAT support on Centaur and Transmeta CPUs.
All known models that advertise PAT have no known errata.
Signed-off-by: Dave Jones <davej@redhat.com>
--- linux-2.6/arch/x86/kernel/cpu/addon_cpuid_features.c~ 2008-05-22 12:59:07.000000000 -0400
+++ linux-2.6/arch/x86/kernel/cpu/addon_cpuid_features.c 2008-05-22 12:59:36.000000000 -0400
@@ -62,6 +62,9 @@ void __cpuinit validate_pat_support(stru
if (c->x86 == 0xF || (c->x86 == 6 && c->x86_model >= 15))
return;
break;
+ case X86_VENDOR_CENTAUR:
+ case X86_VENDOR_TRANSMETA:
+ return;
}
pat_disable(cpu_has_pat ?
--
http://www.codemonkey.org.uk
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [X86] Add recent Centaur CPUs to PAT whitelist
2008-05-22 17:02 ` Dave Jones
@ 2008-05-22 20:23 ` H. Peter Anvin
0 siblings, 0 replies; 8+ messages in thread
From: H. Peter Anvin @ 2008-05-22 20:23 UTC (permalink / raw)
To: Dave Jones, H. Peter Anvin, Yinghai Lu, Linux Kernel, Ingo Molnar,
Thomas Gleixner
Dave Jones wrote:
>
> Like so?
>
> Unconditionally enable PAT support on Centaur and Transmeta CPUs.
> All known models that advertise PAT have no known errata.
>
> Signed-off-by: Dave Jones <davej@redhat.com>
>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Eventually the whitelist should decay into a blacklist.
-hpa
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-05-22 20:24 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-20 4:09 [X86] Add recent Centaur CPUs to PAT whitelist Dave Jones
2008-05-20 5:49 ` Yinghai Lu
2008-05-20 13:19 ` Dave Jones
2008-05-21 23:56 ` H. Peter Anvin
2008-05-22 14:07 ` Dave Jones
2008-05-22 16:48 ` H. Peter Anvin
2008-05-22 17:02 ` Dave Jones
2008-05-22 20:23 ` H. Peter Anvin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox