Re: [tpmdd-devel] [PATCH v2] drivers/tpm: add xen tpmfront interface

2013-05-28 Thread Kent Yoder
On Fri, May 24, 2013 at 9:37 AM, Konrad Rzeszutek Wilk wrote: > On Wed, May 22, 2013 at 05:12:24PM -0500, Kent Yoder wrote: >> On Wed, May 22, 2013 at 3:57 PM, Konrad Rzeszutek Wilk >> wrote: >> > On Wed, May 22, 2013 at 02:47:01PM -0500, Kent Yoder wrote: >> >&g

Re: [tpmdd-devel] [PATCH v2] drivers/tpm: add xen tpmfront interface

2013-05-22 Thread Kent Yoder
On Wed, May 22, 2013 at 3:57 PM, Konrad Rzeszutek Wilk wrote: > On Wed, May 22, 2013 at 02:47:01PM -0500, Kent Yoder wrote: >> >> + notify_remote_via_evtchn(priv->evtchn); >> >> + >> >> + ordinal = be32_to_cpu(*((__be32 *) (buf + 6))); >> &

Re: [tpmdd-devel] [PATCH v2] drivers/tpm: add xen tpmfront interface

2013-05-22 Thread Kent Yoder
>> + notify_remote_via_evtchn(priv->evtchn); >> + >> + ordinal = be32_to_cpu(*((__be32 *) (buf + 6))); > > Um, + 6? Why? Is there an #define for that magic constant? > Should this value be read before you do the wait_for_tpm_stat stuff? This is hardcoded to 6 even in tpm.c. Time for a #

[PATCHv2] maintainers: remove Kent from maintainers list

2013-05-22 Thread Kent Yoder
Signed-off-by: Kent Yoder --- v2: Replace Kent with other so that NX isn't unmaintained, leave tpmdd-devel as maintainer for TPM MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 829c032..5ec293d 100644 --- a/MAINTA

Re: [PATCH] maintainers: Remove Kent from maintainers

2013-05-22 Thread Kent Yoder
On Wed, May 22, 2013 at 09:37:20AM -0700, Joe Perches wrote: > On Wed, 2013-05-22 at 10:56 -0500, Kent Yoder wrote: > > > diff --git a/MAINTAINERS b/MAINTAINERS > [] > > @@ -3971,7 +3971,8 @@ S:Maintained > > F: arch/ia64/ > > > > IBM Power in-Nest

[PATCH] maintainers: Remove Kent from maintainers

2013-05-22 Thread Kent Yoder
Signed-off-by: Kent Yoder --- MAINTAINERS | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 829c032..592af73 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3971,7 +3971,8 @@ S:Maintained F: arch/ia64/ IBM Power in-Nest

[PULL] TPM driver updates

2013-05-22 Thread Kent Yoder
Hi James, The following changes since commit 4726e8fa1dcad533362475ebf91f70d5b6b6292f: security: clarify cap_inode_getsecctx description (2013-05-12 21:32:38 +1000) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-05-21-13 for you to fetch changes up to 1

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-05-13 Thread Kent Yoder
with some instructions, here: http://smatch.sourceforge.net/. Kent > However, these warning will be corrected in the next patch and the others too. > > Regards, > > Mathias Leblanc > > -----Original Message- > From: Kent Yoder [mailto:shpedoi...@gmail.com] > Sent: 10

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-05-10 Thread Kent Yoder
On Fri, May 10, 2013 at 8:38 AM, Kent Yoder wrote: > Hi Mathias, Sorry, this note got sent before I was done somehow... A few compile warnings left: drivers/char/tpm/tpm_spi_stm_st33.c: In function ‘tpm_stm_spi_status’: drivers/char/tpm/tpm_spi_stm_st33.c:289:2: error: ‘data’ is u

Re: [PATCH] drivers/crypto/nx: fixes for multiple issues

2013-05-06 Thread Kent Yoder
Thanks! Kent On Mon, May 6, 2013 at 4:53 PM, Benjamin Herrenschmidt wrote: > On Mon, 2013-05-06 at 14:24 -0500, Kent Yoder wrote: >> Hi Ben, just a friendly reminder to please apply. > > Oh, I assumed that stuff was going via some drivers/crypto maintainer... > > I can app

Re: [PATCH] drivers/crypto/nx: fixes for multiple issues

2013-05-06 Thread Kent Yoder
Hi Ben, just a friendly reminder to please apply. Thanks, Kent On Fri, Apr 12, 2013 at 12:13:59PM -0500, Kent Yoder wrote: > Fixes a race on driver init with registering algorithms where the > driver status flag wasn't being set before self testing started. > > Added the cr

Re: [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-05-06 Thread Kent Yoder
Hi Mathias, On Mon, May 06, 2013 at 01:14:44PM +0200, Matthias Leblanc wrote: > From: Mathias Leblanc > > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * und

Re: [PATCH] tpm_tis: fix missing platform_driver_unregister

2013-05-02 Thread Kent Yoder
On Thu, May 02, 2013 at 07:39:50PM +0800, Libo Chen wrote: > > Add missing unregister tis_drv after register pdev fail > > Signed-off-by: Libo Chen Hi Libo - thanks for the contribution, but I got an similar patch last week from Wei Yongjun. Its staged over here [1] and will be pushed soon.

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-29 Thread Kent Yoder
On Sun, Apr 28, 2013 at 03:16:33AM +0200, Peter Hüwe wrote: > Hi Matthias, > > it's nice to see that you consider most of the comments, unfortunately I > still > have some left ;) > > > +/* > > + * tpm_st33_spi_init initialize driver > > + * @return: 0 if successful, else non zero value. > > +

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-26 Thread Kent Yoder
Kent > Regards, > > Mathias > > -Original Message- > From: Kent Yoder [mailto:shpedoi...@gmail.com] > Sent: 22 April, 2013 20:31 > To: Mathias LEBLANC > Cc: Kent Yoder; Rajiv Andrade; Marcel Selhorst; Sirrix AG; > tpmdd-de...@lists.sourceforge.net; Je

Re: [tpmdd-devel] [PATCH] tpm_tis: missing platform_driver_unregister() on error in init_tis()

2013-04-26 Thread Kent Yoder
On Thu, Apr 25, 2013 at 03:07:47PM +0800, Wei Yongjun wrote: > From: Wei Yongjun > > Add the missing platform_driver_unregister() before return > from init_tis() in the device register error handling case. > > Signed-off-by: Wei Yongjun Applied and staged here, thanks! git://github.com/sh

Re: [tpmdd-devel] tpm_tis driver failed to suspend, error -62

2013-04-23 Thread Kent Yoder
On Tue, Apr 23, 2013 at 10:03 AM, wrote: > 2013-04-23 16:43 skrev Kent Yoder: > >> On Tue, Apr 23, 2013 at 04:30:53PM +0200, peteraspl...@gentoo.se wrote: >>> >>> 2013-04-11 23:41 skrev Kent Yoder: >>> >On Sat, Apr 06, 2013 at 06:00:59PM +0200, peteraspl

Re: [tpmdd-devel] tpm_tis driver failed to suspend, error -62

2013-04-23 Thread Kent Yoder
On Tue, Apr 23, 2013 at 04:30:53PM +0200, peteraspl...@gentoo.se wrote: > 2013-04-11 23:41 skrev Kent Yoder: > >On Sat, Apr 06, 2013 at 06:00:59PM +0200, peteraspl...@gentoo.se > >wrote: > >>2013-04-02 16:03 skrev Kent Yoder: > >>>Hi Peter, > >>&

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-22 Thread Kent Yoder
You're under the tpm_mutex, so I think you're safe from other TPM writes, but what about other devices on the bus? Can they contend for the read/write? Kent > Regards, > > Mathias Leblanc > > -Original Message- > From: Kent Yoder [mailto:shpedoi...@gmail.com]

Re: [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-22 Thread Kent Yoder
On Mon, Apr 22, 2013 at 06:20:17PM +0200, Matthias Leblanc wrote: > From: Mathias Leblanc > > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain co

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-22 Thread Kent Yoder
On Mon, Apr 22, 2013 at 10:50:06AM +0200, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > This is the dr

Re: [tpmdd-devel] [PATCH v2] drivers/tpm: add xen tpmfront interface

2013-04-19 Thread Kent Yoder
Hi Daniel - this looks good, only one minor comment below... On Thu, Apr 11, 2013 at 10:56:01AM -0400, Daniel De Graaf wrote: > This is a complete rewrite of the Xen TPM frontend driver, taking > advantage of a simplified frontend/backend interface and adding support > for cancellation and timeout

[PULL] TPM driver updates

2013-04-18 Thread Kent Yoder
Hi James, The following changes since commit 958d2c2f4ad905e3ffa1711d19184d21d9b00cc1: Smack: include magic.h in smackfs.c (2013-04-03 13:13:51 +1100) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-04-17-13 for you to fetch changes up to 32d33b29ba077d6

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-04-17 Thread Kent Yoder
Hi Matthias, On Fri, Apr 12, 2013 at 10:44:11AM +0200, Matthias Leblanc wrote: > From: Mathias Leblanc > > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * un

Re: [PATCH] TPM: Retry SaveState command in suspend path

2013-04-17 Thread Kent Yoder
On Tue, Apr 16, 2013 at 6:57 PM, Greg KH wrote: > On Tue, Mar 19, 2013 at 10:00:02AM -0500, Kent Yoder wrote: >> Hi Duncan, >> >> On Sun, Mar 17, 2013 at 4:56 PM, Duncan Laurie wrote: >> > If the TPM has already been sent a SaveState command before the driver >&

[PATCH] drivers/crypto/nx: fixes for multiple issues

2013-04-12 Thread Kent Yoder
error for number of bytes processed in the sha code. Signed-off-by: Kent Yoder --- Patch v3, was: drivers/crypto/nx: fix init race, alignmasks and GCM bug Applied to: git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc.git#next drivers/crypto/nx/nx-aes-cbc.c | 1 + drivers/crypto/nx/n

Re: [tpmdd-devel] tpm_tis driver failed to suspend, error -62

2013-04-11 Thread Kent Yoder
On Sat, Apr 06, 2013 at 06:00:59PM +0200, peteraspl...@gentoo.se wrote: > 2013-04-02 16:03 skrev Kent Yoder: > >Hi Peter, > > > >On Mon, Apr 1, 2013 at 4:17 PM, wrote: > >>2013-03-28 14:12 skrev peter.hu...@infineon.com: > >>>What also might be

Re: Fwd: [PATCH v2] drivers/crypto/nx: fix init race, alignmasks and GCM bug

2013-04-10 Thread Kent Yoder
No problem, turns out I had a few more updates I needed to sneak into the patch anyway. Please see v3 in a new thread, applied to the ppc-dev-next tree. Thanks, Kent On Thu, Mar 28, 2013 at 1:24 PM, Benjamin Herrenschmidt wrote: > On Thu, 2013-03-28 at 11:32 -0500, Kent Yoder wrote: >&g

Re: [tpmdd-devel] tpm_tis driver failed to suspend, error -62

2013-04-02 Thread Kent Yoder
Hi Peter, On Mon, Apr 1, 2013 at 4:17 PM, wrote: > 2013-03-28 14:12 skrev peter.hu...@infineon.com: >> What also might be worth a look - in your bugzilla it states: >> [ 0.225891] pnp 00:0a: Plug and Play ACPI device, IDs IFX0102 PNP0c31 >> (active) >> [ 9.150673] tpm_tis 00:0a: 1.2 TPM (device-

Fwd: [PATCH v2] drivers/crypto/nx: fix init race, alignmasks and GCM bug

2013-03-28 Thread Kent Yoder
Hi Ben, will you carry this patch in the linuxppc-dev tree? Thanks, Kent -- Forwarded message -- From: Kent Yoder Date: Wed, Mar 20, 2013 at 9:22 AM Subject: [PATCH v2] drivers/crypto/nx: fix init race, alignmasks and GCM bug To: linux-kernel@vger.kernel.org Cc: linux-cry

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics st33 driver SPI

2013-03-25 Thread Kent Yoder
On Mon, Mar 25, 2013 at 10:08 AM, Matthias Leblanc wrote: > From: admin01 > > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > Th

[PATCH v2] drivers/crypto/nx: fix init race, alignmasks and GCM bug

2013-03-20 Thread Kent Yoder
Fixes a race on driver init with registering algorithms where the driver status flag wasn't being set before self testing started. Added the cra_alignmask field for CBC and ECB modes. Fixed a bug in GCM where AES block size was being used instead of authsize. Signed-off-by: Kent

Re: [PATCH] TPM: Retry SaveState command in suspend path

2013-03-19 Thread Kent Yoder
Hi Duncan, On Sun, Mar 17, 2013 at 4:56 PM, Duncan Laurie wrote: > If the TPM has already been sent a SaveState command before the driver > is loaded it may have problems sending that same command again later. > > This issue is seen with the Chromebook Pixel due to a firmware bug in > the legacy

Re: [PATCH -next] char/tpm/tpm_i2c_stm_st33: remove duplicated include from tpm_i2c_stm_st33.c

2013-03-15 Thread Kent Yoder
On Mon, Mar 11, 2013 at 9:20 AM, Wei Yongjun wrote: > From: Wei Yongjun > > Remove duplicated include. HI Wei, thanks for the patch. I've already staged the same patch for inclusion in the next pull request for TPM drivers here: https://github.com/shpedoikal/linux/commit/6c09a9f5fcb3955afbae2e

Re: [PATCH RESEND] char/tpm: Convert struct i2c_msg initialization to C99 format

2013-03-04 Thread Kent Yoder
On Thu, Feb 28, 2013 at 4:06 AM, Jean Delvare wrote: > From: Shubhrajyoti Datta > > Convert the struct i2c_msg initialization to C99 format. This makes > maintaining and editing the code simpler. Also helps once other fields > like transferred are added in future. > > Thanks to Julia Lawall for a

Re: [tpmdd-devel] [PATCH v2] tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C)

2013-03-04 Thread Kent Yoder
On Mon, Mar 4, 2013 at 2:08 PM, Kent Yoder wrote: >>> > >>> > + >>> > +#ifdef CONFIG_OF >>> > +static const struct of_device_id tpm_tis_i2c_of_match[] = { >>> > + { .compatible = "infineon,tpm_i2c_infineon", .data = (void *)

Re: [tpmdd-devel] [PATCH v2] tpm: Add support for new Infineon I2C TPM (SLB 9645 TT 1.2 I2C)

2013-03-04 Thread Kent Yoder
>> > >> > + >> > +#ifdef CONFIG_OF >> > +static const struct of_device_id tpm_tis_i2c_of_match[] = { >> > + { .compatible = "infineon,tpm_i2c_infineon", .data = (void *)0 }, >> > + { .compatible = "infineon,slb9635tt", .data = (void *)0 }, >> > + { .compatible = "infineon,slb9645tt", .data =

[PATCH] drivers/crypto/nx: fix init race, alignmasks and GCM bug

2013-03-04 Thread Kent Yoder
Fixes a race on driver init with registering algorithms where the driver status flag wasn't being set before self testing started. Added the cra_alignmask field for CBC and ECB modes. Fixed a bug in GCM where AES block size was being used instead of authsize. Signed-off-by: Kent

Re: [tpmdd-devel] [PATCH RESEND] char/tpm: Convert struct i2c_msg initialization to C99 format

2013-02-28 Thread Kent Yoder
On Thu, Feb 28, 2013 at 4:32 PM, Jean Delvare wrote: > On Thu, 28 Feb 2013 23:12:51 +0100, Peter Hüwe wrote: >> thanks for resending. > > You're welcome. > >> Am Donnerstag, 28. Februar 2013, 11:06:11 schrieb Jean Delvare: >> > From: Shubhrajyoti Datta >> > >> > Convert the struct i2c_msg initial

Re: [GIT PULL] Load keys from signed PE binaries

2013-02-26 Thread Kent Yoder
On Tue, Feb 26, 2013 at 4:21 AM, Matthew Garrett wrote: > On Tue, Feb 26, 2013 at 02:07:22AM -0800, Raymond Jennings wrote: >> Just curious here, but is this as much of an issue if a user is >> somehow able to take ownership of his own machine? > > No, if you're doing your own key management then

Re: [tpmdd-devel] [PATCH] TPM: Work around buggy TPMs that block during continue self test

2013-02-01 Thread Kent Yoder
On Mon, Jan 28, 2013 at 8:11 AM, Kent Yoder wrote: > On Fri, Jan 25, 2013 at 01:25:38PM -0700, Jason Gunthorpe wrote: >> On Tue, Jan 22, 2013 at 05:29:23PM -0600, Kent Yoder wrote: >> > Hi Jason, >> > >> > On Wed, Nov 21, 2012 at 3:15 PM, Jason Gunthorpe >&

Re: [tpmdd-devel] [PATCH] TPM: Work around buggy TPMs that block during continue self test

2013-01-22 Thread Kent Yoder
Hi Jason, On Wed, Nov 21, 2012 at 3:15 PM, Jason Gunthorpe wrote: > We've been testing an alternative TPM for our embedded products and > found random kernel boot failures due to time outs after the continue > self test command. > > This was happening randomly, and has been *very* hard to track d

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x OOPS!

2013-01-22 Thread Kent Yoder
On Wed, Jan 9, 2013 at 1:41 PM, Peter Hüwe wrote: > In my opinion a driver should never ever oops, even if the user does something > stupid (e.g. like probing from userspace ;) Exactly... I've coded up a fix for the oops and staged it here, please test: https://github.com/shpedoikal/linux.git

Re: [PATCH] char/tpm: Use struct dev_pm_ops for power management

2012-12-06 Thread Kent Yoder
On Thu, Dec 06, 2012 at 01:20:51AM +0100, Peter Huewe wrote: > This patch converts the suspend and resume functions for > tpm_i2c_stm_st33 to the new dev_pm_ops. > > Signed-off-by: Peter Huewe One minor tweak, the PM funcs need to be inside CONFIG_PM_SLEEP to avoid warnings when compiled witho

Re: [PATCH] char/tpm: Use struct dev_pm_ops for power management

2012-12-06 Thread Kent Yoder
On Thu, Dec 06, 2012 at 01:20:51AM +0100, Peter Huewe wrote: > This patch converts the suspend and resume functions for > tpm_i2c_stm_st33 to the new dev_pm_ops. Ignore my last mail. I'll take a look at this. Thanks, Kent > Signed-off-by: Peter Huewe > --- > Note: > I'm sending this patch on

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-06 Thread Kent Yoder
On Thu, Dec 06, 2012 at 01:10:32AM +0100, Peter Hüwe wrote: > Am Donnerstag, 6. Dezember 2012, 00:09:41 schrieb Kent Yoder: > > > > > > > static int tpm_st33_i2c_pm_suspend(struct i2c_client *client, > > > > pm_message_t mesg) > > > > > > &g

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-05 Thread Kent Yoder
On Wed, Dec 05, 2012 at 10:14:48PM +0100, Peter Hüwe wrote: > Hi Kent, Matthias, > > Am Mittwoch, 5. Dezember 2012, 19:07:20 schrieb Kent Yoder: > > Heh, duh, well of course it is. I've now staged everything I'm > > planning on pushing at: > > > > git

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-05 Thread Kent Yoder
On Wed, Dec 05, 2012 at 09:20:47PM +0100, Peter Hüwe wrote: > Hi Kent, > > > > Heh, duh, well of course it is. I've now staged everything I'm > > planning on pushing at: > > > > git://github.com/shpedoikal/linux.git tpmdd-12-05-12 > > > > Please test and let me know if I missed anything. > >

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-05 Thread Kent Yoder
On Wed, Dec 05, 2012 at 11:45:27AM -0600, Kent Yoder wrote: > On Wed, Dec 05, 2012 at 11:13:51AM -0600, Kent Yoder wrote: > > On Wed, Dec 05, 2012 at 05:11:40PM +0100, Mathias LEBLANC wrote: > > > Hi Peter, > > > > > > Thanks for your contribution. > > &

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-05 Thread Kent Yoder
On Wed, Dec 05, 2012 at 11:13:51AM -0600, Kent Yoder wrote: > On Wed, Dec 05, 2012 at 05:11:40PM +0100, Mathias LEBLANC wrote: > > Hi Peter, > > > > Thanks for your contribution. > > I have modified the driver files name and descriptions. > > Regarding the warnin

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-12-05 Thread Kent Yoder
Peter Hüwe [mailto:peterhu...@gmx.de] > Sent: 29 November, 2012 01:05 > To: Mathias LEBLANC > Cc: Kent Yoder; Kent Yoder; Jean-Luc BLANC; linux-kernel@vger.kernel.org; > Rajiv Andrade; tpmdd-de...@lists.sourceforge.net; sir...@jasper.es > Subject: Re: [tpmdd-devel] [PATCH 1/1] TPM: ST

Re: [PATCH v3] char/tpm: Use true and false for bools

2012-11-29 Thread Kent Yoder
On Thu, Nov 29, 2012 at 01:54:52PM -0800, Joe Perches wrote: > On Thu, 2012-11-29 at 22:08 +0100, Peter Huewe wrote: > > Bool initializations should use true and false. Bool tests don't need > > comparisons > [] > > .v3 for this tiny patch... shame on me. > > Don't be silly... > > > diff --git a

Re: [PATCH] char/tpm: Use true and false for bools

2012-11-29 Thread Kent Yoder
On Thu, Nov 29, 2012 at 01:42:47AM +0100, Peter Huewe wrote: > Am Donnerstag, 29. November 2012, 01:25:19 schrieb Al Viro: > > On Thu, Nov 29, 2012 at 01:20:37AM +0100, Peter Huewe wrote: > > > - itpm = (probe == 0) ? 0 : 1; > > > + itpm = (probe == 0) ? false : true; > > > > Charm

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-11-28 Thread Kent Yoder
tpm_do_selftest function to get the tpm ready, but it > can be removed This looks like its base64 encoded... > ____ > From: Kent Yoder [shpedoi...@gmail.com] > Sent: 28 November 2012 16:31 > To: Mathias LEBLANC > Cc: Kent Yoder; Jean-Luc BL

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-11-28 Thread Kent Yoder
ot; branch. Kent > Matthias Leblanc > > ____From: Kent Yoder > [shpedoi...@gmail.com] > Sent: 27 November 2012 15:48 > To: Mathias LEBLANC > Cc: Kent Yoder; Jean-Luc BLANC; linux-kernel@vger.kernel.org; Rajiv Andrade; > tpmdd-de...@lists.sourceforge.net; Sirrix AG > Subject

Re: [tpmdd-devel] [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-11-27 Thread Kent Yoder
it.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git Thanks, Kent > Regards, > > Matthias Leblanc > > From: Kent Yoder [k...@linux.vnet.ibm.com] > Sent: 26 November 2012 18:46 > To: Mathias LEBLANC > Cc: Rajiv Andrade; Marc

Re: [PATCH] TPM: Switch to __packed instead of __attribute__((packed))

2012-11-26 Thread Kent Yoder
On Wed, Nov 21, 2012 at 11:50:24PM +0100, Peter Huewe wrote: > Am Mittwoch, 21. November 2012, 21:56:45 schrieb Jason Gunthorpe: > > This seems to be preferred these days. > > > > Signed-off-by: Jason Gunthorpe > > Looks good to me > Reviewed-by: Peter Huewe Applied. I also rolled in an update

Re: [PATCH v5] TPM: Issue TPM_STARTUP at driver load if the TPM has not been started

2012-11-26 Thread Kent Yoder
On Wed, Nov 21, 2012 at 01:54:33PM -0700, Jason Gunthorpe wrote: > The TPM will respond to TPM_GET_CAP with TPM_ERR_INVALID_POSTINIT if > TPM_STARTUP has not been issued. Detect this and automatically > issue TPM_STARTUP. > > This is for embedded applications where the kernel is the first thing >

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C KERNEL 3.x.x

2012-11-26 Thread Kent Yoder
Hi Mathias, On Mon, Nov 19, 2012 at 11:15:21PM +0100, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > T

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C

2012-11-26 Thread Kent Yoder
ecurity-next tree. From there the code is pushed to Linus' tree. Kent > Thanks, > > Mathias Leblanc > > -----Original Message- > From: Kent Yoder [mailto:k...@linux.vnet.ibm.com] > Sent: 14 November, 2012 23:07 > To: Mathias LEBLANC > Cc: Rajiv

Re: [PATCH v2] char/tpm: simplify duration calculation and eliminate smatch warning.

2012-11-16 Thread Kent Yoder
On Fri, Nov 16, 2012 at 12:31:29AM +0100, Peter Huewe wrote: > This patch changes the semantics of the duration calculation for an > ordinal, by masking out the higher bits of a tpm command, which specify > whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, > TPM_CONNECTION_COMMAND, TP

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Thu, Nov 15, 2012 at 06:25:54PM +0100, Peter Huewe wrote: > Shall I resend a v2? Please do - thanks! > Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majord

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-15 Thread Kent Yoder
On Wed, Nov 14, 2012 at 11:37:06PM +0100, Peter Hüwe wrote: > Am Mittwoch, 14. November 2012, 23:18:26 schrieb Kent Yoder: > > On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote:> > > > > This patch also gets rid of the (false positive) sparse warning: > >

Re: [PATCH 2/2] char/tpm: simplify duration calculation and eliminate sparse warning.

2012-11-14 Thread Kent Yoder
On Mon, Nov 12, 2012 at 11:37:18PM +0100, Peter Huewe wrote: > This patch changes the semantics of the duration calculation for an > ordinal, by masking out the higher bits of a tpm command, which specify > whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, > TPM_CONNECTION_COMMAND, TP

Re: [PATCH 1/2] char/tpm: Remove duplicated lookup table

2012-11-14 Thread Kent Yoder
On Mon, Nov 12, 2012 at 11:37:17PM +0100, Peter Huewe wrote: > The entries in tpm_protected_ordinal_duration are exactly the same as > the first 12 in tpm_ordinal_duration, so we can simply remove this one, > and save some bytes. > > This does not change the behavior of the driver. > > Signed-off

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C

2012-11-14 Thread Kent Yoder
Hi Mathias, On Wed, Nov 14, 2012 at 03:31:42PM +0100, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > T

[PATCH v2] tpm: add documentation for sysfs interfaces

2012-11-13 Thread Kent Yoder
Reviewed-by: Peter Huewe Signed-off-by: Kent Yoder --- Documentation/ABI/stable/sysfs-class-tpm | 185 +++ 1 file changed, 185 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-class-tpm diff --git a/Documentation/ABI/stable/sysfs-class-tpm b

Re: [tpmdd-devel] [PATCH] tpm: add documentation for sysfs interfaces

2012-11-12 Thread Kent Yoder
Hi Peter, On Mon, Nov 12, 2012 at 08:47:55AM +, peter.hu...@infineon.com wrote: > Hi Kent, > > thanks a lot for this effort! > I really appreciate it. > > > +What: /sys/class/misc/tpmX/device/active > > +Date: April 2006 > > +KernelVersion: 2.6.17 > > +Contact:

Re: [tpmdd-devel] [Xen-devel] [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Kent Yoder
On Thu, Nov 8, 2012 at 9:36 AM, Fioravante, Matthew E. wrote: >> >>> On 07.11.12 at 19:14, Matthew Fioravante >> >>> wrote: >> > On 11/07/2012 09:46 AM, Kent Yoder wrote: >> >>> --- a/drivers/char/tpm/tpm.h >> >>> ++

[PATCH] tpm: add documentation for sysfs interfaces

2012-11-08 Thread Kent Yoder
Signed-off-by: Kent Yoder --- Documentation/ABI/stable/sysfs-class-tpm | 182 +++ 1 file changed, 182 insertions(+) create mode 100644 Documentation/ABI/stable/sysfs-class-tpm diff --git a/Documentation/ABI/stable/sysfs-class-tpm b/Documentation/ABI/stable/sysfs

Re: [Xen-devel] [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-08 Thread Kent Yoder
On Thu, Nov 08, 2012 at 08:17:32AM +, Jan Beulich wrote: > >>> On 07.11.12 at 19:14, Matthew Fioravante > >>> wrote: > > On 11/07/2012 09:46 AM, Kent Yoder wrote: > >>> --- a/drivers/char/tpm/tpm.h > >>> +++ b/drivers/ch

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C

2012-11-07 Thread Kent Yoder
the values ​​of the starting steps below ... > Access to these localities in the driver * Linux * has been given only for > the purpose of validation. Ok cool, so it can be removed? :-) Kent > > From: Kent Yoder [k...@linux.vnet.ibm.com] > Sent: 07 November 2012 16:

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C

2012-11-07 Thread Kent Yoder
On Wed, Nov 07, 2012 at 01:15:09PM +0100, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > This is the dr

Re: [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-07 Thread Kent Yoder
> >>+static struct attribute *vtpm_attrs[] = { > >>+ &dev_attr_pubek.attr, > >>+ &dev_attr_pcrs.attr, > >>+ &dev_attr_enabled.attr, > >>+ &dev_attr_active.attr, > >>+ &dev_attr_owned.attr, > >>+ &dev_attr_temp_deactivated.attr, > >>+ &dev_attr_caps.attr, > >>+ &dev_a

Re: [PATCH] add tpm_xenu.ko: Xen Virtual TPM frontend driver

2012-11-07 Thread Kent Yoder
Hi Matthew, On Mon, Nov 05, 2012 at 10:09:57AM -0500, Matthew Fioravante wrote: > This patch ports the xen vtpm frontend driver for linux > from the linux-2.6.18-xen.hg tree to linux-stable. > > Signed-off-by: Matthew Fioravante > --- > drivers/char/tpm/Kconfig |9 + > drivers/char/

[PULL v2] IBM vTPM driver update

2012-11-01 Thread Kent Yoder
Hi James, This time against security-next... The following changes since commit 61d335dd27c67d656f114c091a46cf95cbeeb77c: Merge branch 'security-next-keys' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/security-keys into next-queue (2012-10-03 13:00:17 +1000) are available in

Re: [PULL] IBM vTPM driver update

2012-10-31 Thread Kent Yoder
On Thu, Nov 01, 2012 at 02:56:14AM +1100, James Morris wrote: > On Tue, 30 Oct 2012, Kent Yoder wrote: > > > Hi James, > > > > Please pull as an update for 3.7. > > > > Thanks, > > Kent > > > > The following changes since commit 8f0d8163

Re: [PATCH 1/1] TPM: STMicroelectronics ST33 I2C

2012-10-31 Thread Kent Yoder
Hi Mathias, On Tue, Oct 30, 2012 at 02:28:50PM +0100, Mathias Leblanc wrote: > * STMicroelectronics version 1.2.0, Copyright (C) 2010 > * STMicroelectronics comes with ABSOLUTELY NO WARRANTY. > * This is free software, and you are welcome to redistribute it > * under certain conditions. > > T

[PULL] IBM vTPM driver update

2012-10-30 Thread Kent Yoder
Hi James, Please pull as an update for 3.7. Thanks, Kent The following changes since commit 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64: Linux 3.7-rc3 (2012-10-28 12:24:48 -0700) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-v3.7-rc3 for you to fetch c

Re: [PATCH] TPM: Let the tpm char device be openable multiple times

2012-10-15 Thread Kent Yoder
> Using open/close is an interesting idea, but it wouldn't work. open() > is coded to return EBUSY if another process has it open, rather than > block, and spinning on open would be unacceptable. I'm trying to imagine when spinning would be unacceptable? Keygen could take several seconds, regard

[PULL] Updates to tpm_write() error checking

2012-10-10 Thread Kent Yoder
Hi James, The following changes since commit bf5308344527d015ac9a6d2bda4ad4d40fd7d943: Merge tag 'v3.6-rc7' into next (2012-09-28 13:37:32 +1000) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-next-v3.6 for you to fetch changes up to abce9ac292e13da367

Re: [PATCH] TPM: Let the tpm char device be openable multiple times

2012-10-10 Thread Kent Yoder
On Sun, Sep 30, 2012 at 05:33:45PM -0600, Jason Gunthorpe wrote: > How to use the TPM is really a user space policy choice, if the > environment wants to use middleware then fine, but it is possible to > make correct TPM apps without using middleware. I'm not sure how I feel about this. The sing

Re: [PATCH v2] TPM: Provide a tpm_tis OF driver

2012-10-10 Thread Kent Yoder
Hi Jason, On Tue, Oct 02, 2012 at 03:04:53PM -0600, Jason Gunthorpe wrote: > This provides an open firwmare driver binding for tpm_tis. OF > is useful on arches where PNP is not used. > > Allow the tpm_tis driver to be selected if OF is compiled in. > > Signed-off-by: Jason Gunthorpe > --- > d

[no subject]

2012-10-10 Thread Kent Yoder
The following changes since commit ecefbd94b834fa32559d854646d777c56749ef1c: Merge tag 'kvm-3.7-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm (2012-10-04 09:30:33 -0700) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-fixes-v3.6 for you to fetch chang

[PULL] tpmdd fix for ppi

2012-10-10 Thread Kent Yoder
Hi James, The following changes since commit ecefbd94b834fa32559d854646d777c56749ef1c: Merge tag 'kvm-3.7-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm (2012-10-04 09:30:33 -0700) are available in the git repository at: git://github.com/shpedoikal/linux.git tpmdd-fixes-v3.6 for you to

Re: your mail

2012-10-10 Thread Kent Yoder
Please ignore. On Wed, Oct 10, 2012 at 10:06:53AM -0500, Kent Yoder wrote: > The following changes since commit ecefbd94b834fa32559d854646d777c56749ef1c: > > Merge tag 'kvm-3.7-1' of git://git.kernel.org/pub/scm/virt/kvm/kvm > (2012-10-04 09:30:33 -0700) > &

Re: [PATCH] driver/char/tpm: fix regression causesd by ppi

2012-10-10 Thread Kent Yoder
> > Hmm, tpm_add_ppi is just sysfs_create_group, which only ever returns > > 0. Looks like we can remove this error path, but PPI is unusable in the > > failure case. > > sysfs_create_group will return 0 on success or return error code. So I don't > think we can remove this error path. The previ

Re: [PATCH] driver/char/tpm: fix regression causesd by ppi

2012-10-09 Thread Kent Yoder
Hi Jimmy, On Tue, Oct 09, 2012 at 05:35:22PM +0800, gang@intel.com wrote: > From: Gang Wei > > This patch try to fix the S3 regression https://lkml.org/lkml/2012/10/5/433, > which includes below line: > [ 1554.684638] sysfs: cannot create duplicate filename > '/devices/pnp0/00:0c/ppi' > >

Re: Possible regression: BUG in fs/sysfs/group.c:65

2012-10-05 Thread Kent Yoder
xpect the commit that added this failure mode is the commit below. > > Xiaoyan Zhang, Kent Yoder can you guys look at this see why the tpm > code is adding itself multiple times into sysfs? It looks like the ppi sysfs teardown code is MIA. Xiaoyan, can you add it to tpm_ppi.c, with a ca

Re: [tpmdd-devel] [PATCH] TPM: Issue TPM_STARTUP at driver load if the TPM has not been started

2012-10-04 Thread Kent Yoder
> Curiously the current code does call TPM_SaveState on suspend, but > relies on the BIOS to do TPM_Startup(ST_STATE) on resume, why the > asymmetry? This is based on the PC Client Implementation for BIOS spec in the TCG. On suspend, the OS is responsible for the save state and then on resume th

Re: [tpmdd-devel] [PATCH] TPM: Issue TPM_STARTUP at driver load if the TPM has not been started

2012-10-01 Thread Kent Yoder
On Mon, Oct 01, 2012 at 10:15:36AM -0600, Jason Gunthorpe wrote: > On Mon, Oct 01, 2012 at 09:17:28AM +, peter.hu...@infineon.com wrote: > > Hi Jason, > > > > > The TPM will respond to TPM_GET_CAP with TPM_ERR_INVALID_POSTINIT if > > > TPM_STARTUP has not been issued. This will result in the T

Re: [PATCH] TPM: Provide a tpm_tis OF driver

2012-10-01 Thread Kent Yoder
> +/* irq == 0 -> autoprobe, -1 ->forced no interrupt, > + others -> irq line to use */ > static int tpm_tis_init(struct device *dev, resource_size_t start, > - resource_size_t len, unsigned int irq) > + resource_size_t len, int irq) > { > u32 vendo

Re: [PATCH] TPM: Issue TPM_STARTUP at driver load if the TPM has not been started

2012-10-01 Thread Kent Yoder
Hi Jason, On Sun, Sep 30, 2012 at 05:30:12PM -0600, Jason Gunthorpe wrote: > The TPM will respond to TPM_GET_CAP with TPM_ERR_INVALID_POSTINIT if > TPM_STARTUP has not been issued. This will result in the TPM driver > failing to load and no way to recover. Detect this and automatically > issue TPM

Re: [PATCH V3 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-09-07 Thread Kent Yoder
> > James did accept my pull request, so these are already in > > security-next... > > For the driver itself, it's not a big issue (though I did found issue > while reviewing it so it will need another round of updates). For the > code that changes arch/powerpc, especially prom_init.c, that stuf

Re: [PATCH V3 1/3] drivers/char/tpm: Add new device driver to support IBM vTPM

2012-09-05 Thread Kent Yoder
On Wed, Sep 05, 2012 at 01:40:07PM +1000, Benjamin Herrenschmidt wrote: > On Wed, 2012-08-22 at 16:42 -0500, Kent Yoder wrote: > > On Wed, Aug 22, 2012 at 04:17:43PM -0500, Ashley Lai wrote: > > > This patch adds a new device driver to support IBM virtual TPM > > > (vT

[PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-09-04 Thread Kent Yoder
acpi_os_map_memory expects its return value to be in the __iomem address space. Tag the variable we're using as such and use memcpy_fromio to avoid further sparse warnings. Signed-off-by: Kent Yoder --- drivers/char/tpm/tpm_acpi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Re: [PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-09-04 Thread Kent Yoder
On Sun, Sep 02, 2012 at 09:30:30AM -0700, Dan Carpenter wrote: > Sparse finds that bug as well. ;) > > drivers/acpi/acpica/tbfadt.c:247:15: warning: incorrect type in assignment > (different address spaces) > drivers/acpi/acpica/tbfadt.c:247:15:expected struct acpi_table_header > *table > d

Re: [PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-08-30 Thread Kent Yoder
On Thu, Aug 30, 2012 at 10:45:56AM -0700, Dan Carpenter wrote: > On Thu, Aug 30, 2012 at 09:38:41AM -0500, Kent Yoder wrote: > > acpi_os_map_memory expects its return value to be in the __iomem address > > space. Cast it back later when used in a memcpy to avoid the same sparse &g

Re: [PATCH] driver/char/tpm: declare internal symbols as static

2012-08-30 Thread Kent Yoder
nt Reviewed-by: Kent Yoder > > Signed-off-by: Xiaoyan Zhang > Signed-off-by: Fengguang Wu > --- > drivers/char/tpm/tpm.c |4 ++-- > drivers/char/tpm/tpm_ppi.c | 37 +++-- > 2 files changed, 21 insertions(+), 20 deletions(-) > &

[PATCH] tpm: fix tpm_acpi sparse warning on different address spaces

2012-08-30 Thread Kent Yoder
acpi_os_map_memory expects its return value to be in the __iomem address space. Cast it back later when used in a memcpy to avoid the same sparse warning there. Signed-off-by: Kent Yoder --- drivers/char/tpm/tpm_acpi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a

  1   2   >