On Tue, 31 Jul 2007 14:01:21 MDT, Bjorn Helgaas said: > So, the BIOS is telling us that at least as currently configured, the > TPM can't use interrupts. /sys/devices/pnp0/00:0f/options should have > all the *possible* TPM configurations. I would guess that none of them > shows an IRQ either. Hmm.. Oddness. Looks empty: # cat /sys/devices/pnp0/00\:0f/options | wc 0 0 0 Or is that expected if the chipset has one cast-in-stone/ROM config? > In general, if the BIOS says there's no interrupt, we should not poke > around looking for one unless we think there's a BIOS defect. I think > you said that under 2.6.22-rc6-mm1, the TPM didn't find a working > interrupt either. > Yup, I hadn't considered the case of BIOS not telling us an interrupt > for the device. In that case, I think we should force interrupts off > as you suggest. Here's the patch I would propose: Patch tested, and seems to decide to initialize in polled mode on my machine, without having to do any /etc/modprobe.conf 'interrupts=0'. I'm able to run the tpm_demo program from libtpm-2.0, so /dev/tpm0 does seem to be operational. You can stick this on the patch and pass it along: Tested-By: <[email protected]> but I'd suggest running a regression test against a chipset that *does* do IRQs before sending it upstream (if you haven't already)...
Attachment:
pgp01IX4DFt5G.pgp
Description: PGP signature
- Follow-Ups:
- Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- From: Bjorn Helgaas <[email protected]>
- Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- References:
- 2.6.23-rc1-mm1
- From: Andrew Morton <[email protected]>
- Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- From: [email protected]
- Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- From: [email protected]
- Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- From: Bjorn Helgaas <[email protected]>
- 2.6.23-rc1-mm1
- Prev by Date: [PATCH 58] net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c: kmalloc + memset conversion to kzalloc
- Next by Date: [PATCH 59] drivers/video/offb.c: kmalloc + memset conversion to kzalloc
- Previous by thread: Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- Next by thread: Re: 2.6.23-rc1-mm1 - seems OK on Dell Latitude D820, except for tpm_tis
- Index(es):