]> asedeno.scripts.mit.edu Git - linux.git/commit
tpm2: add longer timeouts for creation commands.
authorTomas Winkler <tomas.winkler@intel.com>
Sat, 10 Mar 2018 15:15:45 +0000 (17:15 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fri, 23 Mar 2018 08:18:06 +0000 (10:18 +0200)
commit076d356460273e3c702f46fc87471b508fb55e7b
treeb19fca82f9222da0cd5bb0a30851563fe60a27c2
parent09b17f321c15879833bbe072cf28e3f0625d3fb7
tpm2: add longer timeouts for creation commands.

TPM2_CC_Create(0x153) and TPM2_CC_CreatePrimary (0x131) involve generation
of crypto keys which can be a computationally intensive task. The timeout
is set to 3min. Rather than increasing default timeout a new constant is
added, to not stall for too long on regular commands failures.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm-interface.c
drivers/char/tpm/tpm.h
drivers/char/tpm/tpm2-cmd.c