From 0b680113fbc55b91bc7785ef235df32df6103eda Mon Sep 17 00:00:00 2001 From: Stephen Cprek Date: Mon, 19 Jun 2017 15:26:19 -0500 Subject: Remove half cache init and do it in the page manager Change-Id: I3e870c9b50d13704c4c88adfc96e5943cff9dae2 RTC: 175114 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/42153 Reviewed-by: Michael Baiocchi Tested-by: Jenkins Server Reviewed-by: Martin Gloff Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/build/debug/Hostboot/Dump.pm | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'src/build/debug') diff --git a/src/build/debug/Hostboot/Dump.pm b/src/build/debug/Hostboot/Dump.pm index 6a89f0365..9ce3dd679 100755 --- a/src/build/debug/Hostboot/Dump.pm +++ b/src/build/debug/Hostboot/Dump.pm @@ -37,7 +37,6 @@ use constant MEMSTATE_HALF_CACHE => 0x4; use constant MEMSTATE_REDUCED_CACHE => 0x8; use constant MEMSTATE_FULL_CACHE => 0xa; use constant MEMSTATE_MS_32MEG => 0x20; -use constant MEMSTATE_PRE_SECURE_BOOT => 0xff; use constant _KB => 1024; use constant _MB => 1024 * 1024; @@ -50,16 +49,6 @@ our %memory_maps = ( # Secureboot Header. [ 0, (512 - 4) * _KB ], - MEMSTATE_PRE_SECURE_BOOT() => - # Until the early secureboot operations have been done, we can - # only access the top 512k of each 1MB column. Need to avoid - # the hole for the MBOX DMA buffers (64K @ 3MB + 256K). - [ (512 - 4) * _KB, 4 * _KB, - 1 * _MB, 512 * _KB, - 2 * _MB, 512 * _KB, - 3 * _MB, 256 * _KB, - 3 * _MB + (256 + 64) * _KB, (256 - 64) * _KB - ], MEMSTATE_HALF_CACHE() => # All of the first 4MB can now be read (except reserved MBOX). [ 512 * _KB, 512 * _KB, @@ -88,16 +77,15 @@ our %memory_maps = ( # Map the current state to the combined states available. our %memory_states = ( MEMSTATE_NO_MEM() => [ MEMSTATE_NO_MEM ], - MEMSTATE_PRE_SECURE_BOOT() => [ MEMSTATE_NO_MEM, MEMSTATE_PRE_SECURE_BOOT ], - MEMSTATE_HALF_CACHE() => [ MEMSTATE_NO_MEM, MEMSTATE_PRE_SECURE_BOOT, + MEMSTATE_HALF_CACHE() => [ MEMSTATE_NO_MEM, MEMSTATE_HALF_CACHE ], MEMSTATE_REDUCED_CACHE() => - [ MEMSTATE_NO_MEM, MEMSTATE_PRE_SECURE_BOOT, + [ MEMSTATE_NO_MEM, MEMSTATE_HALF_CACHE, MEMSTATE_REDUCED_CACHE ], - MEMSTATE_FULL_CACHE() => [ MEMSTATE_NO_MEM, MEMSTATE_PRE_SECURE_BOOT, + MEMSTATE_FULL_CACHE() => [ MEMSTATE_NO_MEM, MEMSTATE_HALF_CACHE, MEMSTATE_REDUCED_CACHE, MEMSTATE_FULL_CACHE ], - MEMSTATE_MS_32MEG() => [ MEMSTATE_NO_MEM, MEMSTATE_PRE_SECURE_BOOT, + MEMSTATE_MS_32MEG() => [ MEMSTATE_NO_MEM, MEMSTATE_HALF_CACHE, MEMSTATE_REDUCED_CACHE, MEMSTATE_FULL_CACHE, MEMSTATE_MS_32MEG ] ); -- cgit v1.2.3