Skip to content

x86: Provide a common MRC cache library and enable it for FSP

Bin Meng u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13x86: Add ENABLE_MRC_CACHE Kconfig optionarch/x86/Kconfig+8 -02 replies
2/13x86: Move mrccache.[c|h] to a common placearch/x86/cpu/ivybridge/Makefile arch/x86/cpu/ivybridge/sdram.c arch/x86/include/asm/mrccache.h +4 more+5 -42 replies
3/13x86: Do sanity test on the cache record in mrccache_update()arch/x86/include/asm/mrccache.h arch/x86/lib/mrccache.c+4 -12 replies
4/13x86: Add various minor tidy-ups in mrccache codesarch/x86/include/asm/mrccache.h arch/x86/lib/mrccache.c+16 -182 replies
5/13x86: Add more common routines to manipulate mrc cachearch/x86/include/asm/mrccache.h arch/x86/lib/mrccache.c+140 -02 replies
6/13x86: ivybridge: Use APIs provided in the mrccache libarch/x86/cpu/ivybridge/sdram.c+4 -1082 replies
7/13x86: Use struct mrc_region to describe a mrc regionarch/x86/cpu/ivybridge/sdram.c arch/x86/include/asm/mrccache.h arch/x86/lib/mrccache.c+27 -152 replies
7/13x86: Use struct mrc_region to describe a mrc region+0 -01 reply
8/13x86: fsp: Pass mrc cache to fsp_init() and save it to gd after fsp_init()arch/x86/lib/fsp/fsp_common.c arch/x86/lib/fsp/fsp_dram.c+35 -12 replies
9/13x86: baytrail: Save mrc cache to spi flasharch/x86/cpu/baytrail/valleyview.c+19 -02 replies
10/13x86: Enable mrc cache for bayleybay and minnowmaxarch/x86/dts/bayleybay.dts arch/x86/dts/minnowmax.dts configs/bayleybay_defconfig +2 more+15 -02 replies
11/13x86: baytrail: Issue full system reset in reset_cpu()arch/x86/cpu/baytrail/valleyview.c+6 -02 replies
11/13x86: baytrail: Issue full system reset in reset_cpu()+0 -01 reply
11/13x86: baytrail: Issue full system reset in reset_cpu()+0 -01 reply
12/13x86: Remove unused rw-mrc-cache properties in the link and panther dts filesarch/x86/dts/chromebook_link.dts arch/x86/dts/chromebox_panther.dts+0 -52 replies
13/13x86: ivybridge: Correct two typos for MRCarch/x86/cpu/ivybridge/sdram.c+2 -22 replies

Reviews trailers per patch

All 16 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/13A-b
2/13A-b
3/13A-b
4/13A-b
5/13A-b
6/13A-b
7/13A-b
7/13A-b
8/13A-b
9/13A-b
10/13A-b
11/13A-b
11/13A-b
11/13A-b
12/13A-b
13/13A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [U-Boot] [PATCH 00/13] x86: Provide a common MRC cache library and enable it for FSP

This series moves existing MRC cache codes in the ivybridge cpu diretory to a common place and makes some changes so that every x86 board benefits from it. It also updates FSP support codes to pass MRC cache data to fsp_init() to speed up boot time.

Currently tested on Intel Bayley Bay board. Minnow Max board should work as it uses the same FSP that Bayley Bay uses. For Chromebook I cannot test that, but I see Simon added a TODO in the codes below:

	/*
	 * TODO(sjg at chromium.org): Skip this for now as it causes boot
 	 * problems
 	 */
 	if (0) {
		pei_data->mrc_input = mrc_cache->data;
		pei_data->mrc_input_len = mrc_cache->data_size;
	}

I have no idea what breaks the MRC cache on the Chromebook board. Simon, you may retest this on top of this series to see if things go better.

Bin Meng (13):
x86: Add ENABLE_MRC_CACHE Kconfig option
x86: Move mrccache.[c|h] to a common place
x86: Do sanity test on the cache record in mrccache_update()
x86: Add various minor tidy-ups in mrccache codes
x86: Add more common routines to manipulate mrc cache
x86: ivybridge: Use APIs provided in the mrccache lib
x86: Use struct mrc_region to describe a mrc region
x86: fsp: Pass mrc cache to fsp_init() and save it to gd after

    fsp_init()

x86: baytrail: Save mrc cache to spi flash
x86: Enable mrc cache for bayleybay and minnowmax
x86: baytrail: Issue full system reset in reset_cpu()
x86: Remove unused rw-mrc-cache properties in the link and panther dts
files
x86: ivybridge: Correct two typos for MRC

 arch/x86/Kconfig                               |   8 ++
 arch/x86/cpu/baytrail/valleyview.c             |  25 +++++
 arch/x86/cpu/ivybridge/Makefile                |   1 -
 arch/x86/cpu/ivybridge/sdram.c                 | 120 ++---------------------
 arch/x86/dts/bayleybay.dts                     |   6 ++
 arch/x86/dts/chromebook_link.dts               |   2 -
 arch/x86/dts/chromebox_panther.dts             |   3 -
 arch/x86/dts/minnowmax.dts                     |   6 ++
 arch/x86/include/asm/arch-ivybridge/mrccache.h |  51 ----------
 arch/x86/include/asm/mrccache.h                | 107 +++++++++++++++++++++
 arch/x86/lib/Makefile                          |   1 +
 arch/x86/lib/fsp/fsp_common.c                  |  30 +++++-
 arch/x86/lib/fsp/fsp_dram.c                    |   6 ++
 arch/x86/{cpu/ivybridge => lib}/mrccache.c     | 128 +++++++++++++++++++++----
 configs/bayleybay_defconfig                    |   1 +
 configs/chromebook_link_defconfig              |   1 +
 configs/chromebox_panther_defconfig            |   1 +
 configs/minnowmax_defconfig                    |   1 +
 doc/README.x86                                 |   1 +
 19 files changed, 313 insertions(+), 186 deletions(-)
 delete mode 100644 arch/x86/include/asm/arch-ivybridge/mrccache.h
 create mode 100644 arch/x86/include/asm/mrccache.h
 rename arch/x86/{cpu/ivybridge => lib}/mrccache.c (51%)
Signature · 1 line
1.8.2.1