Skip to content
Commit 93e0d10e authored by Sudeep Holla's avatar Sudeep Holla Committed by Qais Yousef
Browse files

FROMGIT: arm64: smccc: Add support for SMCCCv1.2 extended input/output registers



SMCCC v1.2 allows x8-x17 to be used as parameter registers and x4—x17
to be used as result registers in SMC64/HVC64. Arm Firmware Framework
for Armv8-A specification makes use of x0-x7 as parameter and result
registers. There are other users like Hyper-V who intend to use beyond
x0-x7 as well.

Current SMCCC interface in the kernel just use x0-x7 as parameter and
x0-x3 as result registers as required by SMCCCv1.0. Let us add new
interface to support this extended set of input/output registers namely
x0-x17 as both parameter and result registers.

Bug: XXXXX
Acked-by: Mark Rutland's avatarMark Rutland <mark.rutland@arm.com>
Tested-by: default avatarMichael Kelley <mikelley@microsoft.com>
Reviewed-by: default avatarMichael Kelley <mikelley@microsoft.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
Reviewed-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210518163618.43950-1-sudeep.holla@arm.com


Signed-off-by: default avatarWill Deacon <will@kernel.org>
(cherry picked from commit 3fdc0cb5
https: //git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/ffa)
Signed-off-by: Qais Yousef's avatarQais Yousef <qais.yousef@arm.com>
Change-Id: If958a1625c170a73a5b73163cced501d40f21835
parent bba0d8a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment