diff options
author | Jonathan McDowell <noodles@meta.com> | 2025-03-12 08:26:18 +0300 |
---|---|---|
committer | Jarkko Sakkinen <jarkko@kernel.org> | 2025-03-27 16:34:05 +0300 |
commit | de9e33df7762abbfc2a1568291f2c3a3154c6a9d (patch) | |
tree | f0f47e338414b040486b42dbf8357f122f628b91 /scripts/generate_rust_analyzer.py | |
parent | 7146dffa875cd00e7a7f918e1fce79c7593ac1fa (diff) | |
download | linux-de9e33df7762abbfc2a1568291f2c3a3154c6a9d.tar.xz |
tpm, tpm_tis: Workaround failed command reception on Infineon devices
Some Infineon devices have a issue where the status register will get
stuck with a quick REQUEST_USE / COMMAND_READY sequence. This is not
simply a matter of requiring a longer timeout; the work around is to
retry the command submission. Add appropriate logic to do this in the
send path.
This is fixed in later firmware revisions, but those are not always
available, and cannot generally be easily updated from outside a
firmware environment.
Testing has been performed with a simple repeated loop of doing a
TPM2_CC_GET_CAPABILITY for TPM_CAP_PROP_MANUFACTURER using the Go code
at:
https://the.earth.li/~noodles/tpm-stuff/timeout-reproducer-simple.go
It can take several hours to reproduce, and several million operations.
Signed-off-by: Jonathan McDowell <noodles@meta.com>
Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions