cancel
Showing results for 
Search instead for 
Did you mean: 

Linux driver for TCG-TPM-I2C-DRV returning error -62 after chip reset.

BRein.4
Associate

This is a question about a TPM IC, if this is the wrong channel please advise as to correct channel.

The question relates to the Linux driver for the ST33TPHF2XI2C.

Setup:

Driver Verion - unlnown - downloaded from GITHUB 06-JUN-2022.

IC as ordered: ST33HTPH2X32AHE1

Hardware: On a HAT for a Raspberry PI 4, connected to i2c channel 1 (SLC1, SDA1 GPIO pins)

OS Linux 5.4.72-v7l 

Error observed: From dmesg: tpm tpm0: tpm_try_transmit: send(): error -62

Generated by: Issuing the tpm2_getrandom 10 command after having reset the ST33TPHF2XI2C via its physical reset pin, which is tied to GPIO 17 on the RPI HAT.

Questions:

  1. Is this a known issue or has this issue been reported in another bug (my search did not find this issue).
  2. Is there a known patch/workaround?
  3. Is STMicro supporting this driver - it doesn't appear to have been accepted into the Linux kernel and there doesn't appear to be a lot of activity with it.
2 REPLIES 2
selvans
Associate II

Hi Rein,

We are using same STM TPM2.0 chip for our platform.

Driver Version:

Exercise tpm_pcrextend and tpm_pcrread and then issue tpm reset using GPIO pin of our platform.

and tried to access the tpm after tpm_startup. However observed below erro

Error observed: From dmesg: tpm tpm0: tpm_try_transmit: send(): error -62

this is similar to what you have noticed while ago.

How did you resolve this problem ?

Do we have any driver patch to address it ?

Thanks

Selvan