x86/topology: Add CPUID.1F multi-die/package support
authorLen Brown <len.brown@intel.com>
Mon, 13 May 2019 17:58:45 +0000 (13:58 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 23 May 2019 08:08:30 +0000 (10:08 +0200)
commit7745f03eb39587dd15a1fb26e6223678b8e906d2
tree77b80b9f708902fe88699b05a3da830cb70b0c91
parenta188339ca5a396acc588e5851ed7e19f66b0ebd9
x86/topology: Add CPUID.1F multi-die/package support

Some new systems have multiple software-visible die within each package.

Update Linux parsing of the Intel CPUID "Extended Topology Leaf" to handle
either CPUID.B, or the new CPUID.1F.

Add cpuinfo_x86.die_id and cpuinfo_x86.max_dies to store the result.

die_id will be non-zero only for multi-die/package systems.

Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: linux-doc@vger.kernel.org
Link: https://lkml.kernel.org/r/7b23d2d26d717b8e14ba137c94b70943f1ae4b5c.1557769318.git.len.brown@intel.com
Documentation/x86/topology.rst
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/topology.c
arch/x86/kernel/smpboot.c