summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp/spr/numa.c
diff options
context:
space:
mode:
authorPatrick Rudolph <patrick.rudolph@9elements.com>2024-01-31 11:31:55 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-09 13:44:45 +0000
commitf25d58c9a59aa5ccdc5a8b6afeccc7afa0d9d364 (patch)
treea3b15954c00d02efc10a5d7dd1c6e79abd5a2a21 /src/soc/intel/xeon_sp/spr/numa.c
parentbb41e69588dd8cfad38153b3b8918682a7586c7a (diff)
soc/intel/xeon_sp/numa: Store pointer to device
Instead of a BDF number store a pointer to the device itself. Change-Id: I3fef93c5e54c8af792102bcd25364c43b554a5f0 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80257 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shuo Liu <shuo.liu@intel.com> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/soc/intel/xeon_sp/spr/numa.c')
-rw-r--r--src/soc/intel/xeon_sp/spr/numa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/xeon_sp/spr/numa.c b/src/soc/intel/xeon_sp/spr/numa.c
index ef1c15340d..169f4f848b 100644
--- a/src/soc/intel/xeon_sp/spr/numa.c
+++ b/src/soc/intel/xeon_sp/spr/numa.c
@@ -19,7 +19,7 @@ void dump_pds(void)
printk(BIOS_DEBUG, "\tproximity domain %d:\n", i);
printk(BIOS_DEBUG, "\t\ttype:%d\n", pds.pds[i].pd_type);
printk(BIOS_DEBUG, "\t\tsocket_bitmap:0x%x\n", pds.pds[i].socket_bitmap);
- printk(BIOS_DEBUG, "\t\tdevice_handle:0x%x\n", pds.pds[i].device_handle);
+ printk(BIOS_DEBUG, "\t\tdevice:%s\n", pds.pds[i].dev ? dev_path(pds.pds[i].dev) : "");
printk(BIOS_DEBUG, "\t\tbase(64MB):0x%x\n", pds.pds[i].base);
printk(BIOS_DEBUG, "\t\tsize(64MB):0x%x\n", pds.pds[i].size);
}
@@ -85,7 +85,7 @@ enum cb_err fill_pds(void)
pds.pds[i].base = node.Address;
pds.pds[i].size = node.Size;
dev = pcie_find_dsn(node.SerialNumber, node.VendorId, 0);
- pds.pds[i].device_handle = PCI_BDF(dev);
+ pds.pds[i].dev = dev;
pds.pds[i].distances = malloc(sizeof(uint8_t) * pds.num_pds);
if (!pds.pds[i].distances)
die("%s %d out of memory.", __FILE__, __LINE__);