mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 0/8] optee: add bidirectional communication support
@ 2023-11-27  6:35 Ahmad Fatoum
  2023-11-27  6:35 ` [PATCH 1/8] driver: don't clear unrelated struct device_node::device on unregister Ahmad Fatoum
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Ahmad Fatoum @ 2023-11-27  6:35 UTC (permalink / raw)
  To: barebox

So far, barebox interaction by OP-TEE was limited to loading it and
maybe passing along its device tree fixup. In some scenarios, there
is a lot more that could need to be done however:

  - Access to eMMC RPMB memory
  - Access to keys stored in OP-TEE, e.g. in Trusted Keys TA or
    in fTPM
  - Access to hardware managed by OP-TEE via e.g. PRNG TA

Let's prepare for all that by importing the Linux v6.6 OP-TEE support
into barebox. This series has been tested on STM3MP15 and STM32MP13
32-bit ARM SoCs, where OP-TEE functioned as SCMI provider, restricting
access to some clocks, resets and regulators deemed too important to
let pesky normal world have direct access to them.

Ahmad Fatoum (5):
  driver: don't clear unrelated struct device_node::device on unregister
  deep-probe: don't panic when device can't be created
  deep-probe: skip on-demand platform dev creation for nodes without
    compatible
  devinfo: indicate if device tree nodes are differently populated
  hw_random: add implementation for OP-TEE RNG pseudo TA

Marc Kleine-Budde (3):
  include: uaccess.h: import from linux
  optee: add bidirectional communication support
  optee: add experimental support for /dev/tee0

 commands/devinfo.c                     |  13 +-
 common/Kconfig                         |   5 +
 drivers/Kconfig                        |   1 +
 drivers/Makefile                       |   2 +-
 drivers/base/driver.c                  |   7 +-
 drivers/hw_random/Kconfig              |   9 +
 drivers/hw_random/Makefile             |   1 +
 drivers/hw_random/optee-rng.c          | 302 ++++++++++
 drivers/of/platform.c                  |  13 +-
 drivers/tee/Kconfig                    |  17 +
 drivers/tee/Makefile                   |   5 +
 drivers/tee/optee/Kconfig              |  29 +
 drivers/tee/optee/Makefile             |   8 +
 drivers/tee/optee/call.c               | 239 ++++++++
 drivers/tee/optee/core.c               |  68 +++
 drivers/tee/optee/device.c             | 174 ++++++
 drivers/tee/optee/{of.c => of_fixup.c} |   0
 drivers/tee/optee/optee_msg.h          | 295 +++++++++
 drivers/tee/optee/optee_private.h      | 179 ++++++
 drivers/tee/optee/optee_smc.h          | 473 +++++++++++++++
 drivers/tee/optee/rpc.c                |  16 +
 drivers/tee/optee/smc_abi.c            | 748 +++++++++++++++++++++++
 drivers/tee/tee_core.c                 | 801 +++++++++++++++++++++++++
 drivers/tee/tee_private.h              |  50 ++
 drivers/tee/tee_shm.c                  | 338 +++++++++++
 include/asm-generic/uaccess.h          | 205 +++++++
 include/linux/mod_devicetable.h        |  10 +
 include/linux/tee_drv.h                | 418 +++++++++++++
 include/linux/uaccess.h                |  38 ++
 include/uapi/linux/tee.h               | 407 +++++++++++++
 30 files changed, 4860 insertions(+), 11 deletions(-)
 create mode 100644 drivers/hw_random/optee-rng.c
 create mode 100644 drivers/tee/Kconfig
 create mode 100644 drivers/tee/Makefile
 create mode 100644 drivers/tee/optee/Kconfig
 create mode 100644 drivers/tee/optee/Makefile
 create mode 100644 drivers/tee/optee/call.c
 create mode 100644 drivers/tee/optee/core.c
 create mode 100644 drivers/tee/optee/device.c
 rename drivers/tee/optee/{of.c => of_fixup.c} (100%)
 create mode 100644 drivers/tee/optee/optee_msg.h
 create mode 100644 drivers/tee/optee/optee_private.h
 create mode 100644 drivers/tee/optee/optee_smc.h
 create mode 100644 drivers/tee/optee/rpc.c
 create mode 100644 drivers/tee/optee/smc_abi.c
 create mode 100644 drivers/tee/tee_core.c
 create mode 100644 drivers/tee/tee_private.h
 create mode 100644 drivers/tee/tee_shm.c
 create mode 100644 include/asm-generic/uaccess.h
 create mode 100644 include/linux/tee_drv.h
 create mode 100644 include/linux/uaccess.h
 create mode 100644 include/uapi/linux/tee.h

-- 
2.39.2




^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-12-01 10:41 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27  6:35 [PATCH 0/8] optee: add bidirectional communication support Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 1/8] driver: don't clear unrelated struct device_node::device on unregister Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 2/8] deep-probe: don't panic when device can't be created Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 3/8] deep-probe: skip on-demand platform dev creation for nodes without compatible Ahmad Fatoum
2023-11-29  9:12   ` Sascha Hauer
2023-11-30  8:02     ` Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 4/8] devinfo: indicate if device tree nodes are differently populated Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 5/8] include: uaccess.h: import from linux Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 6/8] optee: add bidirectional communication support Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 7/8] optee: add experimental support for /dev/tee0 Ahmad Fatoum
2023-11-27  6:35 ` [PATCH 8/8] hw_random: add implementation for OP-TEE RNG pseudo TA Ahmad Fatoum
2023-12-01 10:39 ` [PATCH 0/8] optee: add bidirectional communication support Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox