[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <23e24c79-96ca-45da-832b-83a9b6456208@intel.com>
Date: Tue, 11 Feb 2025 12:58:37 -0800
From: Dave Hansen <dave.hansen@...el.com>
To: Sohil Mehta <sohil.mehta@...el.com>, x86@...nel.org,
Dave Hansen <dave.hansen@...ux.intel.com>, Tony Luck <tony.luck@...el.com>
Cc: 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>,
Andrew Cooper <andrew.cooper3@...rix.com>,
David Laight <david.laight.linux@...il.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: [PATCH v2 07/17] hwmon: Fix Intel Family-model checks to include
extended Families
On 2/11/25 11:43, Sohil Mehta wrote:
> + /*
> + * Return without adjustment if the Family isn't 6.
> + * The rest of the function assumes Family 6.
> + */
> + if (c->x86 != 6)
> + return tjmax;
Shouldn't we be converting this over to the vfm matches?
This is kinda icky:
> + return family > 15 ||
> + (family == 6 &&
> + model > 0xe &&
> + model != 0x1c &&
> + model != 0x26 &&
> + model != 0x27 &&
> + model != 0x35 &&
> + model != 0x36);
> }
I'm not sure how this escaped so far. Probably because it's not in arch/x86.
Powered by blists - more mailing lists