Re: [PATCH] tpm: Start the tpm2 before running a self test.

From: Angga
Date: Sun Nov 26 2023 - 21:07:35 EST


On 24/11/2023 2:42 pm, Jarkko Sakkinen wrote:
> On Wed Nov 22, 2023 at 8:55 AM EET, Hermin Anggawijaya wrote:
>> Before sending a command to attempt the self test, the TPM
>> may need to be started, otherwise the self test returns
>> TPM2_RC_INITIALIZE value causing a log as follows:
>> "tpm tpm0: A TPM error (256) occurred attempting the self test".
>>
>> Signed-off-by: Hermin Anggawijaya <hermin.anggawijaya@xxxxxxxxxxxxxxxxxxx>
> Firmware does TPM power on.
>
> BR, Jarkko

Hello Jarkko

Thank you for your comment on the patch. As indicated in my previous
reply to Stefan's comment,
I have v2 version of the patch which also deals with multiple attempts
to start up the TPM gracefully,
for example, once by the firmware and another by the kernel during tpm2
auto-startup.

If you think the idea is OK, I can send the v2 of the patch.


Kind regards

Hermin