summaryrefslogtreecommitdiff
path: root/src/soc/intel/xeon_sp
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/xeon_sp')
-rw-r--r--src/soc/intel/xeon_sp/uncore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/soc/intel/xeon_sp/uncore.c b/src/soc/intel/xeon_sp/uncore.c
index d4cf4bcc29..380b7e7b9c 100644
--- a/src/soc/intel/xeon_sp/uncore.c
+++ b/src/soc/intel/xeon_sp/uncore.c
@@ -196,8 +196,7 @@ static void mc_add_dram_resources(struct device *dev, int *res_count)
res = ram_from_to(dev, index++, top_of_ram, (uintptr_t)cbmem_top());
LOG_RESOURCE("cbmem_ram", dev, res);
- /* Reserve and set up DPR */
- configure_dpr(dev);
+ /* Reserve DPR region */
union dpr_register dpr = { .raw = pci_read_config32(dev, VTD_LTDPR) };
if (dpr.size) {
/*
@@ -262,6 +261,9 @@ static void mmapvtd_read_resources(struct device *dev)
/* Read standard PCI resources. */
pci_dev_read_resources(dev);
+ /* set up DPR */
+ configure_dpr(dev);
+
/* Calculate and add DRAM resources. */
mc_add_dram_resources(dev, &index);
}