coreboot-kgpe-d16/src
Werner Zeh d35a4811db vendorcode/siemens: Cache currently opened hwi file name
On every call of hwilib_find_blocks() the CBFS file will be mapped and
the contents are parsed to get the offsets for every single block. This
is not needed if the CBFS file name is the same for the different calls.

This patch adds a storage for the currently opened CBFS file name in
CAR_GLOBAL and checks on each call if the file to open is already open.
If yes, the file will not be mapped again which saves execution time.

Test=Booted mc_tcu3, mc_bdx1 and mc_apl1 and verified that hwinfo.hex
is only mapped once across several following hwilib_find_blocks() calls.
In addition a test was done to ensure that files with different names
get mapped correctly.

Change-Id: Id69e0f6c914c2b8e4551fd8a4fb7d452d176afb3
Signed-off-by: Werner Zeh <werner.zeh@siemens.com>
Reviewed-on: https://review.coreboot.org/c/31518
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
2019-02-25 05:39:45 +00:00
..
acpi
arch arch/x86/smbios.c: Remove duplicated 'processor_upgrade' 2019-02-23 14:44:18 +00:00
commonlib buildsystem: Promote rules.h to default include 2019-01-16 11:51:07 +00:00
console device/pci_early.c: Drop some guards 2019-02-11 11:32:20 +00:00
cpu symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
device device/pci_ops: Apply some symmetry in headers 2019-02-11 20:44:37 +00:00
drivers drivers/intel/fsp2_0: Update dependency of USE_FSP_REPO 2019-02-23 14:25:31 +00:00
ec ec/lenovo/h8/Kconfig: increase ps2 kbd timeout from 3000 to 5000ms 2019-02-11 12:24:22 +00:00
include soc/intel/common: Include cometlake SA IDs 2019-02-24 04:49:37 +00:00
lib symbols.h: Add macro to define memlayout region symbols 2019-02-22 06:44:02 +00:00
mainboard mb/emulation/qemu: Fix fw_cfg file loading 2019-02-24 11:57:25 +00:00
northbridge nb/intel/nehalem: Remove CAR_GLOBAL use 2019-02-12 22:16:42 +00:00
security vboot: fix STARTS_IN_BOOTBLOCK/_ROMSTAGE logic 2019-02-22 11:10:40 +00:00
soc soc/intel/common: Include cometlake SA IDs 2019-02-24 04:49:37 +00:00
southbridge sb/intel/bd82x6x: Fix default IRQ mapping 2019-02-21 19:10:00 +00:00
superio superio/nsc/pc87417: Use common early_serial 2019-02-14 07:54:55 +00:00
vendorcode vendorcode/siemens: Cache currently opened hwi file name 2019-02-25 05:39:45 +00:00
Kconfig Kconfig: Add system type entries for common enclosures 2019-02-05 16:03:29 +00:00