mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <sha@pengutronix.de>
To: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 0/8] optee: add bidirectional communication support
Date: Fri, 1 Dec 2023 11:39:50 +0100	[thread overview]
Message-ID: <20231201103950.GB1057032@pengutronix.de> (raw)
In-Reply-To: <20231127063559.2205776-1-a.fatoum@pengutronix.de>

On Mon, Nov 27, 2023 at 07:35:51AM +0100, Ahmad Fatoum wrote:
> 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

Applied, thanks

Sascha

> 
>  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
> 
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



      parent reply	other threads:[~2023-12-01 10:41 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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
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 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231201103950.GB1057032@pengutronix.de \
    --to=sha@pengutronix.de \
    --cc=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox