Skip to content

x86/cpu: Refactor identify_cpu()

Ihor Solodrai bpf linux-mm lkml 3 versions – Applied

Status from this message: The following commit has been merged into the x86/cpu branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 0 repliesApplied
  2. v25 patches 5 repliesSuperseded
  3. v15 patches 4 repliesSuperseded

Changes in v3 from the cover letter

* Commit message edits on patches #1, #2, #5

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5x86/cpu: Factor init_cpu_info() out of identify_cpu()arch/x86/kernel/cpu/common.c+28 -230 replies
2/5x86/cpu: Initialize boot CPU cpuinfo defaults earlyarch/x86/kernel/cpu/common.c+3 -40 replies
3/5x86/cpu: Inline generic_identify() into identify_cpu()arch/x86/kernel/cpu/common.c+14 -180 replies
4/5x86/cpu: Move 32-bit SEP setup into identify_cpu()arch/x86/kernel/cpu/common.c+3 -60 replies
5/5x86/cpu: Don't transiently clear the boot CPU's capabilitiesarch/x86/kernel/cpu/common.c+1 -20 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchNikolay Borisov
1/5
2/5
3/5
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/5] x86/cpu: Refactor identify_cpu()

Refactor identify_cpu() machinery on x86 and then implement a fix for a bug when cpu capabilities are temporarily cleared within an interruptable window. For more details and discussion see the relevant bug report [1] and patch #5 ("x86/cpu: Don't transiently clear the boot CPU's capabilities").

[1] https://lore.kernel.org/bpf/[email protected]/

---

v2->v3:
* Commit message edits on patches #1, #2, #5

v2: https://lore.kernel.org/bpf/[email protected]/

v1->v2:
* Rewrite commit messages to fit more conventional structure (Boris)
* Drop identify_cpu_32() helper, it's unnecessary (Boris)
* New patch (#2): now early_identify_cpu() resets boot_cpu_data through init_cpu_info() as well
* The boot CPU reset is now skipped on 32-bit too (sashiko)

v1: https://lore.kernel.org/bpf/[email protected]/

---

Ihor Solodrai (5):
x86/cpu: Factor init_cpu_info() out of identify_cpu() x86/cpu: Initialize boot CPU cpuinfo defaults early x86/cpu: Inline generic_identify() into identify_cpu() x86/cpu: Move 32-bit SEP setup into identify_cpu() x86/cpu: Don't transiently clear the boot CPU's capabilities

 arch/x86/kernel/cpu/common.c | 92 +++++++++++++++++-------------------
 1 file changed, 44 insertions(+), 48 deletions(-)

base-commit: fd73f4a6659897191fa0d40695fe370925dd3780

Signature · 1 line
2.55.0