Subject: results on Thinkpad X30
To: None <tech-kern@netbsd.org>
From: Gilbert Fernandes <gilbertf@netbsd-fr.org>
List: tech-kern
Date: 11/09/2003 17:40:22
Ok. Results of TCPA driver for my Thinkpad X30.

Applied patch successfully to 1.6ZE sources branch.

Compiled new kernel, based on GENERIC + APM + TCPA

Booted new kernel. Checked that /dev/tpm is present
and major/minor modes are set correctly.

Compiling TPM required me to edit buildbuff.c
to add '#includes <sys/types.h> since the code
uses htonl without including the proper header file,
with a fail from the gmake (we should report this
to the developer guys at ibm perhaps so they
can add the include when compiled on netbsd ?)

Kernel booted, TCPA chip being detected as:

tcpa0 at pci0 dev 31 function 0 at 0x400
(Intel ICH2 LPC), version 1.1.0.6, vendor ATML

Test program says :

{7} ./tcpa_demo
TPM successfully reset
TPM version 1.1.0.6
16 PCR registers are available
PCR-00: 78 5D D5 47 3C D1 7F 44 82 BD F1 70 FF 96 DF FC DC C8 29 1F
PCR-01: 29 83 75 36 1A 06 AC BE 7C 97 8A 54 5E 6E 54 E5 32 FF 22 57
PCR-02: EB B3 BA AE E7 57 4B B6 37 AA AB 67 0F 9A C1 BC EB 6F 80 F3
PCR-03: 04 FD EC DD 50 1D AF 0F 62 4C 1F 99 60 12 CF 30 44 FF 46 10
PCR-04: D8 DF 75 B7 5F 17 9F FE 58 F3 87 C1 68 CC 11 D7 F9 F2 CB ED
PCR-05: 04 FD EC DD 50 1D AF 0F 62 4C 1F 99 60 12 CF 30 44 FF 46 10
PCR-06: 04 FD EC DD 50 1D AF 0F 62 4C 1F 99 60 12 CF 30 44 FF 46 10
PCR-07: 04 FD EC DD 50 1D AF 0F 62 4C 1F 99 60 12 CF 30 44 FF 46 10
PCR-08: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-09: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-11: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-12: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-13: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-14: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PCR-15: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
10 Key slots are available
No keys are loaded

Reboot the machine and cleared the keys from the
TCPA chip. Then tried the takedown as such :

./takedown first_passwd second_passwd

Worked all fine. /var/log/messages reports :

state write working
in tcpa_write
in tcpa_read
state read start
last message repeated 37 times
tcpa: state wait for data
in tcpa_close
in tcpa_open
state write start
state write busy
base: 00000400, status bit: 00000008
state write working
in tcpa_write
in tcpa_read
state read start
state wait for data
in tcpa_close

Seems to work fine on X30 thus :)

-- 
Gilbert Fernandes