Skip to content

arm/arm64: SMCCC conduit cleanup

Mark Rutland linux-arm-kernel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest6 patches 8 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6arm/arm64: smccc/psci: add arm_smccc_1_1_get_conduit()drivers/firmware/psci/psci.c include/linux/arm-smccc.h+31 -05 replies
2/6arm64: errata: use arm_smccc_1_1_get_conduit()arch/arm64/kernel/cpu_errata.c+12 -250 replies
3/6arm: spectre-v2: use arm_smccc_1_1_get_conduit()arch/arm/mm/proc-v7-bugs.c+3 -71 reply
4/6firmware/psci: use common SMCCC_CONDUIT_*drivers/firmware/psci/psci.c include/linux/psci.h+11 -230 replies
5/6firmware: arm_sdei: use common SMCCC_CONDUIT_*arch/arm64/kernel/sdei.c drivers/firmware/arm_sdei.c include/linux/arm_sdei.h+8 -130 replies
6/6smccc: make 1.1 macros value-returningarch/arm/mm/proc-v7-bugs.c arch/arm64/kernel/cpu_errata.c arch/arm64/kvm/hyp/switch.c +1 more+42 -472 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

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

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

Cover letter [PATCHv3 0/6] arm/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
Since v2 [2]:
* Rebase to v5.3-rc3
* Fix up arm spectre-v2 code
* Drop acks where significant changes have been made

Mark.

[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]

Mark Rutland (6):
arm/arm64: smccc/psci: add arm_smccc_1_1_get_conduit()
arm64: errata: use arm_smccc_1_1_get_conduit()
arm: spectre-v2: use arm_smccc_1_1_get_conduit() firmware/psci: use common SMCCC_CONDUIT_*
firmware: arm_sdei: use common SMCCC_CONDUIT_*
smccc: make 1.1 macros value-returning

 arch/arm/mm/proc-v7-bugs.c     | 22 ++++++--------
 arch/arm64/kernel/cpu_errata.c | 61 ++++++++++++++++-----------------------
 arch/arm64/kernel/sdei.c       |  3 +-
 arch/arm64/kvm/hyp/switch.c    |  4 +--
 drivers/firmware/arm_sdei.c    | 12 ++++----
 drivers/firmware/psci/psci.c   | 24 ++++++++++------
 include/linux/arm-smccc.h      | 65 ++++++++++++++++++++++++------------------
 include/linux/arm_sdei.h       |  6 ----
 include/linux/psci.h           |  9 ++----
 9 files changed, 99 insertions(+), 107 deletions(-)
Signature · 7 lines
2.11.0


_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel