-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ACPI TPM2 table generator #5827
Conversation
199e7bc
to
327ba1f
Compare
DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
Also:
|
Hi Pierre,
BTW, I will be OOTO next week. Please expect some delay in my response. Thanks, |
There is a module in another package which allows to display ACPI tables, for instance: I was wondering if you were planning to add support to display this table aswell
I think that all the ACPI tables are platform specific.
|
327ba1f
to
205d727
Compare
Hi Pierre, Sami, I have made fixes to my patch set. Please review again when you get a chance. Thanks, |
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Arm/AcpiTpm2LibArm/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Common/TableHelperLib/ConfigurationManagerObjectParser.c
Outdated
Show resolved
Hide resolved
c75c0ec
to
54ed52c
Compare
54ed52c
to
8c8054f
Compare
Hi Pierre, Sami, Thank you for your feedbacks. I have updated my patches to address them. Please review again when you get a chance. Thanks, |
DynamicTablesPkg/Library/Acpi/Common/AcpiTpm2Lib/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello Dat,
I added some comments. I think that with the following changes (if you think they are correct), the patch would be ok for me,
Regards,
Pierre
DynamicTablesPkg/Library/Acpi/Common/AcpiTpm2Lib/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiTpm2Lib/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
DynamicTablesPkg/Library/Acpi/Common/AcpiTpm2Lib/Tpm2Generator.c
Outdated
Show resolved
Hide resolved
8c8054f
to
b263b60
Compare
b263b60
to
3d1f58a
Compare
The change in MdePkg is good to me. |
PR can not be merged due to conflict. Please rebase and resubmit |
Hi Liming @lgao4, Mike @mdkinney, This is a new feature to add TPM2 table generation capability in Dynamic Tables Framework. This patch set had almost completed the review before 5th Aug. Would it be possible to apply the push label so that it can catch this release cycle, please? Regards, Sami Mujawar |
@nvidia-dmach I think you may need to rebase and push this series again. Can you take a look, please? |
d2ea3a5
to
54de26b
Compare
Hi Sami, |
Yes. But, this pach needs approve from the maintainer or reviewer of MdePkg and DynamicTablesPkg. I will give my approval. After DynamicTablesPkg maintainer gives the approval, I will add push label for this change. |
54de26b
to
c081026
Compare
Hi Sami, Liming, Thanks for the approvals. Is there anything I need to do for this patch set to merge? Thanks, |
Define macro for the max size of the Start Method Specific Paramemeters field. Signed-off-by: Dat Mach <dmach@nvidia.com>
Generate ACPI TPM2 table using the information obtained from Tpm2InterfaceInfo CM object. Signed-off-by: Dat Mach <dmach@nvidia.com>
Add helper function HexDump for printing hex dump of CM Object fields. Also merge multiple flavors of PrintCharX into one function PrintChars by using the field length. Signed-off-by: Dat Mach <dmach@nvidia.com>
Update the CM Object parser to add support for parsing the CM_ARM_TPM2_INTERFACE_INFO object. Signed-off-by: Dat Mach <dmach@nvidia.com>
c081026
to
bfd47a4
Compare
Description
Add AcpiTpm2LibArm for generating ACPI TPM2 table using the information obtained from Tpm2InterfaceInfo CM object.
Add helper function HexDump for printing hex dump of CM Object fields. Also merge multiple flavors of PrintCharX into one function PrintChars by using the field length.
Add parser for Tpm2 CM object, which uses HexDump for dumping the 12 bytes of "StartMethodParameters" field.
Breaking change?
Impacts security?
Includes tests?
How This Was Tested
Integration Instructions
N/A