Skip to contentSkip to conversation

x86 fixes

GIT PULL Merged Ingo Molnar 2 participants 2 messages Jun 2, 2024

lore
Share & tools
lore
#0 lore raw

Linus,

Please pull the latest x86/urgent Git tree from:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-2024-06-02

# HEAD: 0c2f6d04619ec2b53ad4b0b591eafc9389786e86 x86/topology/intel: Unlock CPUID before evaluating anything

Miscellaneous topology parsing fixes:

- Fix topology parsing regression on older CPUs in the new AMD/Hygon parser

- Fix boot crash on odd Intel Quark and similar CPUs that do not fill out cpuinfo_x86::x86_clflush_size and zero out cpuinfo_x86::x86_cache_alignment as a result. Provide 32 bytes as a general fallback value.

- Fix topology enumeration on certain rare CPUs where the BIOS locks certain CPUID leaves and the kernel unlocked them late, which broke with the new topology parsing code. Factor out this unlocking logic and move it earlier in the parsing sequence.

Thanks,

Ingo

------------------>
Dave Hansen (1):
x86/cpu: Provide default cache line size if not enumerated

Thomas Gleixner (2):
x86/topology/amd: Evaluate SMT in CPUID leaf 0x8000001e only on family 0x17 and greater x86/topology/intel: Unlock CPUID before evaluating anything

 arch/x86/kernel/cpu/common.c       |  7 ++++++-
 arch/x86/kernel/cpu/cpu.h          |  2 ++
 arch/x86/kernel/cpu/intel.c        | 25 ++++++++++++++++---------
 arch/x86/kernel/cpu/topology_amd.c |  4 ++--
 4 files changed, 26 insertions(+), 12 deletions(-)