public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Zhang, Chao B" <chao.b.zhang@intel.com>
To: winddy <winddy_zhang@foxmail.com>, edk2-devel <edk2-devel@lists.01.org>
Cc: winddy_zhang <winddy_zhang@byosoft.com.cn>
Subject: Re: [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected?
Date: Mon, 10 Oct 2016 14:16:30 +0000	[thread overview]
Message-ID: <FF72C7E4248F3C4E9BDF19D4918E90F2472C1CF2@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <tencent_3B704F7E27102BEF4DC0974A@qq.com>

Winddy:
  UEFI TCG/TCG2 solution is designed to make one BIOS image workable with either TPM1.2 or TPM2.0.
According to TCG2 spec explanation about TBB/TCB (the platform hardware, connection between CPU, Chipset & TPM etc.)
should always be secure and never be compromised. So here, the TPM chip switch is not a valid case we need to handle.






Thanks & Best regards
Chao Zhang

-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of winddy
Sent: Sunday, October 09, 2016 9:18 PM
To: edk2-devel
Cc: winddy_zhang
Subject: [edk2] [EDK2 tcg2] TCG2 variable TCG2_DEVICE_DETECTION_NAME does not work as expected?

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
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


      reply	other threads:[~2016-10-10 14:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=FF72C7E4248F3C4E9BDF19D4918E90F2472C1CF2@shsmsx102.ccr.corp.intel.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