<tt><font size=2>"Kevin O'Connor" <kevin@koconnor.net>
wrote on 12/22/2015 10:40:03 AM:<br><br></font></tt><br><tt><font size=2>> <br>> On Mon, Dec 21, 2015 at 11:50:07AM -0500, Stefan Berger wrote:<br>> > "Kevin O'Connor" <kevin@koconnor.net> wrote on
12/17/2015 05:22:56 PM:<br>> > <br>> > > <br>> > > On Mon, Nov 30, 2015 at 11:32:05AM +0000, Wim Vervoorn wrote:<br>> > > > Hello,<br>> > > > <br>> > > > I noticed that a lot of work is going on for the TPM
support in <br>> > SeaBIOS.<br>> > > > <br>> > > > All of this work is TPM 1.2 based. I was wondering
if there are any<br>> > > > plans to support TPM 2.0 in the future.<br>> > > <br>> > > I'm not aware of any plans.<br>> > <br>> > We're working on it...<br>> > <br>> > <br>> > So maybe you have some comments to the following:<br>> > <br>> > There will be a patch for probing the TPM TIS hardware interface
for <br>> > whether there's a TPM 1.2 or a TPM 2.<br>> > We then have a patch for prefixing all TPM 1.2 functions with
tpm12_ and <br>> > then introduce functions like these ones here:<br>> > <br>> > static ... tpm12_foo() { ... }<br>> > static ... tpm2_foo() { ... }<br>> > <br>> > tpm_foo()<br>> > {<br>> >     [...]<br>> > <br>> >     switch (tpmversion) {<br>> >     case TPM_VERSION_1_2:<br>> >         tpm12_foo()<br>> >         break;<br>> >     case TPM_VERSION_2:<br>> >         tpm2_foo();<br>> >         break;<br>> >     }<br>> > <br>> >     [...]<br>> > }<br>> <br>> Is the difference between 1.2 and 2.0 so large that the above is<br>> needed?</font></tt><br><br><tt><font size=2>TPM 2 and TPM 1.2 have completely different commands,
so yes, unfortunately it's needed.</font></tt><br><br><tt><font size=2>   Stefan</font></tt><br><BR>