public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Stuart Yoder" <stuart.yoder@arm.com>
To: devel@edk2.groups.io, edhaya.chandran@arm.com
Subject: Re: [edk2-devel] [PATCH v2 1/4] uefi-sct/SctPkg: TCG2 Protocol: correct definition of TPMT_HA struct
Date: Wed, 24 Apr 2024 08:58:53 -0500	[thread overview]
Message-ID: <f836053d-89de-4d15-8d97-cf83a8e897a4@arm.com> (raw)
In-Reply-To: <6441.1713958590295719380@groups.io>

[-- Attachment #1: Type: text/plain, Size: 1583 bytes --]

Hi Edhaya,

Yes, we could get rid of the TPM 2.0 definitions and include the MdePkg 
definition, but it will require rework of TCG2.h to remove duplicate 
definitions.

But, what is the general of philosophy of what source code edk2-test 
should include from edk2?  Since the purpose of edk2-test is to test the 
firmware, for some things it seems better for edk2-test to have it's own 
private  definitions.  Otherwise, if there was an edk2 bug in something 
like a protocol definition, and if edk2-test included the same .h file, 
then the bug may never be discovered.  It's better if edk2-test defines 
it's own structs based on the specifications.  That way it is 
independent of the firmware and it's a better test.

In the case of Tpm20.h, that is probably not the case as those are TPM 
definitions, not protocol definitions.

Do you want me to try to get rid of the TPM definitions and use Tpm20.h 
for this patch series?  Or, as a separate patch?

Thanks,

Stuart

On 4/24/24 6:36 AM, G Edhaya Chandran via groups.io wrote:
> Update: We have the struct itself define here:
> https://github.com/tianocore/edk2/blob/master/MdePkg/Include/IndustryStandard/Tpm20.h#L904 
>
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#118214): https://edk2.groups.io/g/devel/message/118214
Mute This Topic: https://groups.io/mt/105558006/7686176
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io]
-=-=-=-=-=-=-=-=-=-=-=-



[-- Attachment #2: Type: text/html, Size: 2673 bytes --]

  reply	other threads:[~2024-04-24 13:58 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-04-16 14:53 [edk2-devel] [PATCH v2 0/4] TCG2 protocol clean up Stuart Yoder
2024-04-16 14:53 ` [edk2-devel] [PATCH v2 1/4] uefi-sct/SctPkg: TCG2 Protocol: correct definition of TPMT_HA struct Stuart Yoder
2024-04-24 11:16   ` G Edhaya Chandran
2024-04-24 11:32     ` G Edhaya Chandran
2024-04-24 11:36       ` G Edhaya Chandran
2024-04-24 13:58         ` Stuart Yoder [this message]
2024-04-25  5:40           ` G Edhaya Chandran
2024-04-16 14:53 ` [edk2-devel] [PATCH v2 2/4] uefi-sct/SctPkg: TCG2 Protocol: use OFFSET_OF for computing offsets Stuart Yoder
2024-04-24 11:17   ` G Edhaya Chandran
2024-04-16 14:54 ` [edk2-devel] [PATCH v2 3/4] uefi-sct/SctPkg: TCG2 Protocol: #pragma pack cleanup Stuart Yoder
2024-04-24 11:17   ` G Edhaya Chandran
2024-04-16 14:54 ` [edk2-devel] [PATCH v2 4/4] uefi-sct/SctPkg: TCG2 Protocol: clean up type conversion warnings Stuart Yoder
2024-04-24 11:17   ` G Edhaya Chandran
2024-04-22 19:15 ` [edk2-devel] [PATCH v2 0/4] TCG2 protocol clean up Heinrich Schuchardt
2024-04-23  9:52   ` G Edhaya Chandran
2024-05-03 23:47     ` [edk2-devel] edk2-test Release candidate 2: edk2-test-rc2_202405 // " G Edhaya Chandran
2024-05-05 22:21       ` [edk2-devel] edk2-test Release candidate 2: edk2-test-rc2_202405 Heinrich Schuchardt
2024-05-06 17:26         ` G Edhaya Chandran
2024-05-09 20:23       ` [edk2-devel] edk2-test Release candidate 2: edk2-test-rc2_202405 // RE: [PATCH v2 0/4] TCG2 protocol clean up David Wright
2024-05-10  2:43         ` G Edhaya Chandran
2024-05-10  2:55           ` Chao Li
2024-05-10 14:56             ` G Edhaya Chandran
2024-05-11  2:47               ` Chao Li
     [not found]               ` <17CE4F3DF61B149E.21609@groups.io>
2024-05-13  6:21                 ` Chao Li
2024-05-13 15:21                   ` G Edhaya Chandran

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=f836053d-89de-4d15-8d97-cf83a8e897a4@arm.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