]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - drivers/remoteproc/qcom_q6v5_wcss.c
remoteproc: qcom: q6v5: Query sysmon before graceful shutdown
authorBjorn Andersson <bjorn.andersson@linaro.org>
Sun, 22 Nov 2020 05:41:34 +0000 (21:41 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Nov 2020 05:05:24 +0000 (23:05 -0600)
commited5da80873a792b9b2b560a6417bc60679ba5126
treebc9c68f1d849d8d4008a5d0d36c91d54c7950ef5
parent5c212aaf5457ca5bd99aba3ad29a4a17f8129939
remoteproc: qcom: q6v5: Query sysmon before graceful shutdown

Requesting a graceful shutdown through the shared memory state signals
will not be acked in the event that sysmon has already successfully shut
down the remote firmware. So extend the stop request API to optionally
take the remoteproc's sysmon instance and query if there's already been
a successful shutdown attempt, before doing the signal dance.

Tested-by: Steev Klimaszewski <steev@kali.org>
Reviewed-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Link: https://lore.kernel.org/r/20201122054135.802935-4-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5.c
drivers/remoteproc/qcom_q6v5.h
drivers/remoteproc/qcom_q6v5_adsp.c
drivers/remoteproc/qcom_q6v5_mss.c
drivers/remoteproc/qcom_q6v5_pas.c
drivers/remoteproc/qcom_q6v5_wcss.c