[PATCH 0/4] ARM SMC Calling Convention interface

Jens Wiklander jens.wiklander at linaro.org
Wed Nov 4 01:46:08 PST 2015


Hi,

This patch set is broken out of the Generic TEE subsystem v6 patchset
(https://lwn.net/Articles/662495/) sent out last week. The previous review
comments are addressed. By isolating these patches that are useful for
other purposes than to support the Generic TEE subsystem some complexity is
removed from that patch set.

This patch set adds a common interface to do an SMC or HVC following ARM
SMC Calling Convention. This interface is implemented for both the arm and
arm64 architectures and updates the PSCI driver to use this interface
instead for firmware communication.

Thanks,
Jens

Jens Wiklander (4):
  arm/arm64: add arm-smccc
  arm: add implementation for arm-smccc
  arm64: add implementation for arm-smccc
  drivers: psci: replace psci firmware calls

 arch/arm/Kconfig                |  1 +
 arch/arm/kernel/Makefile        |  3 +-
 arch/arm/kernel/psci-call.S     | 31 -------------
 arch/arm/kernel/smccc-call.S    | 46 +++++++++++++++++++
 arch/arm/kernel/smccc.c         | 18 ++++++++
 arch/arm64/Kconfig              |  1 +
 arch/arm64/kernel/Makefile      |  3 +-
 arch/arm64/kernel/asm-offsets.c |  3 ++
 arch/arm64/kernel/psci-call.S   | 28 ------------
 arch/arm64/kernel/smccc-call.S  | 41 +++++++++++++++++
 arch/arm64/kernel/smccc.c       | 18 ++++++++
 drivers/firmware/psci.c         | 23 +++++++++-
 include/linux/arm-smccc.h       | 98 +++++++++++++++++++++++++++++++++++++++++
 init/Kconfig                    |  3 ++
 14 files changed, 254 insertions(+), 63 deletions(-)
 delete mode 100644 arch/arm/kernel/psci-call.S
 create mode 100644 arch/arm/kernel/smccc-call.S
 create mode 100644 arch/arm/kernel/smccc.c
 delete mode 100644 arch/arm64/kernel/psci-call.S
 create mode 100644 arch/arm64/kernel/smccc-call.S
 create mode 100644 arch/arm64/kernel/smccc.c
 create mode 100644 include/linux/arm-smccc.h

-- 
1.9.1




More information about the linux-arm-kernel mailing list