cpu/x86/topology: Add node ID parser
Currently the SRAT table only exposes one proximity group as it uses the LAPIC node_id, which is always initialized to 0. Use CPUID leaf 0x1f or 0xb to gather the node ID and fill it to make sure that at least one proximity group for every socket is advertised. For now the SNC config isn't taken into account. Change-Id: Ia3ed1e5923aa18ca7619b32cde491fdb4da0fa0d Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/81515 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shuo Liu <shuo.liu@intel.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
parent
9ab5ae7643
commit
96499840aa
3 changed files with 70 additions and 0 deletions
|
|
@ -11,4 +11,9 @@
|
|||
*/
|
||||
void set_cpu_topology_from_leaf_b(struct device *cpu);
|
||||
|
||||
/* Fill in the topology node ID in struct path APIC based CPUID EAX=0x1f
|
||||
* or CPUID EAX=0xb. If those leaves aren't supported then the node ID
|
||||
* won't be updated.
|
||||
*/
|
||||
void set_cpu_node_id_leaf_1f_b(struct device *cpu);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue