public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcel Selhorst <acpi-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
To: Alex Williamson <alex.williamson-VXdhtT5mjnY@public.gmane.org>
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Accessing DSDT entries within a kernel device driver
Date: Tue, 02 Aug 2005 23:33:11 +0200	[thread overview]
Message-ID: <42EFE697.8030701@selhorst.net> (raw)
In-Reply-To: <1123015115.5110.28.camel@tdi>

Hi Alex,

>    I was looking at this recently too.  I believe IFX0101 is the HID
> specifically for an Infineon TPM.  

Yes, thats exactly the TPM I am working with.

> There's a driver for it in -mm, 

oh I know, I have written it ;-))

> but it uses hard coded address (blech) and doesn't work on my laptop.

Thats the point why I am trying to use the ACPI-functions in order to
configure the TPM. Until now I assumed, that the ioports are correctly
set into the configuration registers of the TPM through the BIOS (at
least my prototypes did), but the feedback showed me, that it is not
always the case. Currently I am revising the kernel source code to do this
automatically and a new release will follow soon including support for
Infineons new TPM 1.2 chips.

(But you can try the older device driver (version 1.3.2) from
<http://www.prosec.rub.de/tpm>
This version is more hacky and manually assigns (hardcoded) ioports to the TPM, if
the configuration registers are zero. At least this version should work for your laptop.)

> The code to find it and extract the resources through ACPI is pretty simple,
> but Bjorn's idea of using the ACPI PNP framework is probably the right
> way to do it.  

I was looking in the acpi-sourcecode trying to get the "acpi_evaluate_object"-
things working, but wasn't succesful :(
Nevertheless, could you give a hint how to extract the resources through ACPI?

> There will be systems that have a TPM, but don't have an LPC bus exposed
> via a PCI device.  

Right. If you look at newer approaches, some manufacturers like BroadCom are
including their TPMs into their network chips and others are including the TPM
functionality directly into the super-io-controller.

> Seems like the LPC stuff needs to be separated into
> it's own driver and TPM needs to be more independent.  

In the current release of IBMs generic tpm interface (tpm.c/h), the lpc-stuff has
been replaced through pci_enable_device-calls exactly for this reason to make the
interface more flexible and LPC-bus-independent. But enhancing it with
ACPI-functionality would really be great.

Thanks and best regards!

Marcel Selhorst



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

  reply	other threads:[~2005-08-02 21:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-02 19:29 Accessing DSDT entries within a kernel device driver Marcel Selhorst
     [not found] ` <42EFC9AD.8060607-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
2005-08-02 20:18   ` Bjorn Helgaas
     [not found]     ` <200508021418.40355.bjorn.helgaas-VXdhtT5mjnY@public.gmane.org>
2005-08-02 21:00       ` Marcel Selhorst
2005-08-02 20:38   ` Alex Williamson
2005-08-02 21:33     ` Marcel Selhorst [this message]
     [not found]       ` <42EFE697.8030701-yWjUBOtONefk1uMJSBkQmQ@public.gmane.org>
2005-08-02 21:50         ` Alex Williamson
2005-08-02 22:05           ` Marcel Selhorst

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42EFE697.8030701@selhorst.net \
    --to=acpi-ywjubotonefk1umjsbkqmq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=alex.williamson-VXdhtT5mjnY@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox