coreboot-kgpe-d16/src/soc/intel/baytrail
Aaron Durbin 08a4613219 baytrail: adjust cache policy during romstage
The caching policy for romstage was previously using a 32KiB
of cache-as-ram for both the MRC wrapper and the romstage stack/data.
It also used a 32KiB code cache region. The BWG's limitations for
the code and data region before memory is up was wrong. It consists
of a 16-way set associative 1MiB cache. As long as enough addresses
are not read there isn't a risk of evicting the data/stack.

Now create a 64KiB cache-as-ram region split evenly between romstage
and the MRC wrapper. Additionally cache the memory just below
4GiB in CBFS size. This will cover any code and read-only data needed.

BUG=chrome-os-partner:22858
BRANCH=None
TEST=Built and booted quickly with corresponding changes to MRC warpper.
CQ-DEPEND=CL:*146175

Change-Id: I021cecb886a9c0622005edc389136d22905d4520
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/172150
Reviewed-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: http://review.coreboot.org/4868
Tested-by: build bot (Jenkins)
Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2014-02-11 22:18:59 +01:00
..
acpi baytrail: add initial support 2014-01-31 16:36:59 +01:00
baytrail baytrail: add punit access functions 2014-02-11 22:18:48 +01:00
bootblock baytrail: load microcode in bootblock 2014-02-05 05:24:13 +01:00
microcode baytrail: add 316 microcode 2014-02-05 05:23:46 +01:00
romstage baytrail: adjust cache policy during romstage 2014-02-11 22:18:59 +01:00
chip.c baytrail: introduce pattrs 2014-01-31 20:42:37 +01:00
chip.h baytrail: add initial support 2014-01-31 16:36:59 +01:00
gpio.c baytrail: Add GPIO initial configuration infrastructure. 2014-02-03 16:31:05 +01:00
iosf.c baytrail: add punit access functions 2014-02-11 22:18:48 +01:00
Kconfig baytrail: adjust cache policy during romstage 2014-02-11 22:18:59 +01:00
Makefile.inc baytrail: start collecting timestamps 2014-02-05 05:23:08 +01:00
memmap.c baytrail: add initial support 2014-01-31 16:36:59 +01:00
mrc_cache.c baytrail: add initial support 2014-01-31 16:36:59 +01:00
northcluster.c baytrail: set host memory map 2014-01-31 20:42:16 +01:00
nvm.c baytrail: add initial support 2014-01-31 16:36:59 +01:00
placeholders.c baytrail: add initial support 2014-01-31 16:36:59 +01:00
ramstage.c baytrail: Add GPIO initial configuration infrastructure. 2014-02-03 16:31:05 +01:00
spi.c baytrail: add initial support 2014-01-31 16:36:59 +01:00
tsc_freq.c baytrail: add initial support 2014-01-31 16:36:59 +01:00