module tpm_tis times out

Bug #413519 reported by Andrea Bocci
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Binary package hint: linux-image-generic

Hi,
I'm using the latest "proposed" linux kernel with Jaunty:

fwyzard@katchoo:~$ uname -a
Linux katchoo 2.6.28-15-generic #48-Ubuntu SMP Wed Jul 29 08:53:35 UTC 2009 x86_64 GNU/Linux

on an Asus M50V laptop, which has an integrated Infineon 1.2 TPM module.
Most TPM commands (from the tpm-tools package) fail with an I/O error due to a time out in the tpm_tis.ko kernel module:

fwyzard@katchoo:~$ tpm_selftest -l debug
Tspi_Context_Create success
Tspi_Context_Connect success
Tspi_Context_GetTpmObject success
[ 977.896097] tpm_tis 00:0e: Operation Timed out
Tspi_TPM_SelfTestFull failed: 0x00001087 - layer=tddl, code=0087 (135), I/O error
Tspi_Context_FreeMemory success
Tspi_Context_Close success

fwyzard@katchoo:~$ tpm_takeownership -l debug -z -y
Tspi_Context_Create success
Tspi_Context_Connect success
Tspi_Context_GetTpmObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
Tspi_Context_CreateObject success
Tspi_GetPolicyObject success
Tspi_Policy_SetSecret success
[ 406.248070] tpm_tis 00:0e: Operation Timed out
Tspi_TPM_TakeOwnership failed: 0x00001087 - layer=tddl, code=0087 (135), I/O error
Tspi_Context_CloseObject success
Tspi_Context_FreeMemory success
Tspi_Context_Close success

Looking into the code of the tpm.ko and tpm_tis.ko modules (drivers/char/tpm/tpm.c, drivers/char/tpm/tpm_tis.c), there are mixed references to "msecs_to_jiffies" and "usecs_to_jiffies".
If I arbitrarily increase by x1000 some of the time out values using "msecs_to_jiffies" everywhere instead of "usecs...", and recompile the modules (using DKMS), the tpm-tools work fine.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
NonfreeKernelModules: openafs nvidia
Package: linux-image-generic 2.6.28.15.20
ProcEnviron:
 SHELL=/bin/bash
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB:en
SourcePackage: linux-meta
Uname: Linux 2.6.28-15-generic x86_64

Revision history for this message
Andrea Bocci (fwyzard) wrote :
Revision history for this message
Andrea Bocci (fwyzard) wrote :
Revision history for this message
kernel-janitor (kernel-janitor) wrote :

[This is an automated message. Apologies if it has reached you inappropriately.]

This bug was reported against the linux-meta package when it likely should have been reported against the linux package instead. We are automatically transitioning this to the linux kernel package so that the appropriate teams are notified and made aware of this issue.

If this bug really is a bug in the linux-meta package you can move it back to linux-meta and set the Status to Confirmed, or contact us on the #ubuntu-kernel channel on the FreeNode IRC server. Thanks.

affects: linux-meta (Ubuntu) → linux (Ubuntu)
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi fwyzard,

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux 413519

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: needs-kernel-logs
tags: added: needs-upstream-testing
tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

This bug report was marked as Incomplete and has not had any updated comments for quite some time. As a result this bug is being closed. Please reopen if this is still an issue in the current Ubuntu release http://www.ubuntu.com/getubuntu/download . Also, please be sure to provide any requested information that may have been missing. To reopen the bug, click on the current status under the Status column and change the status back to "New". Thanks.

[This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-expired
Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Loïc Minier (lool) wrote :

This seems similar to bug #602049; maybe check out that one?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.