diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2024-01-31 11:31:55 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2024-02-09 13:44:45 +0000 |
commit | f25d58c9a59aa5ccdc5a8b6afeccc7afa0d9d364 (patch) | |
tree | a3b15954c00d02efc10a5d7dd1c6e79abd5a2a21 /src/soc/intel/xeon_sp/spr/chip.c | |
parent | bb41e69588dd8cfad38153b3b8918682a7586c7a (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/chip.c')
-rw-r--r-- | src/soc/intel/xeon_sp/spr/chip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/xeon_sp/spr/chip.c b/src/soc/intel/xeon_sp/spr/chip.c index abab0d2413..cebe4fe366 100644 --- a/src/soc/intel/xeon_sp/spr/chip.c +++ b/src/soc/intel/xeon_sp/spr/chip.c @@ -199,7 +199,7 @@ static void rcec_init(struct device *dev) for (i = 0; i < pds.num_pds; i++) { if (pds.pds[i].pd_type == PD_TYPE_PROCESSOR) continue; - ep_bus = pds.pds[i].device_handle >> 20; + ep_bus = PCI_BDF(pds.pds[i].dev) >> 20; if (ep_bus == ecrc_bus + 1) break; } |