OSDN Git Service

remoteproc: qcom: q6v5: Add common panic handler
authorBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 24 Mar 2020 05:29:03 +0000 (22:29 -0700)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 26 Mar 2020 05:29:45 +0000 (22:29 -0700)
commite9142f5c28e997ab45fac23bc27a3bc01725bb49
tree666689a2d8d1809b58f50e63e7db7f65ff03063c
parentdc5192c449368eed3385f4405670aa3ed21d6270
remoteproc: qcom: q6v5: Add common panic handler

Add a common panic handler that invokes a stop request and sleep enough
to let the remoteproc flush it's caches etc in order to aid post mortem
debugging. For now a hard coded 200ms is returned to the remoteproc
core, this value is taken from the downstream kernel.

Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Link: https://lore.kernel.org/r/20200324052904.738594-4-bjorn.andersson@linaro.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/qcom_q6v5.c
drivers/remoteproc/qcom_q6v5.h