From 9c2f3cc9d9b3b3b7cfe1e62a70ea3061ca6c15ac Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Thu, 13 Oct 2022 12:55:49 +0200 Subject: soc/intel/systemagent.c: Fix memory type reporting TOLUD stands for top of lower usable dram. Memory between cbmem_top and TOLUD, even if stolen for another device/purpose can still be marked WB cacheable. This will result in a cleaner MTRR setup. Change-Id: Ic3d6f589c60e44a3dce9122d206397cac968647f Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/c/coreboot/+/68405 Reviewed-by: Paul Menzel Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones Reviewed-by: Sean Rhodes Reviewed-by: Angel Pons Reviewed-by: Lean Sheng Tan --- src/soc/intel/common/block/systemagent/systemagent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/common/block/systemagent/systemagent.c b/src/soc/intel/common/block/systemagent/systemagent.c index c2ce999c9f..dbc52c52b2 100644 --- a/src/soc/intel/common/block/systemagent/systemagent.c +++ b/src/soc/intel/common/block/systemagent/systemagent.c @@ -210,7 +210,7 @@ static void sa_add_dram_resources(struct device *dev, int *resource_count) /* top_of_ram -> TOLUD */ base_k = top_of_ram; size_k = sa_map_values[SA_TOLUD_REG] - base_k; - mmio_resource_kb(dev, index++, base_k / KiB, size_k / KiB); + reserved_ram_resource_kb(dev, index++, base_k / KiB, size_k / KiB); /* 4GiB -> TOUUD */ upper_ram_end(dev, index++, sa_map_values[SA_TOUUD_REG]); -- cgit v1.2.3