From: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
To: Randy Dunlap <randy.dunlap@oracle.com>
Cc: linux-kernel@vger.kernel.org, zohar@linux.vnet.ibm.com,
jmorris@namei.org
Subject: Re: [PATCH] TPM: ACPI/PNP dependency removal
Date: Fri, 7 May 2010 00:03:47 -0300 [thread overview]
Message-ID: <6449985E-CFA7-4974-B1D0-19626102B5BD@linux.vnet.ibm.com> (raw)
In-Reply-To: <20100504150026.907f3ed3.randy.dunlap@oracle.com>
On May 4, 2010, at 7:00 PM, Randy Dunlap wrote:
> On Tue, 04 May 2010 18:49:20 -0300 Rajiv Andrade wrote:
>
>> This patch pushes the ACPI dependency into the device driver code
>> itself. Now, even without ACPI/PNP enabled, the device can be registered
>> using the TIS specified memory space. This will however result in the
>> lack of access to the bios event log, being the only implication of such
>> ACPI removal.
>>
>> Signed-off-by: Rajiv Andrade <srajiv@linux.vnet.ibm.com>
>> Acked-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
>> ---
>> drivers/char/tpm/Kconfig | 14 +++++++++++---
>> drivers/char/tpm/tpm_tis.c | 42 ++++++++++++++++++++++--------------------
>> 2 files changed, 33 insertions(+), 23 deletions(-)
>>
>> diff --git a/drivers/char/tpm/Kconfig b/drivers/char/tpm/Kconfig
>> index f5fc64f..0a9ec0b 100644
>> --- a/drivers/char/tpm/Kconfig
>> +++ b/drivers/char/tpm/Kconfig
>> @@ -17,20 +17,28 @@ menuconfig TCG_TPM
>> obtained at: <http://sourceforge.net/projects/trousers>. To
>> compile this driver as a module, choose M here; the module
>> will be called tpm. If unsure, say N.
>> - Note: For more TPM drivers enable CONFIG_PNP, CONFIG_ACPI
>> - and CONFIG_PNPACPI.
>> + Note: For more TPM drivers and BIOS LOG access enable
>> + CONFIG_PNP, CONFIG_ACPI and CONFIG_PNPACPI.
>>
>> if TCG_TPM
>>
>> config TCG_TIS
>> tristate "TPM Interface Specification 1.2 Interface"
>> - depends on PNP
>> ---help---
>> If you have a TPM security chip that is compliant with the
>> TCG TIS 1.2 TPM specification say Yes and it will be accessible
>> from within Linux. To compile this driver as a module, choose
>> M here; the module will be called tpm_tis.
>>
>> +config TCG_BIOS_LOG
>> + bool "TPM bios mesurement log"
>
> BIOS measurement
>
>> + depends on X86
>> + select ACPI
>> + ---help---
>> + ACPI is required for access to bios measurements lists and therefore
>
> BIOS
>
> and if I had any say-so, I would Nack this part of the patch.
> Selecting ACPI adds a huge amount of code, so it should just depend on ACPI IMO.
>
> Also, ACPI depends on PCI and PM, so if this "select" part remains,
> this should be more like:
>
> depends on X86 && PCI && PM
>
> (unless that's already enforced somewhere else).
Ok, this option here was just to enforce the warning 'You won't be able to validate PCRs 0-7 if without ACPI enabled'. I'll then just document this and remove this option. In the end, we'll be left with the ACPI code and Kconfig dependency removal from the TPM device driver.
Thanks,
Rajiv
next prev parent reply other threads:[~2010-05-07 3:03 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-04 21:49 Rajiv Andrade
2010-05-04 22:00 ` Randy Dunlap
2010-05-04 22:30 ` Mimi Zohar
2010-05-07 3:03 ` Rajiv Andrade [this message]
2010-05-05 0:01 ` James Morris
2010-05-13 20:23 Rajiv Andrade
2010-05-13 20:29 ` Randy Dunlap
2010-05-13 20:37 ` Rajiv Andrade
2010-05-16 23:09 ` James Morris
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=6449985E-CFA7-4974-B1D0-19626102B5BD@linux.vnet.ibm.com \
--to=srajiv@linux.vnet.ibm.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=randy.dunlap@oracle.com \
--cc=zohar@linux.vnet.ibm.com \
/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
all inboxes | Powered by JetHome®