coreboot/src
Kyösti Mälkki 71c8dac9ca drivers/pc80/tpm: Fix tis_readresponse()
TPM_RDRESP_NEED_DELAY was introduced in 2018 in CB:25322 after
observing errors with SLB9635 by Infineon. It has been confirmed
also SLB9670 and SLB9672 require a fix or delay here.

Presumably, prior to CB:4388 SLB9635 did not have this problem,
as this particular TPM shipped with samsung/lumpy Chromebook since
2011. In CB:4388 the code changed from polling the status register
(+burst_count) using a 32bit read to separated 8bit reads.

So far, experiments on samsung/lumpy and SLB9635 indicate that
it would be sufficient to add a single tpm_read_status() call
to see TIS_STS_DATA_AVAILABLE as set at the time of evaluating
the loop exit condition.

Change-Id: If5c3e93c7946ebf8226f7bba47b38253f6920c61
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Co-authored-by: Bill XIE <persmule@hardenedlinux.org>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76315
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Bill XIE <persmule@hardenedlinux.org>
Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
2024-10-14 15:25:57 +00:00
..
acpi acpi_gic: Add helper for platform gicc 2024-10-08 08:58:34 +00:00
arch arch/x86: Remove CONFIG_DEBUG_NULL_DEREF_HALT 2024-10-07 20:20:43 +00:00
commonlib drivers/efi/uefi_capsules.c: coalesce and store UEFI capsules 2024-08-30 15:48:25 +00:00
console console/i2c_smbus: Allow to send data w/o register offset 2024-07-11 00:06:22 +00:00
cpu cpu/x86/smm/smm_module_handler: Remove <commonlib/bsd/compiler.h> 2024-09-10 03:11:13 +00:00
device device_util: Add support for GICv3 path in device path handling 2024-09-30 16:31:37 +00:00
drivers drivers/pc80/tpm: Fix tis_readresponse() 2024-10-14 15:25:57 +00:00
ec chromeec/ec_acpi: Define ACPI devices for USB-C ports using UCSI 2024-09-30 16:54:44 +00:00
include include/spi_flash: add RPMC field length defines 2024-10-10 13:25:07 +00:00
lib lib/jpeg: return string (not int) error messages 2024-09-18 21:51:40 +00:00
mainboard mb/google/nissa/var/sundance: Change touch panel and wwan gpio setting 2024-10-14 01:47:43 +00:00
northbridge nb/intel/gm45/northbridge.c: Use config_of_soc() 2024-10-07 20:37:35 +00:00
sbom src, util: Clean up makefile.inc in text, help & comments 2024-01-26 20:15:18 +00:00
security tree: Drop unnecessary "true/false" comments 2024-09-04 01:16:40 +00:00
soc soc/intel/xeon_sp: Revise IIO domain ACPI name encoding 2024-10-11 19:37:14 +00:00
southbridge azalia: Get rid of "return {-1,0} 2024-08-11 17:10:08 +00:00
superio superio/ite/it8728f: Support setting power state after power failure 2024-08-20 13:10:02 +00:00
vendorcode vc/amd/opensil/genoa_poc: Explicitly include static.h for config_of_soc 2024-10-07 20:36:01 +00:00
Kconfig Add initial experimental LTO support 2024-08-24 12:50:38 +00:00