Skip to content

tpm/tpm_crb: implement power management.

Tomas Winkler lkml tpmdd-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/24 patches 16 repliesIn review
  2. v4 posting 1/21 of 4 patches 1 replySuperseded
  3. v33 of 4 patches 14 repliesSuperseded

Patches in v4 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4tpm/tpm_crb: implement tpm crb idle statedrivers/char/tpm/tpm_crb.c+70 -01 reply
2/4tmp/tpm_crb: fix Intel PTT hw bug during idle statedrivers/char/tpm/tpm_crb.c+39 -810 replies
3/4tpm/tpm_crb: open code the crb_init into acpi_adddrivers/char/tpm/tpm_crb.c+10 -160 replies
4/4tmp/tpm_crb: implement runtime pm for tpm_crbdrivers/char/tpm/tpm-interface.c drivers/char/tpm/tpm_crb.c+43 -45 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchJarkko Sakkinen
1/4R-b
2/4
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] tpm/tpm_crb: implement power management.

Te overall platform ability to enter a low power state is also conditioned on the ability of a tpm device to go to idle state. This series should provide this feature.

Unfortunately, there is a HW bug on Intel PTT devices on Skylake, Kabylake, and Broxton devices, where certain registers lost retention during TPM idle state. Hence this implementation takes this into consideration and implement the feature based only on access to registers that retain their state. This still conforms to the spec and should be correct also on non Intle devices.

V2: Utilize runtime_pm for driving tpm crb idle states. V3. fix lower case corruption in the first patch V4. Fix unbalanced runtime pm get and put

Tomas Winkler (4):
tpm/tpm_crb: implement tpm crb idle state tmp/tpm_crb: fix Intel PTT hw bug during idle state tpm/tpm_crb: open code the crb_init into acpi_add tmp/tpm_crb: implement runtime pm for tpm_crb

 drivers/char/tpm/tpm-interface.c |   5 ++
 drivers/char/tpm/tpm_crb.c       | 166 +++++++++++++++++++++++++++++++++------
 2 files changed, 147 insertions(+), 24 deletions(-)
Signature · 1 line
2.7.4