From: Stefan B. <st...@li...> - 2013-01-22 15:10:44
|
The following first patch fixes the cancellation of TPM commands on one of my machines where the TPM's status register returns a different status value than what the current code expects. Unfortunately I cannot test the 2nd patch since I cannot run the TPM in interrupt mode on that machine, so I am hoping that someone can try it. One way to test cancellation is to create keys and to 'echo - > cancel' into the TPM cancel sysfs file while the command is executing. It may take several key creations to drain the TPM of 'cached' keys until it takes a long time to create a key that can then be easily cancelled. Regards, Stefan V3: - use TPM vendor ID to differentiate status flag checking for detecting command cancellation |