Skip to content

Add dynamic boost control support

Mario Limonciello linux-crypto lkml 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest11 patches 6 repliesIn review
  2. v411 patches 2 repliesSuperseded
  3. v310 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v210 patches5 repliesSuperseded
v110 patches4 repliesSuperseded

Changes in v5 from the cover letter

* Pick up tags
* Pick up a static fix
* Fix a mistake found in dbc_cli

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11crypto: ccp: Rename macro for security attributesdrivers/crypto/ccp/sp-pci.c+13 -130 replies
2/11crypto: ccp: Add support for displaying PSP firmware versionsDocumentation/ABI/testing/sysfs-driver-ccp drivers/crypto/ccp/sp-dev.h drivers/crypto/ccp/sp-pci.c+84 -00 replies
3/11crypto: ccp: Add bootloader and TEE version offsetsdrivers/crypto/ccp/sp-pci.c+5 -00 replies
4/11crypto: ccp: move setting PSP master to earlier in the initdrivers/crypto/ccp/psp-dev.c+7 -30 replies
5/11crypto: ccp: Add support for fetching a nonce for dynamic boost controldrivers/crypto/ccp/Makefile drivers/crypto/ccp/dbc.c drivers/crypto/ccp/dbc.h +6 more+321 -10 replies
6/11crypto: ccp: Add support for setting user ID for dynamic boost controldrivers/crypto/ccp/dbc.c drivers/crypto/ccp/dbc.h include/linux/psp-platform-access.h +1 more+45 -00 replies
7/11crypto: ccp: Add support for getting and setting DBC parametersdrivers/crypto/ccp/dbc.c drivers/crypto/ccp/dbc.h include/linux/psp-platform-access.h +1 more+109 -00 replies
8/11crypto: ccp: Add a sample library for ioctl usetools/crypto/ccp/Makefile tools/crypto/ccp/dbc.c+85 -00 replies
9/11crypto: ccp: Add a sample python script for Dynamic Boost Controltools/crypto/ccp/.gitignore tools/crypto/ccp/dbc.py tools/crypto/ccp/dbc_cli.py+199 -00 replies
10/11crypto: ccp: Add unit tests for dynamic boost controltools/crypto/ccp/test_dbc.py+266 -00 replies
11/11crypto: ccp: Add Mario to MAINTAINERSMAINTAINERS+12 -00 replies

Reviews trailers per patch

All 11 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchTom LendackyJohn Allen
SeriesA-b
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11A-b
8/11A-b
9/11A-b
10/11A-b
11/11A-b

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

Read the v5 thread

Cover letter [PATCH v5 00/11] Add dynamic boost control support

Dynamic boost control is a feature of some SoCs that allows an authenticated entity to send commands to the security processor to control certain SOC characteristics with the intention to improve performance.

This is implemented via a mechanism that a userspace application would authenticate using a nonce and key exchange over an IOCTL interface.

After authentication is complete an application can exchange signed messages with the security processor and both ends can validate the data transmitted.

This series includes a test suite that can be run on real hardware to ensure that the communication works as expected. This can also be used for an application to model the communication path.

Two sysfs files are introduced for reading the PSP bootloader version as well as TEE version which can be useful data points for debugging communication problems.

v4->v5:
* Pick up tags
* Pick up a static fix
* Fix a mistake found in dbc_cli

Mario Limonciello (11):
crypto: ccp: Rename macro for security attributes
crypto: ccp: Add support for displaying PSP firmware versions
crypto: ccp: Add bootloader and TEE version offsets
crypto: ccp: move setting PSP master to earlier in the init
crypto: ccp: Add support for fetching a nonce for dynamic boost
control
crypto: ccp: Add support for setting user ID for dynamic boost control
crypto: ccp: Add support for getting and setting DBC parameters
crypto: ccp: Add a sample library for ioctl use
crypto: ccp: Add a sample python script for Dynamic Boost Control
crypto: ccp: Add unit tests for dynamic boost control
crypto: ccp: Add Mario to MAINTAINERS

 Documentation/ABI/testing/sysfs-driver-ccp |  18 ++
 MAINTAINERS                                |  12 +
 drivers/crypto/ccp/Makefile                |   3 +-
 drivers/crypto/ccp/dbc.c                   | 250 +++++++++++++++++++
 drivers/crypto/ccp/dbc.h                   |  56 +++++
 drivers/crypto/ccp/psp-dev.c               |  19 +-
 drivers/crypto/ccp/psp-dev.h               |   1 +
 drivers/crypto/ccp/sp-dev.h                |   7 +
 drivers/crypto/ccp/sp-pci.c                |  96 +++++++-
 include/linux/psp-platform-access.h        |   4 +
 include/uapi/linux/psp-dbc.h               | 147 ++++++++++++
 tools/crypto/ccp/.gitignore                |   1 +
 tools/crypto/ccp/Makefile                  |  13 +
 tools/crypto/ccp/dbc.c                     |  72 ++++++
 tools/crypto/ccp/dbc.py                    |  64 +++++
 tools/crypto/ccp/dbc_cli.py                | 134 +++++++++++
 tools/crypto/ccp/test_dbc.py               | 266 +++++++++++++++++++++
 17 files changed, 1146 insertions(+), 17 deletions(-)
 create mode 100644 drivers/crypto/ccp/dbc.c
 create mode 100644 drivers/crypto/ccp/dbc.h
 create mode 100644 include/uapi/linux/psp-dbc.h
 create mode 100644 tools/crypto/ccp/.gitignore
 create mode 100644 tools/crypto/ccp/Makefile
 create mode 100644 tools/crypto/ccp/dbc.c
 create mode 100644 tools/crypto/ccp/dbc.py
 create mode 100755 tools/crypto/ccp/dbc_cli.py
 create mode 100755 tools/crypto/ccp/test_dbc.py

base-commit: b335f258e8ddafec0e8ae2201ca78d29ed8f85eb

Signature · 1 line
2.34.1