Skip to content

arm64: SMCCC conduit cleanup

Mark Rutland linux-arm-kernel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 0 repliesNew
  2. v14 patches 3 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4arm/arm64: smccc/psci: add arm_smccc_1_1_get_conduit()drivers/firmware/psci.c include/linux/arm-smccc.h+31 -00 replies
2/4arm64: errata: use arm_smccc_get_conduit()arch/arm64/kernel/cpu_errata.c+12 -220 replies
3/4firmware/psci: use common SMCCC_CONDUIT_*drivers/firmware/psci.c include/linux/psci.h+11 -230 replies
4/4firmware: arm_sdei: use common SMCCC_CONDUIT_*arch/arm64/kernel/sdei.c drivers/firmware/arm_sdei.c include/linux/arm_sdei.h+8 -130 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchLorenzo PieralisiWill DeaconJames Morse
1/4A-b A-b
2/4A-b A-b
3/4A-b A-b
4/4A-b A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCHv2 0/4] arm64: SMCCC conduit cleanup

Currently, the cpu errata code goes digging into PSCI internals to discover the SMCCC conduit, using the (arguably misnamed) PSCI_CONDUIT_* definitions. This lack of abstraction is somewhat unfortunate.

Further, the SDEI code has an almost identical set of CONDUIT_* definitions, and the duplication is rather unfortunate.

Let's unify things behind a common set of SMCCC_CONDUIT_* definitions, and expose the SMCCCv1.1 conduit via a new helper that hides the PSCI driver internals.

Since v1 [1]:
* Rebase to the arm64 for-next/core branch, atop of SSBD patches
* Fold in acks

Mark.

[1] https://lkml.kernel.org/r/20180503170330.5591-1-mark.rutland at arm.com

Mark Rutland (4):
arm/arm64: smccc/psci: add arm_smccc_1_1_get_conduit()
arm64: errata: use arm_smccc_get_conduit() firmware/psci: use common SMCCC_CONDUIT_*
firmware: arm_sdei: use common SMCCC_CONDUIT_*

 arch/arm64/kernel/cpu_errata.c | 34 ++++++++++++----------------------
 arch/arm64/kernel/sdei.c       |  3 ++-
 drivers/firmware/arm_sdei.c    | 12 ++++++------
 drivers/firmware/psci.c        | 24 ++++++++++++++++--------
 include/linux/arm-smccc.h      | 16 ++++++++++++++++
 include/linux/arm_sdei.h       |  6 ------
 include/linux/psci.h           |  9 ++-------
 7 files changed, 54 insertions(+), 50 deletions(-)
Signature · 1 line
2.11.0