coreboot/src/lib
Vadim Bendebury af8ae93172 vboot: TPM2 - report attempts to re-create NVRAM spaces
Currently the tlcl_define_space() function returns the same error
value for any non-zero TPM response code. The thing is that the caller
might want to allow attempts to re-create existing NVRAM spaces. This
patch adds a new API return value to indicate this condition and uses
it as appropriate.

BRANCH=none
BUG=chrome-os-partner:59654
TEST=for test purposes modified the code not to create the firmware
     space, wiped out the TPM NVRAM and booted the device. Observed it
     create kernel and MRC index spaces on the first boot and then
     reporting return code 0x14c for already existing spaces on the
     following restarts.

Change-Id: Ic183eb45e73edfbccf11cc19fd2f64f64274bfb2
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://review.coreboot.org/17422
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-11-16 02:15:58 +01:00
..
gnat Add option to use Ada code in ramstage 2016-11-06 17:28:13 +01:00
b64_decode.c
boot_device.c lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
bootblock.c lib: Add asmlinkage attribute to bootblock_main_with_timestamp 2016-06-09 17:15:35 +02:00
bootmem.c lib/bootmem: allow architecture specific bootmem ranges 2016-04-21 20:46:45 +02:00
bootmode.c bootmode: Get rid of CONFIG_BOOTMODE_STRAPS 2016-07-28 00:36:22 +02:00
cbfs.c ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-09 20:52:07 +01:00
cbmem_common.c
cbmem_console.c arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
cbmem_stage_cache.c
compute_ip_checksum.c
coreboot_table.c drivers/spi: ensure SPI flash is boot device for coreboot tables 2016-08-19 18:14:20 +02:00
debug.c
delay.c
edid.c edid: Fix a function signature 2016-09-08 23:19:06 +02:00
ext_stage_cache.c soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-07 18:18:14 +02:00
fallback_boot.c
fmap.c lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gcc.c
gcov-glue.c
gcov-io.c
gcov-io.h
gcov-iov.h
generic_dump_spd.c
generic_sdram.c
gpio.c lib/gpio: add pullup & pulldown gpio_base2_value() variants 2016-07-07 20:44:36 +02:00
halt.c
hardwaremain.c Add option to use Ada code in ramstage 2016-11-06 17:28:13 +01:00
hexdump.c
hexstrtobin.c hexstrtobin: Add a library function to decode ASCII hex into binary 2016-05-21 05:58:51 +02:00
imd.c
imd_cbmem.c arch/x86,lib: make cbmem console work in postcar stage 2016-09-19 17:02:17 +02:00
jpeg.c
jpeg.h
libgcc.c
libgcov.c
lzma.c lib: remove ulzma() 2016-07-01 23:55:16 +02:00
lzmadecode.c lzma: Port size-checking ulzman() version to coreboot 2016-02-12 22:00:55 +01:00
lzmadecode.h
Makefile.inc TPM: Add TPM driver files to romstage 2016-11-10 00:56:04 +01:00
malloc.c
memchr.c
memcmp.c
memcpy.c
memmove.c
memrange.c lib/memrange: avoid shadow object declarations 2016-02-26 02:14:56 +01:00
memset.c
mocked_tlcl.c
nhlt.c lib/nhlt: add helper functions for adding endpoints 2016-06-29 23:13:54 +02:00
primitive_memtest.c
prog_loaders.c ACPI S3: Remove HIGH_MEMORY_SAVE where possible 2016-11-09 20:52:07 +01:00
prog_ops.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
program.ld lib/program.ld: add .sdata sections 2016-10-31 19:33:44 +01:00
ramtest.c quick_ram_check: Remove reference to RAMBASE 2016-11-08 19:16:41 +01:00
reg_script.c lib/reg_script: Fix braces 2016-05-05 19:41:29 +02:00
rmodule.c lib/prog_loading: introduce prog_segment_loaded() 2016-04-02 03:56:37 +02:00
rmodule.ld
romstage_stack.c intel post-car: Consolidate choose_top_of_stack() 2016-07-10 11:16:07 +02:00
rtc.c lib: Add real-time-clock functions 2016-06-24 20:22:05 +02:00
selfboot.c arm64: Use 'payload' format for ATF instead of 'stage' 2016-10-06 21:49:52 +02:00
stack.c
thread.c src/lib: Capitalize ROM, RAM, NVRAM and CPU 2016-07-31 19:30:54 +02:00
timer.c
timer_queue.c
timestamp.c memlayout: Ensure TIMESTAMP() region is big enough to avoid BUG() 2016-08-23 21:33:29 +02:00
tlcl.c lib/tlcl: Ensure tlcl library is initialized only once 2016-11-11 22:15:57 +01:00
tlcl_internal.h
tlcl_structures.h
tpm2_marshaling.c tpm2: Fix tlcl and marshaling code for CAR usage 2016-09-06 22:51:13 +02:00
tpm2_marshaling.h tpm2: avoid comparison between signed and unsigned ints 2016-07-13 23:58:32 +02:00
tpm2_tlcl.c vboot: TPM2 - report attempts to re-create NVRAM spaces 2016-11-16 02:15:58 +01:00
tpm2_tlcl_structures.h tpm2: implement and use pcr_extend command 2016-07-14 00:00:30 +02:00
tpm_error_messages.h src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
trace.c src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
version.c lib/version: Correct whitespace alignment 2016-07-15 00:10:50 +02:00
wrdd.c lib: Implement framework for retrieving WiFi regulatory domain 2016-03-08 18:41:33 +01:00