Linux Hardware Monitor development
 help / color / mirror / Atom feed
* [PATCH V4 0/4] x86/topology: Fix CPUID.1F handling
@ 2022-10-14  9:01 Zhang Rui
  2022-10-14  9:01 ` [PATCH V4 1/4] hwmon/coretemp: Rename indx to index Zhang Rui
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Zhang Rui @ 2022-10-14  9:01 UTC (permalink / raw)
  To: linux-kernel, x86, linux-hwmon
  Cc: tglx, mingo, bp, dave.hansen, hpa, peterz, jdelvare, linux,
	len.brown, rui.zhang

Handling for CPUID.1F is introduced by commit 7745f03eb395 ("x86/topology:
Add CPUID.1F multi-die/package support").
And only SMT/Core/Die level types are supported at that time.

On Intel AlderLake-N platforms where there are Ecores only, the Ecore
Module topology is enumerated via CPUID.1F Module level.

This exposes two bugs in the CPUID.1F handling code,
1. Linux interprets the Module ID bits as package ID and erroneously
   reports a multi module system as a multi-package system.
2. Linux excludes the unknown Module ID bits from the core ID, and results
   in duplicate core ID’s shown in a package after the first issue solved.

Patch 3/4 and 4/4 fixes these two problems in CPUID.1F handling code, and
patch 1/4 and 2/4 are needed to avoid potential regressions.

thanks,
-rui

---
Changes in V4:
 - Drop a fix for a potential issue, as well as document cleanups/updates.
   So this patch series only contains bug fixes (stable candidates).
 - Integrate the patch subject/changelog improvements from Dave.
 - Add Fixes tags.

Changes in V3:
 - changelog improvements based on Peter' feedback
 - Remove combined tags

Changes in V2:
 - fix/improve changelog/comment wording issues
 - reorder the patches to eliminate bisection breakage window
 - add a new patch for coretemp driver variable renaming
 - update coretemp driver patch to fix a case of ida_free(&ida, -2)

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

end of thread, other threads:[~2022-10-16  3:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-14  9:01 [PATCH V4 0/4] x86/topology: Fix CPUID.1F handling Zhang Rui
2022-10-14  9:01 ` [PATCH V4 1/4] hwmon/coretemp: Rename indx to index Zhang Rui
2022-10-14 13:26   ` Guenter Roeck
2022-10-14 17:12   ` Dave Hansen
2022-10-14 17:20     ` Guenter Roeck
2022-10-16  3:01       ` Zhang Rui
2022-10-14  9:01 ` [PATCH V4 2/4] hwmon/coretemp: Handle large core ID value Zhang Rui
2022-10-14  9:01 ` [PATCH V4 3/4] x86/topology: Fix multiple packages shown on a single-package system Zhang Rui
2022-10-14  9:01 ` [PATCH V4 4/4] x86/topology: Fix duplicated core ID within a package Zhang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox