Jérémy Compostella has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85577?usp=email )
Change subject: cpu/x86/topology: Add module_id to CPU topology ......................................................................
cpu/x86/topology: Add module_id to CPU topology
This commit adds a module_id field to the cpu_topology structure.
This field is used to identify the module that a CPU is located on. This information is useful for power management and other purposes.
Change-Id: I1c8a76dce48c0539a3f36015674553a2461dec27 Signed-off-by: Jeremy Compostella jeremy.compostella@intel.com Reviewed-on: https://review.coreboot.org/c/coreboot/+/85577 Reviewed-by: Subrata Banik subratabanik@google.com Reviewed-by: Frans Hendriks fhendriks@eltan.com Reviewed-by: Pranava Y N pranavayn@google.com Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M src/cpu/x86/topology.c M src/include/device/path.h 2 files changed, 2 insertions(+), 0 deletions(-)
Approvals: Subrata Banik: Looks good to me, approved Pranava Y N: Looks good to me, approved build bot (Jenkins): Verified Frans Hendriks: Looks good to me, approved
diff --git a/src/cpu/x86/topology.c b/src/cpu/x86/topology.c index b2fd202..58e71fc 100644 --- a/src/cpu/x86/topology.c +++ b/src/cpu/x86/topology.c @@ -116,6 +116,7 @@ } apic_fields[] = { { LEVEL_TYPE_SMT, &cpu->path.apic.thread_id }, { LEVEL_TYPE_CORE, &cpu->path.apic.core_id }, + { LEVEL_TYPE_MODULE, &cpu->path.apic.module_id }, { LEVEL_TYPE_PACKAGE, &cpu->path.apic.package_id }, { LEVEL_TYPE_PACKAGE, &cpu->path.apic.node_id } }; diff --git a/src/include/device/path.h b/src/include/device/path.h index 8e9ec3b..fdc2f44 100644 --- a/src/include/device/path.h +++ b/src/include/device/path.h @@ -81,6 +81,7 @@ unsigned int node_id; unsigned int core_id; unsigned int thread_id; + unsigned int module_id; unsigned char core_type; };