diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2023-07-14 17:50:52 +0200 |
---|---|---|
committer | Lean Sheng Tan <sheng.tan@9elements.com> | 2023-07-18 06:56:57 +0000 |
commit | 92904bcdff3efc485fbc25dbac51dcf3d70b1134 (patch) | |
tree | b50ff0b64eec8d5efef45ed6b77a32c29a6c9562 /src | |
parent | b403849a438ddf184880e72139562cfba4efcfdf (diff) |
soc/intel/xeon_sp: Use SocketID in NUMA table generation
Use the actual SocketID instead of the running index.
Change-Id: I9128909756d0dbb0c4dabc52acdc98cb2a4f7baa
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76558
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/xeon_sp/spr/numa.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/spr/numa.c b/src/soc/intel/xeon_sp/spr/numa.c index 92ed0bf82c..d49dcb8845 100644 --- a/src/soc/intel/xeon_sp/spr/numa.c +++ b/src/soc/intel/xeon_sp/spr/numa.c @@ -29,6 +29,7 @@ enum cb_err fill_pds(void) { uint8_t num_sockets = soc_get_num_cpus(); uint8_t num_cxlnodes = get_cxl_node_count(); + const IIO_UDS *hob = get_iio_uds(); /* * Rules/assumptions: @@ -53,7 +54,7 @@ enum cb_err fill_pds(void) struct device *dev; for (i = 0; i < num_sockets; i++) { pds.pds[i].pd_type = PD_TYPE_PROCESSOR; - pds.pds[i].socket_bitmap = 1 << i; + pds.pds[i].socket_bitmap = 1 << hob->PlatformData.IIO_resource[i].SocketID; pds.pds[i].distances = malloc(sizeof(uint8_t) * pds.num_pds); if (!pds.pds[i].distances) die("%s %d out of memory.", __FILE__, __LINE__); |