]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
firmware: qcom: scm: Fix interrupted SCM calls
authorAndy Gross <andy.gross@linaro.org>
Tue, 4 Apr 2017 19:32:32 +0000 (19:32 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:12:43 +0000 (10:12 +0200)
commit83353773354550cd50b0a95a23e47a4474ad3482
treec2e5ced69b458184853a653b144e849ed5626abe
parent8d54e740db38f9af96ac022dc2a93861c1b6fe36
firmware: qcom: scm: Fix interrupted SCM calls

BugLink: http://bugs.launchpad.net/bugs/1682130
[ Upstream commit 82bcd087029f6056506ea929f11af02622230901 ]

This patch adds a Qualcomm specific quirk to the arm_smccc_smc call.

On Qualcomm ARM64 platforms, the SMC call can return before it has
completed.  If this occurs, the call can be restarted, but it requires
using the returned session ID value from the interrupted SMC call.

The quirk stores off the session ID from the interrupted call in the
quirk structure so that it can be used by the caller.

This patch folds in a fix given by Sricharan R:
https://lkml.org/lkml/2016/9/28/272

Signed-off-by: Andy Gross <andy.gross@linaro.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
arch/arm64/kernel/smccc-call.S
drivers/firmware/qcom_scm-64.c
include/linux/arm-smccc.h