Re: [PATCH] remoteproc: qcom: q6v5: Request shutdown if crash is triggered host-side
From: Konrad Dybcio
Date: Thu Jul 23 2026 - 06:24:15 EST
On 7/23/26 5:00 AM, Bjorn Andersson wrote:
> rpmsg client drivers are allowed to invoke rproc_report_crash() on their
> grandparent when they determine that the otherwise seemingly healthy
> remoteproc has entered a functionally broken state.
>
> In the crash handling path qcom_q6v5_request_stop() is invoked, which is
> based on the current rproc state whether to request a graceful shutdown.
>
> But the current rproc `state` will be RPROC_CRASHED regardless of where
> the crash handler was initiated from, and empirical data shows that
> unless the firmware is taking part of the shutdown the system state is
> often left such that it's not possible to start the subsystem again.
>
> Use the `running` state in the q6v5 driver to make the decision instead,
> as this does represent the actual state of the firmware.
>
> This makes it possible to reliably trigger a restart from client
> drivers.
>
> Fixes: 3cc889eb83f5 ("remoteproc: qcom: q6v5: Avoid setting smem bit in case of crash shutdown")
> Signed-of
Reviewed-by: Konrad Dybcio <konrad.dybcio@xxxxxxxxxxxxxxxx>
Konrad