From: winddy <winddy_zhang@foxmail.com>
To: edk2-devel <edk2-devel@lists.01.org>
Cc: winddy_zhang <winddy_zhang@byosoft.com.cn>
Subject: [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected?
Date: Sun, 9 Oct 2016 21:18:28 +0800 [thread overview]
Message-ID: <tencent_3B704F7E27102BEF4DC0974A@qq.com> (raw)
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
next reply other threads:[~2016-10-09 13:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-09 13:18 winddy [this message]
2016-10-10 14:16 ` [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected? Zhang, Chao B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tencent_3B704F7E27102BEF4DC0974A@qq.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox