Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Issue 3389004: Rehaul of firmware TPM tests (Closed)

Created:
10 years, 3 months ago by Luigi Semenzato
Modified:
9 years, 7 months ago
Reviewers:
gauravsh
CC:
chromium-os-reviews_chromium.org, Randall Spangler, Bill Richardson, gauravsh, Luigi Semenzato
Visibility:
Public.

Description

Add new files: two tests, one common file, one program to set things up. Change-Id: I4c9b7a937103f3978cbed6629ee4057018b80eae More cleanup. Also allow some tests to run even when TPM is already started. Change-Id: I23558b96a1de55bbeca42dbf2e44f6802a0ec85b Reorganize and standardize behavior of tests. Change-Id: Id32fd09211a72deaa66a3dd0f973d35506ff96f2 BUG=433 TEST=ran all the tests I could run without TPM-free BIOS

Patch Set 1 #

Patch Set 2 : Rehaul of firmware TPM tests #

Patch Set 3 : remove unused tests #

Total comments: 4

Patch Set 4 : change PROF to PEROF and other nits #

Patch Set 5 : . #

Patch Set 6 : change PEROF to TPM_CHECK #

Patch Set 7 : hash change #

Patch Set 8 : remove leaked change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+301 lines, -322 lines) Patch
M firmware/lib/tpm_lite/include/tlcl.h View 1 chunk +2 lines, -1 line 0 comments Download
M firmware/version.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/tpm_lite/Makefile View 2 chunks +8 lines, -8 lines 0 comments Download
M tests/tpm_lite/clear.c View 1 2 1 chunk +0 lines, -29 lines 0 comments Download
M tests/tpm_lite/earlyextend.c View 1 2 3 4 5 1 chunk +5 lines, -13 lines 0 comments Download
M tests/tpm_lite/earlynvram.c View 1 2 3 4 5 1 chunk +7 lines, -31 lines 0 comments Download
M tests/tpm_lite/earlynvram2.c View 1 2 3 4 5 1 chunk +7 lines, -33 lines 0 comments Download
M tests/tpm_lite/enable.c View 1 2 3 4 5 1 chunk +13 lines, -16 lines 0 comments Download
M tests/tpm_lite/fastenable.c View 1 2 3 4 5 1 chunk +13 lines, -27 lines 0 comments Download
M tests/tpm_lite/globallock.c View 1 2 3 4 5 2 chunks +19 lines, -43 lines 0 comments Download
M tests/tpm_lite/readonly.c View 1 chunk +1 line, -1 line 0 comments Download
M tests/tpm_lite/redefine.c View 1 2 1 chunk +0 lines, -78 lines 0 comments Download
A tests/tpm_lite/redefine_unowned.c View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
M tests/tpm_lite/spaceperm.c View 1 2 3 4 5 2 chunks +8 lines, -16 lines 0 comments Download
M tests/tpm_lite/startup.c View 1 chunk +1 line, -0 lines 0 comments Download
A tests/tpm_lite/testsetup.c View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A tests/tpm_lite/timing.c View 1 2 3 4 5 1 chunk +60 lines, -0 lines 0 comments Download
A tests/tpm_lite/tlcl_tests.c View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
M tests/tpm_lite/writelimit.c View 1 2 3 4 5 1 chunk +19 lines, -24 lines 0 comments Download
M utility/Makefile View 6 7 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 5 (0 generated)
Luigi Semenzato
10 years, 3 months ago (2010-09-14 23:37:59 UTC) #1
gauravsh
What is PROF(). Doesn't seem descriptive enough. http://codereview.chromium.org/3389004/diff/4001/5008 File tests/tpm_lite/enable.c (right): http://codereview.chromium.org/3389004/diff/4001/5008#newcode28 tests/tpm_lite/enable.c:28: if (disable ...
10 years, 3 months ago (2010-09-15 08:42:13 UTC) #2
Luigi Semenzato
Thanks. I have changed PROF (Print and Return On Failure, as the comment said) to ...
10 years, 3 months ago (2010-09-15 16:27:51 UTC) #3
gauravsh
LGTM not too fond of either of PROF or PEROF. Not in common use, so ...
10 years, 3 months ago (2010-09-15 22:09:46 UTC) #4
Luigi Semenzato
10 years, 3 months ago (2010-09-15 22:44:41 UTC) #5
You're perfectly right.  I renamed it TPM_CHECK.

On 2010/09/15 22:09:46, gauravsh wrote:
> LGTM
> 
> not too fond of either of PROF or PEROF. Not in common use, so sounds exotic.
I
> don't have a better alternative though, so it's fine to keep it as is.
> 
> On 2010/09/15 16:27:51, Luigi Semenzato wrote:
> > Thanks.  I have changed PROF (Print and Return On Failure, as the comment
> said)
> > to the more descriptive PEROF (Print Error and Return On Failure).  This is
> used
> > everywhere so I'd rather keep it short.  I know it doesn't scale, but it
> doesn't
> > have to.
> > 
> > http://codereview.chromium.org/3389004/diff/4001/5008
> > File tests/tpm_lite/enable.c (right):
> > 
> > http://codereview.chromium.org/3389004/diff/4001/5008#newcode28
> > tests/tpm_lite/enable.c:28: if (disable == 1 || deactivated == 1) {
> > On 2010/09/15 08:42:13, gauravsh wrote:
> > > slightly confusing. SetEnable doesn't take an option but SetDeactivated
> does.
> > > Why?
> > 
> > For transparency, I am usually staying as close as possible to the TPM
> commands.
> >  Also notice this other difference: disable (adjective) and deactivated
(past
> > participle).  That's all in the TCG specs.
> > 
> > http://codereview.chromium.org/3389004/diff/4001/5017
> > File tests/tpm_lite/timing.c (right):
> > 
> > http://codereview.chromium.org/3389004/diff/4001/5017#newcode21
> > tests/tpm_lite/timing.c:21: /* Run OP and ensure it returns success and
> doesn't
> > run longer than TIME_LIMIT
> > On 2010/09/15 08:42:13, gauravsh wrote:
> > > nit: |op| or [op]
> > 
> > Thanks, done.

Powered by Google App Engine
This is Rietveld 408576698