remoteproc: qcom_q6v5_mss: Reload the mba region on coredump
authorSibi Sankar <sibis@codeaurora.org>
Wed, 4 Mar 2020 19:47:29 +0000 (01:17 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:37 +0000 (22:29 -0700)
commitd96f2571dc84d128cacf1944f4ecc87834c779a6
treefcc9eaeb922989676508e6bf4d7b0bd358e2f8a0
parent715d85251957adeccf437618bbd5c07e173df91a
remoteproc: qcom_q6v5_mss: Reload the mba region on coredump

On secure devices after a wdog/fatal interrupt, the mba region has to be
refreshed in order to prevent the following errors during mba load.

Err Logs:
remoteproc remoteproc2: stopped remote processor 4080000.remoteproc
qcom-q6v5-mss 4080000.remoteproc: PBL returned unexpected status -284031232
qcom-q6v5-mss 4080000.remoteproc: PBL returned unexpected status -284031232
....
qcom-q6v5-mss 4080000.remoteproc: PBL returned unexpected status -284031232
qcom-q6v5-mss 4080000.remoteproc: MBA booted, loading mpss

Fixes: 7dd8ade24dc2a ("remoteproc: qcom: q6v5-mss: Add custom dump function for modem")
Cc: stable@vger.kernel.org
Signed-off-by: Sibi Sankar <sibis@codeaurora.org>
Tested-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20200304194729.27979-4-sibis@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5_mss.c