From 28876cf845e726f8e06cd940dc77ab376cd45f01 Mon Sep 17 00:00:00 2001 From: Christian Limpach Date: Fri, 29 Jan 2010 01:08:14 +0000 Subject: [PATCH] [tboot] Add patch to fix timeout bug introduced by tboot.hg changeset 176. Either the TPM in the hp6930p doesn't operate to spec or the code was never tested. With the patch, the values read from the tpm are equal to the default values used before tpm timeout code was added in changesets 163 and 176. --- .../xenclient/tboot/tboot-fix-timeout.patch | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 package/xenclient/tboot/tboot-fix-timeout.patch diff --git a/package/xenclient/tboot/tboot-fix-timeout.patch b/package/xenclient/tboot/tboot-fix-timeout.patch new file mode 100644 index 0000000..1b152c5 --- /dev/null +++ b/package/xenclient/tboot/tboot-fix-timeout.patch @@ -0,0 +1,18 @@ +diff -r 75e242a56344 tboot/common/tpm.c +--- a/tboot/common/tpm.c Tue Jan 05 23:05:07 2010 -0800 ++++ b/tboot/common/tpm.c Fri Jan 29 00:59:05 2010 +0000 +@@ -1944,10 +1944,10 @@ + * timeout_x represents the number of milliseconds for the timeout + * and timeout[x] represents the number of microseconds. + */ +- g_timeout.timeout_a = timeout[0]/1000; +- g_timeout.timeout_b = timeout[1]/1000; +- g_timeout.timeout_c = timeout[2]/1000; +- g_timeout.timeout_d = timeout[3]/1000; ++ g_timeout.timeout_a = timeout[0]; ++ g_timeout.timeout_b = timeout[1]; ++ g_timeout.timeout_c = timeout[2]; ++ g_timeout.timeout_d = timeout[3]; + printk("TPM timeout values: A: %u, B: %u, C: %u, D: %u\n", + g_timeout.timeout_a, g_timeout.timeout_b, g_timeout.timeout_c, + g_timeout.timeout_d); -- 2.39.5