linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch v2 0/2] Support ARM SMCC SoC vendor quirks
@ 2016-12-29 23:27 Andy Gross
  2016-12-29 23:27 ` [Patch v2 1/2] arm: kernel: Add SMC structure parameter Andy Gross
  2016-12-29 23:27 ` [Patch v2 2/2] firmware: qcom: scm: Fix interrupted SCM calls Andy Gross
  0 siblings, 2 replies; 5+ messages in thread
From: Andy Gross @ 2016-12-29 23:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: linux-arm-kernel, linux-arm-msm, will.deacon, lorenzo.pieralisi,
	Kevin Hilman, Srinivas Kandagatla, Bjorn Andersson, linux,
	Andy Gross

At least one SoC vendor (Qualcomm) requires additional processing done
during ARM SMCCC calls.  As such, an additional parameter to the
arm_smccc_smc is required to be able to handle SoC specific quirks.

The Qualcomm quirk is necessary due to the fact that the scm call can
be interrupted on Qualcomm ARM64 platforms.  When this occurs, the
call must be restarted using information that was passed back during
the original smc call.

The first patch in this series adds a quirk structure and also adds a
quirk paramter to arm_smccc_smc calls.  I added macros to allow users
to choose the API they need.  This keeps all of the current users who
do not need quirks from having to change anything.

The second patch adds the Qualcomm quirk and also implements the
Qualcomm firmware changes required to handle the restarting of the
interrupted SMC call.

The original patch set for the SMCCC session ID is located at:
https://lkml.org/lkml/2016/8/20/7

Changes from v1:
  - Add macros to handle both use cases per review comments

Andy Gross (2):
  arm: kernel: Add SMC structure parameter
  firmware: qcom: scm: Fix interrupted SCM calls

 arch/arm/kernel/armksyms.c      |  2 +-
 arch/arm/kernel/smccc-call.S    |  7 ++++---
 arch/arm64/kernel/arm64ksyms.c  |  2 +-
 arch/arm64/kernel/asm-offsets.c |  7 +++++--
 arch/arm64/kernel/smccc-call.S  | 16 ++++++++++++----
 drivers/firmware/qcom_scm-64.c  | 13 ++++++++++---
 include/linux/arm-smccc.h       | 39 ++++++++++++++++++++++++++++++++-------
 7 files changed, 65 insertions(+), 21 deletions(-)

-- 
1.9.1

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

end of thread, other threads:[~2017-01-04 17:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-29 23:27 [Patch v2 0/2] Support ARM SMCC SoC vendor quirks Andy Gross
2016-12-29 23:27 ` [Patch v2 1/2] arm: kernel: Add SMC structure parameter Andy Gross
2017-01-04 17:33   ` Will Deacon
2016-12-29 23:27 ` [Patch v2 2/2] firmware: qcom: scm: Fix interrupted SCM calls Andy Gross
2017-01-04 17:33   ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).