public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected?
@ 2016-10-09 13:18 winddy
  2016-10-10 14:16 ` Zhang, Chao B
  0 siblings, 1 reply; 2+ messages in thread
From: winddy @ 2016-10-09 13:18 UTC (permalink / raw)
  To: edk2-devel; +Cc: winddy_zhang

Hi experts, 
    Now I am studying latest tcg2 modules, and I guess there may be something wrong with variable (TCG2_DEVICE_DETECTION_NAME, gTcg2ConfigFormSetGuid). 
    This variable is used to save TPM device type(TPM1.2, TPM2.0, or not present) detected at PEI. The save action is at Tcg2ConfigDriverEntryPoint(), but this module is depended on protocol gEfiTcg2ProtocolGuid, if there is no TPM2 present, this module will not run and the variable value keeps last state.
    If I first add TPM2 device, boot once, then remove it and add TPM1.2, I think when it resumes form S3, DetectTpmDevice() function will derictly return TPM2 type, then auto detection seems wrong.
    So I guess we should add a new common module which has no dependence and its work is only to save TPM type from PCD to variable at "ReadyToBoot" event. 
    If any mistake in my understanding, please let me know.
    Thank you.


------------------
BR
winddy_zhang

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-10-10 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-09 13:18 [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected? winddy
2016-10-10 14:16 ` Zhang, Chao B

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox