From 55bf4ea07e81ec4e45c364bd7d732f0ba4bb54d2 Mon Sep 17 00:00:00 2001 From: Jeremy Compostella Date: Wed, 8 Oct 2025 09:04:56 -0700 Subject: [PATCH] cpu/x86/topology: Add tile and die ID CPU topology fields This commit makes the tile and die ID CPU topology parameters information available to support the implementation of EFI_MP_SERVICES_PROTOCOL.GetProcessorInfo() in accordance with the Platform Initialization Specification 1.7. TEST=Instrumentation shows that the tile_id and die_id apic_path fields are properly populated. Change-Id: If4d473901c8de02b3d6cef44f5481a1864f14d64 Signed-off-by: Jeremy Compostella Reviewed-on: https://review.coreboot.org/c/coreboot/+/89461 Reviewed-by: Shuo Liu Tested-by: build bot (Jenkins) --- src/cpu/x86/topology.c | 2 ++ src/include/device/path.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/cpu/x86/topology.c b/src/cpu/x86/topology.c index 70bdf47c4a..eda599e23e 100644 --- a/src/cpu/x86/topology.c +++ b/src/cpu/x86/topology.c @@ -118,6 +118,8 @@ void set_cpu_topology(struct device *cpu) { 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_TILE, &cpu->path.apic.tile_id }, + { LEVEL_TYPE_DIE, &cpu->path.apic.die_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 03aa909d88..9b6e1ef717 100644 --- a/src/include/device/path.h +++ b/src/include/device/path.h @@ -82,6 +82,8 @@ struct apic_path { unsigned int core_id; unsigned int thread_id; unsigned int module_id; + unsigned int tile_id; + unsigned int die_id; /* * Core identifier within the package, including the die group, die, tile, module, and * specific core.