Frans Hendriks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30826 )
Change subject: security/tpm/tss/tcg-2.0: Add TPM2 function tlcl_getcapability()
......................................................................
Patch Set 18:
(3 comments)
https://review.coreboot.org/#/c/30826/17/src/security/tpm/tss/tcg-2.0/tss.c
File src/security/tpm/tss/tcg-2.0/tss.c:
https://review.coreboot.org/#/c/30826/17/src/security/tpm/tss/tcg-2.0/tss.c@...
PS17, Line 379: "supported yet\n", __func__);
Shouldn't this assert() or error out?
Done
https://review.coreboot.org/#/c/30826/17/src/security/tpm/tss/tcg-2.0/tss_st...
File src/security/tpm/tss/tcg-2.0/tss_structures.h:
https://review.coreboot.org/#/c/30826/17/src/security/tpm/tss/tcg-2.0/tss_st...
PS17, Line 234: #define PCR_SELECT_MIN ALIGN_UP(PLATFORM_PCR, 8)/8
Just use DIV_ROUND_UP() for these
DIV_ROUND_UP() as function can't be used for PCR_SELECT_XXX.
(braced-group can not be used with structure TPMS_PCR_SELECTION).
Will place the ALIGN_UP within ()
https://review.coreboot.org/#/c/30826/17/src/security/tpm/tss/tcg-2.0/tss_st...
PS17, Line 235: #define PCR_SELECT_MAX ALIGN_UP(IMPLEMENTATION_PCR, 8)/8
Macros with complex values should be enclosed in parentheses
Done
--
To view, visit
https://review.coreboot.org/c/coreboot/+/30826
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I85e1bd2822aa6e7fd95ff2b9faa25cf183e6de37
Gerrit-Change-Number: 30826
Gerrit-PatchSet: 18
Gerrit-Owner: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Andrey Pronin
apronin@chromium.org
Gerrit-Reviewer: David Hendricks
david.hendricks@gmail.com
Gerrit-Reviewer: Frans Hendriks
fhendriks@eltan.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Michał Żygowski
michal.zygowski@3mdeb.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: Philipp Deppenwiese
zaolin.daisuki@gmail.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Angel Pons
th3fanbus@gmail.com
Gerrit-CC: Arthur Heymans
arthur@aheymans.xyz
Gerrit-CC: Patrick Rudolph
Gerrit-CC: Patrick Rudolph
siro@das-labor.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-Comment-Date: Wed, 26 Jun 2019 08:53:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Julius Werner
jwerner@chromium.org
Comment-In-Reply-To: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-MessageType: comment