Skip to contentSkip to conversation

TPM: workaround to enforce PCR updates across suspends

PATCH In review Rajiv Andrade 2 participants 2 messages Mar 25, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TPM: workaround to enforce PCR updates across suspends

Add a workaround for TPM's which fail to flush last written PCR values in a TPM_SaveState, in preparation for suspend.

Documentation/kernel-parameters.txt +10 -0
diff -u -r a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
@@ -98,6 +98,7 @@
 	SWSUSP	Software suspend (hibernation) is enabled.
 	SUSPEND	System suspend states are enabled.
 	FTRACE	Function tracing enabled.
+	TPM	TPM drivers are enabled.
 	TS	Appropriate touchscreen support is enabled.
 	UMS	USB Mass Storage support is enabled.
 	USB	USB support is enabled.
@@ -2588,6 +2589,15 @@
 
 	tp720=		[HW,PS2]
 
+	tpm_suspend_pcr=[HW,TPM]
+			Format: integer pcr id
+			Specify that at suspend time, the tpm driver
+			should extend the specified pcr with zeros,
+			as a workaround for some chips which fail to
+			flush the last written pcr on TPM_SaveState.
+			This will guarantee that all the other pcrs
+			are saved.
+
 	trace_buf_size=nn[KMG]
 			[FTRACE] will set tracing buffer size.
 
drivers/char/tpm/tpm.c +40 -7

63 lines not on this page · raw message