[coreboot-gerrit] New patch to review for coreboot: intel fsp: remove CHIPSET_RESERVED_MEM_BYTES

Patrick Georgi (pgeorgi@google.com) gerrit at coreboot.org
Mon Jul 20 22:29:03 CEST 2015


Patrick Georgi (pgeorgi at google.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10993

-gerrit

commit f788975332b88cdbc9f5936b13ba6449cd45781d
Author: Aaron Durbin <adurbin at chromium.org>
Date:   Mon Jul 13 16:55:28 2015 -0500

    intel fsp: remove CHIPSET_RESERVED_MEM_BYTES
    
    FSP 1.1 platforms should be conforming to the spec. In order
    to ensure following specification remove the crutch that allows
    FSP to no conform.
    
    BUG=chrome-os-partner:41961
    BRANCH=None
    TEST=Built.
    
    Change-Id: I28b876773a3b6f07223d60a5133129d8f2c75bf6
    Signed-off-by: Patrick Georgi <pgeorgi at chromium.org>
    Original-Commit-Id: c3fe08c5af41867782e422f27b0aed1b762ff34a
    Original-Change-Id: Ib97027a35cdb914aca1eec0eeb225a55f51a4b4b
    Original-Signed-off-by: Aaron Durbin <adurbin at chromium.org>
    Original-Reviewed-on: https://chromium-review.googlesource.com/285187
    Original-Reviewed-by: Leroy P Leahy <leroy.p.leahy at intel.com>
    Original-Reviewed-by: Duncan Laurie <dlaurie at chromium.org>
---
 src/soc/intel/braswell/memmap.c       |  2 +-
 src/soc/intel/braswell/northcluster.c |  2 --
 src/soc/intel/common/Kconfig          | 12 ------------
 src/soc/intel/common/raminit.c        |  5 -----
 src/soc/intel/skylake/memmap.c        |  2 +-
 src/soc/intel/skylake/systemagent.c   |  3 ---
 6 files changed, 2 insertions(+), 24 deletions(-)

diff --git a/src/soc/intel/braswell/memmap.c b/src/soc/intel/braswell/memmap.c
index 28156a3..d1d784d 100644
--- a/src/soc/intel/braswell/memmap.c
+++ b/src/soc/intel/braswell/memmap.c
@@ -81,5 +81,5 @@ void *cbmem_top(void)
 	*/
 
 	smm_region((void **)&smm_base, &smm_size);
-	return (void *)(smm_base - CONFIG_CHIPSET_RESERVED_MEM_BYTES);
+	return (void *)smm_base;
 }
diff --git a/src/soc/intel/braswell/northcluster.c b/src/soc/intel/braswell/northcluster.c
index d5d7268..7821a2a 100644
--- a/src/soc/intel/braswell/northcluster.c
+++ b/src/soc/intel/braswell/northcluster.c
@@ -52,8 +52,6 @@
  * +--------------------------+ SMMRRH, IRM0
  * |     TSEG                 |
  * +--------------------------+ SMMRRL
- * |     FSP Reserved Mem     |
- * +--------------------------+ SMMRRL - CONFIG_CHIPSET_RESERVED_MEM_BYTES
  * |     Usable DRAM          |
  * +--------------------------+ 0
  *
diff --git a/src/soc/intel/common/Kconfig b/src/soc/intel/common/Kconfig
index 3d0c0ef..68d3f5e 100644
--- a/src/soc/intel/common/Kconfig
+++ b/src/soc/intel/common/Kconfig
@@ -36,18 +36,6 @@ endif # CACHE_MRC_SETTINGS
 
 endif # HAVE_MRC
 
-config CHIPSET_RESERVED_MEM_BYTES
-	hex "Size in bytes of chipset reserved memory area"
-	default 0
-	help
-	  If insufficient documentation is available to determine the size of
-	  the chipset reserved memory area by walking the chipset registers,
-	  the CHIPSET_RESERVED_MEM_BYTES may be used as a workaround to account
-	  for the missing pieces of memory.  The value specified in bytes is:
-
-	  value = TSEG base - top of low usable memory - (any sizes determined
-	  by reading chipset registers)
-
 config DISPLAY_MTRRS
 	bool "MTRRs: Display the MTRR settings"
 	default n
diff --git a/src/soc/intel/common/raminit.c b/src/soc/intel/common/raminit.c
index 0e764cd..69ae114 100644
--- a/src/soc/intel/common/raminit.c
+++ b/src/soc/intel/common/raminit.c
@@ -153,8 +153,6 @@ void raminit(struct romstage_params *params)
 #endif
 
 	/* Migrate CAR data */
-	printk(BIOS_DEBUG, "0x%08x: CONFIG_CHIPSET_RESERVED_MEM_BYTES\n",
-		CONFIG_CHIPSET_RESERVED_MEM_BYTES);
 	printk(BIOS_DEBUG, "0x%p: cbmem_top\n", cbmem_top());
 	if (pei_ptr->boot_mode != SLEEP_STATE_S3) {
 		cbmem_initialize_empty_id_size(CBMEM_ID_FSP_RESERVED_MEMORY,
@@ -268,9 +266,6 @@ void raminit(struct romstage_params *params)
 				- cbmem_root->PhysicalStart
 				- cbmem_root->ResourceLength;
 			printk(BIOS_DEBUG,
-				"0x%08x: CONFIG_CHIPSET_RESERVED_MEM_BYTES\n",
-				CONFIG_CHIPSET_RESERVED_MEM_BYTES);
-			printk(BIOS_DEBUG,
 				"0x%08x: Chipset reserved bytes reported by FSP\n",
 				(unsigned int)delta_bytes);
 			die("Please verify the chipset reserved size\n");
diff --git a/src/soc/intel/skylake/memmap.c b/src/soc/intel/skylake/memmap.c
index f8ef01a..bba93cb 100644
--- a/src/soc/intel/skylake/memmap.c
+++ b/src/soc/intel/skylake/memmap.c
@@ -96,6 +96,6 @@ void *cbmem_top(void)
 		top_of_ram = ALIGN_DOWN(top_of_ram, mmap_region_granluarity());
 	}
 
-	return (void *)(top_of_ram - CONFIG_CHIPSET_RESERVED_MEM_BYTES);
+	return (void *)top_of_ram;
 }
 
diff --git a/src/soc/intel/skylake/systemagent.c b/src/soc/intel/skylake/systemagent.c
index 2034e8e..a1bcfdc 100644
--- a/src/soc/intel/skylake/systemagent.c
+++ b/src/soc/intel/skylake/systemagent.c
@@ -351,15 +351,12 @@ static void mc_add_dram_resources(device_t dev)
 	base_k = 0xc0000 >> 10;
 	size_k = (unsigned long)(mc_values[TSEG_REG] >> 10) - base_k;
 	size_k -= dpr_size >> 10;
-	size_k -= CONFIG_CHIPSET_RESERVED_MEM_BYTES >> 10;
 	ram_resource(dev, index++, base_k, size_k);
 
 	/* TSEG - DPR -> BGSM */
 	resource = new_resource(dev, index++);
 	resource->base = mc_values[TSEG_REG] - dpr_size;
 	resource->size = mc_values[BGSM_REG] - resource->base;
-	resource->base -= CONFIG_CHIPSET_RESERVED_MEM_BYTES;
-	resource->size += CONFIG_CHIPSET_RESERVED_MEM_BYTES;
 	resource->flags = IORESOURCE_MEM | IORESOURCE_FIXED |
 			  IORESOURCE_STORED | IORESOURCE_RESERVE |
 			  IORESOURCE_ASSIGNED | IORESOURCE_CACHEABLE;



More information about the coreboot-gerrit mailing list