* [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0
@ 2015-08-12 14:05 Jarkko Sakkinen
[not found] ` <1439388347-22325-1-git-send-email-jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Jarkko Sakkinen @ 2015-08-12 14:05 UTC (permalink / raw)
To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: peterhuewe-Mmb7MZpHnFY, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/, Jarkko Sakkinen,
Eric W. Biederman, Guenter Roeck, open list:ABI/API, NeilBrown,
Tejun Heo
v9:
* Fixed naming for __compat_only_sysfs_link_entry_to_kobj()
v8:
* Renamed sysfs_link_entry_to_kobj() to
__compat_only_sysfs_link_entry_to_kobj()
v7:
* Fixed compile error when CONFIG_SYSFS is not enabled.
v6:
* Updated documentation.
v5:
* Removed dangling export of kernfs_remove_by_name_ns() from the sysfs
patch.
v4:
* Use sysfs_remove_link()
v3:
* Fixed to_tpm_chip() macro.
* Split into two patches.
* Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
* Only create the "backwards compatibility" symlink for TPM 1.x devices.
Jarkko Sakkinen (3):
sysfs: added __compat_only_sysfs_link_entry_to_kobj()
tpm: move the PPI attributes to character device directory.
tpm: update PPI documentation to address the location change.
Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++-----
drivers/char/tpm/tpm-chip.c | 24 ++++++++++------
drivers/char/tpm/tpm.h | 17 ++++--------
drivers/char/tpm/tpm_ppi.c | 34 ++++++++---------------
fs/sysfs/group.c | 44 ++++++++++++++++++++++++++++++
include/linux/sysfs.h | 11 ++++++++
6 files changed, 100 insertions(+), 49 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v9 3/3] tpm: update PPI documentation to address the location change.
[not found] ` <1439388347-22325-1-git-send-email-jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
@ 2015-08-12 14:05 ` Jarkko Sakkinen
2015-08-25 17:03 ` [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0 Jarkko Sakkinen
1 sibling, 0 replies; 6+ messages in thread
From: Jarkko Sakkinen @ 2015-08-12 14:05 UTC (permalink / raw)
To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: peterhuewe-Mmb7MZpHnFY, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/, Jarkko Sakkinen,
open list:ABI/API
Updated Documentation/ABI/testing/sysfs-driver-ppi in order to explain
where PPI attributes are located and how backwards compatiblity is
addressed.
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
---
Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/Documentation/ABI/testing/sysfs-driver-ppi b/Documentation/ABI/testing/sysfs-driver-ppi
index 7d1435b..9921ef2 100644
--- a/Documentation/ABI/testing/sysfs-driver-ppi
+++ b/Documentation/ABI/testing/sysfs-driver-ppi
@@ -1,4 +1,4 @@
-What: /sys/devices/pnp0/<bus-num>/ppi/
+What: /sys/class/tpm/tpmX/ppi/
Date: August 2012
Kernel Version: 3.6
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
@@ -8,9 +8,14 @@ Description:
folder makes sense. The folder path can be got by command
'find /sys/ -name 'pcrs''. For the detail information of PPI,
please refer to the PPI specification from
+
http://www.trustedcomputinggroup.org/
-What: /sys/devices/pnp0/<bus-num>/ppi/version
+ In Linux 4.2 ppi was moved to the character device directory.
+ A symlink from tpmX/device/ppi to tpmX/ppi to provide backwards
+ compatibility.
+
+What: /sys/class/tpm/tpmX/ppi/version
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
@@ -18,7 +23,7 @@ Description:
platform.
This file is readonly.
-What: /sys/devices/pnp0/<bus-num>/ppi/request
+What: /sys/class/tpm/tpmX/ppi/request
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
@@ -28,7 +33,7 @@ Description:
integer value range from 1 to 160, and 0 means no request.
This file can be read and written.
-What: /sys/devices/pnp0/00:<bus-num>/ppi/response
+What: /sys/class/tpm/tpmX/ppi/response
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
@@ -37,7 +42,7 @@ Description:
: <response description>".
This file is readonly.
-What: /sys/devices/pnp0/<bus-num>/ppi/transition_action
+What: /sys/class/tpm/tpmX/ppi/transition_action
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
@@ -47,7 +52,7 @@ Description:
description>".
This file is readonly.
-What: /sys/devices/pnp0/<bus-num>/ppi/tcg_operations
+What: /sys/class/tpm/tpmX/ppi/tcg_operations
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
@@ -58,7 +63,7 @@ Description:
This attribute is only supported by PPI version 1.2+.
This file is readonly.
-What: /sys/devices/pnp0/<bus-num>/ppi/vs_operations
+What: /sys/class/tpm/tpmX/ppi/vs_operations
Date: August 2012
Contact: xiaoyan.zhang-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org
Description:
--
2.5.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0
[not found] ` <1439388347-22325-1-git-send-email-jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-12 14:05 ` [PATCH v9 3/3] tpm: update PPI documentation to address the location change Jarkko Sakkinen
@ 2015-08-25 17:03 ` Jarkko Sakkinen
[not found] ` <20150825170327.GA23185-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
1 sibling, 1 reply; 6+ messages in thread
From: Jarkko Sakkinen @ 2015-08-25 17:03 UTC (permalink / raw)
To: Jarkko Sakkinen
Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, peterhuewe-Mmb7MZpHnFY,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/, Eric W. Biederman,
Guenter Roeck, open list:ABI/API, NeilBrown, Tejun Heo
Does this start be in the shape that there would be chance to pull this
in at some point? To be able to enable TPM 2.0 chips from Linux is quite
mandatory feature in my opinion.
Thank you.
/Jarkko
On Wed, Aug 12, 2015 at 05:05:40PM +0300, Jarkko Sakkinen wrote:
> v9:
> * Fixed naming for __compat_only_sysfs_link_entry_to_kobj()
>
> v8:
> * Renamed sysfs_link_entry_to_kobj() to
> __compat_only_sysfs_link_entry_to_kobj()
>
> v7:
> * Fixed compile error when CONFIG_SYSFS is not enabled.
>
> v6:
> * Updated documentation.
>
> v5:
> * Removed dangling export of kernfs_remove_by_name_ns() from the sysfs
> patch.
>
> v4:
> * Use sysfs_remove_link()
>
> v3:
> * Fixed to_tpm_chip() macro.
> * Split into two patches.
> * Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
> * Only create the "backwards compatibility" symlink for TPM 1.x devices.
>
> Jarkko Sakkinen (3):
> sysfs: added __compat_only_sysfs_link_entry_to_kobj()
> tpm: move the PPI attributes to character device directory.
> tpm: update PPI documentation to address the location change.
>
> Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++-----
> drivers/char/tpm/tpm-chip.c | 24 ++++++++++------
> drivers/char/tpm/tpm.h | 17 ++++--------
> drivers/char/tpm/tpm_ppi.c | 34 ++++++++---------------
> fs/sysfs/group.c | 44 ++++++++++++++++++++++++++++++
> include/linux/sysfs.h | 11 ++++++++
> 6 files changed, 100 insertions(+), 49 deletions(-)
>
> --
> 2.5.0
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0
[not found] ` <20150825170327.GA23185-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
@ 2015-08-25 17:20 ` Peter Huewe
[not found] ` <E4F705A5-5445-4220-B841-E93FC6859537-Mmb7MZpHnFY@public.gmane.org>
0 siblings, 1 reply; 6+ messages in thread
From: Peter Huewe @ 2015-08-25 17:20 UTC (permalink / raw)
To: Jarkko Sakkinen, Jarkko Sakkinen
Cc: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/, Eric W. Biederman,
Guenter Roeck, open list:ABI/API, NeilBrown, Tejun Heo
Will look at it as soon as possible - relocating to the us is quite stressful.sorry about that.
But since we are already at v9 i think it is in a good shape.
Peter
Am 25. August 2015 19:03:27 MESZ, schrieb Jarkko Sakkinen <jarkko.sakkinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:
>Does this start be in the shape that there would be chance to pull this
>in at some point? To be able to enable TPM 2.0 chips from Linux is
>quite
>mandatory feature in my opinion.
>
>Thank you.
>
>/Jarkko
>
>On Wed, Aug 12, 2015 at 05:05:40PM +0300, Jarkko Sakkinen wrote:
>> v9:
>> * Fixed naming for __compat_only_sysfs_link_entry_to_kobj()
>>
>> v8:
>> * Renamed sysfs_link_entry_to_kobj() to
>> __compat_only_sysfs_link_entry_to_kobj()
>>
>> v7:
>> * Fixed compile error when CONFIG_SYSFS is not enabled.
>>
>> v6:
>> * Updated documentation.
>>
>> v5:
>> * Removed dangling export of kernfs_remove_by_name_ns() from the
>sysfs
>> patch.
>>
>> v4:
>> * Use sysfs_remove_link()
>>
>> v3:
>> * Fixed to_tpm_chip() macro.
>> * Split into two patches.
>> * Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
>> * Only create the "backwards compatibility" symlink for TPM 1.x
>devices.
>>
>> Jarkko Sakkinen (3):
>> sysfs: added __compat_only_sysfs_link_entry_to_kobj()
>> tpm: move the PPI attributes to character device directory.
>> tpm: update PPI documentation to address the location change.
>>
>> Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++-----
>> drivers/char/tpm/tpm-chip.c | 24 ++++++++++------
>> drivers/char/tpm/tpm.h | 17 ++++--------
>> drivers/char/tpm/tpm_ppi.c | 34
>++++++++---------------
>> fs/sysfs/group.c | 44
>++++++++++++++++++++++++++++++
>> include/linux/sysfs.h | 11 ++++++++
>> 6 files changed, 100 insertions(+), 49 deletions(-)
>>
>> --
>> 2.5.0
>>
--
Sent from my mobile
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0
[not found] ` <E4F705A5-5445-4220-B841-E93FC6859537-Mmb7MZpHnFY@public.gmane.org>
@ 2015-08-26 5:28 ` Jarkko Sakkinen
0 siblings, 0 replies; 6+ messages in thread
From: Jarkko Sakkinen @ 2015-08-26 5:28 UTC (permalink / raw)
To: Peter Huewe
Cc: Jarkko Sakkinen, tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA,
gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/, Eric W. Biederman,
Guenter Roeck, open list:ABI/API, NeilBrown, Tejun Heo
On Tue, Aug 25, 2015 at 07:20:24PM +0200, Peter Huewe wrote:
> Will look at it as soon as possible - relocating to the us is quite stressful.sorry about that.
>
> But since we are already at v9 i think it is in a good shape.
> Peter
Alright, thanks for informing about this!
/Jarkko
> Am 25. August 2015 19:03:27 MESZ, schrieb Jarkko Sakkinen <jarkko.sakkinen-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>:
> >Does this start be in the shape that there would be chance to pull this
> >in at some point? To be able to enable TPM 2.0 chips from Linux is
> >quite
> >mandatory feature in my opinion.
> >
> >Thank you.
> >
> >/Jarkko
> >
> >On Wed, Aug 12, 2015 at 05:05:40PM +0300, Jarkko Sakkinen wrote:
> >> v9:
> >> * Fixed naming for __compat_only_sysfs_link_entry_to_kobj()
> >>
> >> v8:
> >> * Renamed sysfs_link_entry_to_kobj() to
> >> __compat_only_sysfs_link_entry_to_kobj()
> >>
> >> v7:
> >> * Fixed compile error when CONFIG_SYSFS is not enabled.
> >>
> >> v6:
> >> * Updated documentation.
> >>
> >> v5:
> >> * Removed dangling export of kernfs_remove_by_name_ns() from the
> >sysfs
> >> patch.
> >>
> >> v4:
> >> * Use sysfs_remove_link()
> >>
> >> v3:
> >> * Fixed to_tpm_chip() macro.
> >> * Split into two patches.
> >> * Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
> >> * Only create the "backwards compatibility" symlink for TPM 1.x
> >devices.
> >>
> >> Jarkko Sakkinen (3):
> >> sysfs: added __compat_only_sysfs_link_entry_to_kobj()
> >> tpm: move the PPI attributes to character device directory.
> >> tpm: update PPI documentation to address the location change.
> >>
> >> Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++-----
> >> drivers/char/tpm/tpm-chip.c | 24 ++++++++++------
> >> drivers/char/tpm/tpm.h | 17 ++++--------
> >> drivers/char/tpm/tpm_ppi.c | 34
> >++++++++---------------
> >> fs/sysfs/group.c | 44
> >++++++++++++++++++++++++++++++
> >> include/linux/sysfs.h | 11 ++++++++
> >> 6 files changed, 100 insertions(+), 49 deletions(-)
> >>
> >> --
> >> 2.5.0
> >>
>
> --
> Sent from my mobile
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0
@ 2015-09-29 7:36 Jarkko Sakkinen
0 siblings, 0 replies; 6+ messages in thread
From: Jarkko Sakkinen @ 2015-09-29 7:36 UTC (permalink / raw)
To: tpmdd-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: peterhuewe-Mmb7MZpHnFY, gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r,
jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/,
akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b, Jarkko Sakkinen,
Eric W. Biederman, Guenter Roeck, open list:ABI/API, NeilBrown,
Tejun Heo, Vivien Didelot
v9:
* Fixed naming for __compat_only_sysfs_link_entry_to_kobj()
v8:
* Renamed sysfs_link_entry_to_kobj() to
__compat_only_sysfs_link_entry_to_kobj()
v7:
* Fixed compile error when CONFIG_SYSFS is not enabled.
v6:
* Updated documentation.
v5:
* Removed dangling export of kernfs_remove_by_name_ns() from the sysfs
patch.
v4:
* Use sysfs_remove_link()
v3:
* Fixed to_tpm_chip() macro.
* Split into two patches.
* Renamed sysfs_link_group_to_kobj to sysfs_link_entry_to_kobj
* Only create the "backwards compatibility" symlink for TPM 1.x devices.
Jarkko Sakkinen (3):
sysfs: added __compat_only_sysfs_link_entry_to_kobj()
tpm: move the PPI attributes to character device directory.
tpm: update PPI documentation to address the location change.
Documentation/ABI/testing/sysfs-driver-ppi | 19 ++++++++-----
drivers/char/tpm/tpm-chip.c | 24 ++++++++++------
drivers/char/tpm/tpm.h | 17 ++++--------
drivers/char/tpm/tpm_ppi.c | 34 ++++++++---------------
fs/sysfs/group.c | 44 ++++++++++++++++++++++++++++++
include/linux/sysfs.h | 11 ++++++++
6 files changed, 100 insertions(+), 49 deletions(-)
--
2.5.0
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-09-29 7:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-12 14:05 [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0 Jarkko Sakkinen
[not found] ` <1439388347-22325-1-git-send-email-jarkko.sakkinen-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>
2015-08-12 14:05 ` [PATCH v9 3/3] tpm: update PPI documentation to address the location change Jarkko Sakkinen
2015-08-25 17:03 ` [PATCH v9 0/3] Enable PPI sysfs interface for TPM 2.0 Jarkko Sakkinen
[not found] ` <20150825170327.GA23185-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
2015-08-25 17:20 ` Peter Huewe
[not found] ` <E4F705A5-5445-4220-B841-E93FC6859537-Mmb7MZpHnFY@public.gmane.org>
2015-08-26 5:28 ` Jarkko Sakkinen
-- strict thread matches above, loose matches on Subject: below --
2015-09-29 7:36 Jarkko Sakkinen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).