[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241221103528.2ca530a5@dsl-u17-10>
Date: Sat, 21 Dec 2024 10:35:28 +0000
From: David Laight <david.laight.linux@...il.com>
To: Sohil Mehta <sohil.mehta@...el.com>
Cc: x86@...nel.org, Dave Hansen <dave.hansen@...ux.intel.com>, Tony Luck
<tony.luck@...el.com>, Peter Zijlstra <peterz@...radead.org>, Ingo Molnar
<mingo@...hat.com>, Arnaldo Carvalho de Melo <acme@...nel.org>, Namhyung
Kim <namhyung@...nel.org>, Mark Rutland <mark.rutland@....com>, Alexander
Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa
<jolsa@...nel.org>, Ian Rogers <irogers@...gle.com>, Adrian Hunter
<adrian.hunter@...el.com>, Kan Liang <kan.liang@...ux.intel.com>, Thomas
Gleixner <tglx@...utronix.de>, Borislav Petkov <bp@...en8.de>, "H . Peter
Anvin" <hpa@...or.com>, "Rafael J . Wysocki" <rafael@...nel.org>, Len Brown
<lenb@...nel.org>, Andy Lutomirski <luto@...nel.org>, Viresh Kumar
<viresh.kumar@...aro.org>, Fenghua Yu <fenghua.yu@...el.com>, Jean Delvare
<jdelvare@...e.com>, Guenter Roeck <linux@...ck-us.net>, Zhang Rui
<rui.zhang@...el.com>, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-pm@...r.kernel.org, linux-hwmon@...r.kernel.org
Subject: Re: [RFC PATCH 08/15] x86/cpu/intel: Replace early family 6 checks
with VFM ones
On Fri, 20 Dec 2024 21:37:03 +0000
Sohil Mehta <sohil.mehta@...el.com> wrote:
> Introduce names for some old pentium models and replace with VFM based
> checks.
>
> Signed-off-by: Sohil Mehta <sohil.mehta@...el.com>
> ---
> arch/x86/include/asm/intel-family.h | 3 +++
> arch/x86/kernel/cpu/intel.c | 13 ++++++-------
> 2 files changed, 9 insertions(+), 7 deletions(-)
>
> diff --git a/arch/x86/include/asm/intel-family.h b/arch/x86/include/asm/intel-family.h
> index 6d7b04ffc5fd..41278093bcd4 100644
> --- a/arch/x86/include/asm/intel-family.h
> +++ b/arch/x86/include/asm/intel-family.h
> @@ -46,6 +46,9 @@
> #define INTEL_ANY IFM(X86_FAMILY_ANY, X86_MODEL_ANY)
>
> #define INTEL_PENTIUM_PRO IFM(6, 0x01)
> +#define INTEL_PENTIUM_II_KLAMATH IFM(6, 0x03)
> +#define INTEL_PENTIUM_III_TUALATIN IFM(6, 0x0B)
> +#define INTEL_PENTIUM_M_DOTHAN IFM(6, 0x0D)
>
> #define INTEL_CORE_YONAH IFM(6, 0x0E)
I think I'd add all the extra defines in one patch.
Isn't the order 'funny' as well.
I think it ends up being neither numeric or date order.
Increasing family order is probably best, but the headings for each
'family' probably need to be a bit more descriptive (esp 15 - all P4
netburst).
David
Powered by blists - more mailing lists