coreboot/src/commonlib/bsd
Subrata Banik f31ab7a497 {commonlib/drivers}: Have option to store MRC version inside CBMEM
This patch introduces CBMEM ID to store the MRC version (similar to
existing implementation that stores the FSP-M version inside CBMEM ID)
inside cbmem so the version information is available across the
different coreboot stages. For example:

* romstage: Use the CBMEM ID version information to check if the MRC
            cache is valid and need to erase the MRC cache
* ramstage: Use the CBMEM ID to store the MRC cache into the
            non-volatile space.

BUG=b:261689642
TEST=Able to build and boot google/rex and dump the MRC version as
below.

  cbmem --list
  CBMEM table of contents:
      NAME                  ID        START     LENGTH
      ...
      21. MRC VERSION       5f43524d  75ffeb60  00000004
      ...

  localhost ~ # cbmem -r 5f43524d | hexdump
  00000000  01 12 07 00

Signed-off-by: Subrata Banik <subratabanik@google.com>
Change-Id: I91f735239b33c6f8ba41c076048903e4b213c6a2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75921
Reviewed-by: Ronak Kanabar <ronak.kanabar@intel.com>
Reviewed-by: Tarun Tuli <taruntuli@google.com>
Reviewed-by: Kapil Porwal <kapilporwal@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2023-06-23 04:49:45 +00:00
..
include/commonlib/bsd {commonlib/drivers}: Have option to store MRC version inside CBMEM 2023-06-23 04:49:45 +00:00
cbfs_mcache.c commonlib/bsd, libpayload: Do not include helpers.h in stddef.h 2023-02-16 17:55:37 +00:00
cbfs_private.c commonlib/bsd, libpayload: Do not include helpers.h in stddef.h 2023-02-16 17:55:37 +00:00
elog.c elog: calculate year correctly in timestamp 2021-09-23 06:26:19 +00:00
lz4.c.inc lz4: Fix out-of-bounds reads 2020-03-02 15:03:03 +00:00
lz4_wrapper.c commonlib/lz4_wrapper.c: do not use bitfields 2021-06-11 07:41:41 +00:00