remoteproc: qcom: pas: Fix subdevice add order
Subsystems (2)
PATCH 1/1 remoteproc: qcom: pas: Fix subdevice add order
Currently, the notification like QCOM_SSR_BEFORE_SHUTDOWN is not exactly sent before starting shutdown activity on remote subsystem but it is getting sent after sysmon shutdown request to remote.
On getting QCOM_SSR_BEFORE_SHUTDOWN, some client want remote subsystem to be alive to communicate but as sysmon shutdown request is getting sent to remote before QCOM_SSR_BEFORE_SHUTDOWN notification sent to kernel client due to which remote is not in a condition to communicate with kernel clients.
Fixing the subdevice ordering will fix this as ssr subdevice will be first one to get triggered in shutdown/stop path.
--- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/remoteproc/qcom_q6v5_pas.c +1 -1
@@ -538,7 +538,6 @@ static int adsp_probe(struct platform_device *pdev)qcom_add_glink_subdev (rproc, &adsp->glink_subdev, desc->ssr_name);qcom_add_smd_subdev (rproc, &adsp->smd_subdev); -qcom_add_ssr_subdev (rproc, &adsp->ssr_subdev, desc->ssr_name); adsp->sysmon =qcom_add_sysmon_subdev (rproc, desc->sysmon_name, desc->ssctl_id);
@@ -547,6 +546,7 @@ static int adsp_probe(struct platform_device *pdev) goto detach_proxy_pds; } +qcom_add_ssr_subdev (rproc, &adsp->ssr_subdev, desc->ssr_name); ret =rproc_add (rproc);if (ret) goto detach_proxy_pds;
Signature · 1 line
2.7.4
Hi,
Friendly reminder for review.
-Mukesh
Quoted 38 lines · Mukesh Ojha
Currently, the notification like
QCOM_SSR_BEFORE_SHUTDOWNis not exactly sent before starting shutdown activity on remote subsystem but it is getting sent after sysmon shutdown request to remote.On getting
QCOM_SSR_BEFORE_SHUTDOWN, some client want remote subsystem to be alive to communicate but as sysmon shutdown request is getting sent to remote beforeQCOM_SSR_BEFORE_SHUTDOWNnotification sent to kernel client due to which remote is not in a condition to communicate with kernel clients.Fixing the subdevice ordering will fix this as ssr subdevice will be first one to get triggered in shutdown/stop path.
Signed-off-by Mukesh Ojha <[email protected]>--- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/remoteproc/qcom_q6v5_pas.c +1
-1@@ -538,7 +538,6 @@ static int adsp_probe(struct platform_device *pdev)qcom_add_glink_subdev (rproc, &adsp->glink_subdev, desc->ssr_name);qcom_add_smd_subdev (rproc, &adsp->smd_subdev); -qcom_add_ssr_subdev (rproc, &adsp->ssr_subdev, desc->ssr_name); adsp->sysmon =qcom_add_sysmon_subdev (rproc, desc->sysmon_name, desc->ssctl_id);@@ -547,6 +546,7 @@ static int adsp_probe(struct platform_device *pdev) goto detach_proxy_pds; } +qcom_add_ssr_subdev (rproc, &adsp->ssr_subdev, desc->ssr_name); ret =rproc_add (rproc);if (ret) goto detach_proxy_pds;
Quoted 11 lines · Mukesh Ojha
Currently, the notification like
QCOM_SSR_BEFORE_SHUTDOWNis not exactly sent before starting shutdown activity on remote subsystem but it is getting sent after sysmon shutdown request to remote.On getting
QCOM_SSR_BEFORE_SHUTDOWN, some client want remote subsystem to be alive to communicate but as sysmon shutdown request is getting sent to remote beforeQCOM_SSR_BEFORE_SHUTDOWNnotification sent to kernel client due to which remote is not in a condition to communicate with kernel clients.[...]
Applied, thanks!
[1/1] remoteproc: qcom: pas: Fix subdevice add order
commit: cf5865e72236c239317d6c5829ab170419b400a4
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>