Skip to content

optee: Add support for enumerating RPMB-dependent services

Jan Kiszka u-boot 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 16 repliesIn review
  2. v35 patches 10 repliesSuperseded
  3. v25 patches 18 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches6 repliesSuperseded

Changes in v4 from the cover letter

- avoid multiple binds on same optee service

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tee: optee: Factor out service enumeration and binding functionsdrivers/tee/optee/core.c drivers/tee/optee/optee_private.h+21 -150 replies
2/6tee: optee: Avoid binding a service twicedrivers/tee/optee/core.c+6 -01 reply
3/6tee: optee: Add support for enumerating services that only need RPMBdrivers/tee/optee/core.c drivers/tee/optee/optee_private.h drivers/tee/optee/rpmb.c +1 more+54 -158 replies
4/6tee: optee: Do not warn about TEE_ERROR_STORAGE_NOT_AVAILABLEdrivers/tee/optee/core.c+4 -10 replies
5/6mmc: Call back to optee after a successful mmc_initdrivers/mmc/mmc.c+4 -04 replies
6/6mmc: Make "MMC Device not found" a debug outputdrivers/mmc/mmc-uclass.c drivers/mmc/mmc_legacy.c+2 -21 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchIlias ApalodimasTanmay KathpaliaPeng Fan
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6R-b R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH v4 0/6] optee: Add support for enumerating RPMB-dependent services

This allows to find firmware TPM again with recent OP-TEE versions, possibly also other services. The StMM service was not affected because it is directly invoked by efi_variable_tee when needed, and that is late enough so that all dependencies are available by then.

See patches for further details.

Changes in v4:
- avoid multiple binds on same optee service

Changes in v3:
- don't use dev_dev if there is no valid dev
- add device_active check to optee_rpmb_available

Changes in v2:
- fix build breakages with disabled CONFIGs
- structure code differently between optee core and rpmb
- debug() -> dev_dbg()

Jan

Jan Kiszka (6):
tee: optee: Factor out service enumeration and binding functions
tee: optee: Avoid binding a service twice
tee: optee: Add support for enumerating services that only need RPMB
tee: optee: Do not warn about TEE_ERROR_STORAGE_NOT_AVAILABLE
mmc: Call back to optee after a successful mmc_init
mmc: Make "MMC Device not found" a debug output

 drivers/mmc/mmc-uclass.c          |  2 +-
 drivers/mmc/mmc.c                 |  4 ++
 drivers/mmc/mmc_legacy.c          |  2 +-
 drivers/tee/optee/core.c          | 64 ++++++++++++++++---------------
 drivers/tee/optee/optee_private.h | 24 ++++++++++++
 drivers/tee/optee/rpmb.c          | 20 ++++++++++
 include/tee/optee.h               |  6 +++
 7 files changed, 90 insertions(+), 32 deletions(-)
Signature · 1 line
2.47.3