All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/6] firmware: conduit method helpers for SMCCC v1.0 calls
@ 2020-04-19 15:05 ` Etienne Carriere
  0 siblings, 0 replies; 22+ messages in thread
From: Etienne Carriere @ 2020-04-19 15:05 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, james.morse, michal.simek, richard.gong,
	lorenzo.pieralisi, mark.rutland, jens.wiklander, tee-dev,
	sudeep.holla, Etienne Carriere

These changes propose helper functions and macros to consolidate choice of
the conduit method among devices communicating with an secure world that
complies with SMCCC v1.0 but not SMCCC v1.1 or later. The new helper
functions mimic arm_smccc_1_1_*() function but for SMCCC v1.0 compliant
firmwares.

This series of changes updates several firmware drivers that each define a
conduit method whereas kernel drivers are expected to use the very same
conduit. This series obviously does not enforce these drivers to apply the
proposed changes but the interest of the first patch is this series is that
at least the PSCI driver upgrades as it will allow new drivers to benefit
from the early initialized PSCI conduit method.

Etienne Carriere (6):
  firmware: helper functions for SMCCC v1.0 invocation conduit
  firmware: psci: set SMCCC v1.0 conduit and use helpers functions
  tee: optee: use SMCCC v1.0 helper functions
  firmware: arm_sdei: use SMCCC v1.0 helper functions
  firmware: stratix10: use SMCCC v1.0 helper functions
  firmware: zynqmp: use SMCCC v1.0 helper functions

 drivers/firmware/Makefile            |   1 +
 drivers/firmware/arm_sdei.c          |  79 +++++---------
 drivers/firmware/arm_smccc_conduit.c | 147 +++++++++++++++++++++++++++
 drivers/firmware/psci/psci.c         |  60 ++---------
 drivers/firmware/stratix10-svc.c     |  97 ++----------------
 drivers/firmware/xilinx/zynqmp.c     |  87 ++--------------
 drivers/tee/optee/call.c             |  14 +--
 drivers/tee/optee/core.c             |  85 ++++------------
 drivers/tee/optee/optee_private.h    |   4 +-
 include/linux/arm-smccc.h            | 106 +++++++++++++++++++
 include/linux/psci.h                 |   1 -
 11 files changed, 337 insertions(+), 344 deletions(-)
 create mode 100644 drivers/firmware/arm_smccc_conduit.c

-- 
2.17.1


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

end of thread, other threads:[~2020-04-22  0:53 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-19 15:05 [RFC PATCH 0/6] firmware: conduit method helpers for SMCCC v1.0 calls Etienne Carriere
2020-04-19 15:05 ` Etienne Carriere
2020-04-19 15:05 ` [RFC PATCH 1/6] firmware: helper functions for SMCCC v1.0 invocation conduit Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-19 15:51   ` Etienne Carriere
2020-04-19 15:51     ` Etienne Carriere
2020-04-21  9:52   ` kbuild test robot
2020-04-19 15:05 ` [RFC PATCH 2/6] firmware: psci: set SMCCC v1.0 conduit and use helpers functions Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-19 15:05 ` [RFC PATCH 3/6] tee: optee: use SMCCC v1.0 helper functions Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-19 15:05 ` [RFC PATCH 4/6] firmware: arm_sdei: " Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-22  0:53   ` kbuild test robot
2020-04-19 15:05 ` [RFC PATCH 5/6] firmware: stratix10: " Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-21 13:31   ` kbuild test robot
2020-04-21 13:50   ` kbuild test robot
2020-04-19 15:05 ` [RFC PATCH 6/6] firmware: zynqmp: " Etienne Carriere
2020-04-19 15:05   ` Etienne Carriere
2020-04-21 14:38   ` kbuild test robot
2020-04-21 15:14   ` kbuild test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.