]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/commit
vTPM: Fix Atmel timeout bug.
authorEmil Condrea <emilcondrea@gmail.com>
Thu, 30 Oct 2014 13:05:30 +0000 (15:05 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 14 Nov 2014 10:13:23 +0000 (10:13 +0000)
commit1c9b81bc72b1690cabf7d9d2f3a3b0148333270f
tree518eb1a69d458e76030a5008abb01aad2d32c22b
parent291386465aecf77e27c5a5d0934ebbb640a73a33
vTPM: Fix Atmel timeout bug.

Some versions of Atmel TPMs provide invalid values for TPM_CAP_PROP_TIS_TIMEOUT query.
Because timeouts are invalid, every other command after tpm_get_timeouts will fail.
It is a known issue and it was fixed recently in linux kernel tpm_tis.c on 2014-07-29.
This patch does not allow timeouts to be less than standard values.
I tested it on a Dell Latitude E5520 and after making the changes I was able to start vtpmmgr-stubdom.

Signed-off-by: Emil Condrea <emilcondrea@gmail.com>
Acked-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
tpm_tis.c