* [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss @ 2024-10-16 13:54 Balaji Pothunoori 2024-10-17 22:29 ` Dmitry Baryshkov 0 siblings, 1 reply; 4+ messages in thread From: Balaji Pothunoori @ 2024-10-16 13:54 UTC (permalink / raw) To: andersson, mathieu.poirier Cc: linux-arm-msm, linux-remoteproc, linux-kernel, Balaji Pothunoori, ath11k, Kalle Valo auto_boot flag ensures to take the firmware and boots it up during the wpss remoteproc start. wpss host driver would like to control the load and unload of the firmware during the load and unload of the driver. Hence, disable the "auto boot" for wpss. Signed-off-by: Balaji Pothunoori <quic_bpothuno@quicinc.com> --- Cc: ath11k@lists.infradead.org Cc: Kalle Valo <kvalo@kernel.org> --- drivers/remoteproc/qcom_q6v5_pas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index ef82835e98a4..05963d7924df 100644 --- a/drivers/remoteproc/qcom_q6v5_pas.c +++ b/drivers/remoteproc/qcom_q6v5_pas.c @@ -1344,7 +1344,7 @@ static const struct adsp_data sc7280_wpss_resource = { .crash_reason_smem = 626, .firmware_name = "wpss.mdt", .pas_id = 6, - .auto_boot = true, + .auto_boot = false, .proxy_pd_names = (char*[]){ "cx", "mx", -- 2.34.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss 2024-10-16 13:54 [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss Balaji Pothunoori @ 2024-10-17 22:29 ` Dmitry Baryshkov 2024-10-18 8:41 ` Balaji Pothunoori (QUIC) 0 siblings, 1 reply; 4+ messages in thread From: Dmitry Baryshkov @ 2024-10-17 22:29 UTC (permalink / raw) To: Balaji Pothunoori Cc: andersson, mathieu.poirier, linux-arm-msm, linux-remoteproc, linux-kernel, ath11k, Kalle Valo On Wed, Oct 16, 2024 at 07:24:09PM +0530, Balaji Pothunoori wrote: > auto_boot flag ensures to take the firmware and boots it > up during the wpss remoteproc start. > wpss host driver would like to control the load and unload > of the firmware during the load and unload of the driver. > Hence, disable the "auto boot" for wpss. Which driver? What is the reason for manual control? The board seems to function properly with the ath11k driver, which doesn't seem to require manual control. > > Signed-off-by: Balaji Pothunoori <quic_bpothuno@quicinc.com> > --- > Cc: ath11k@lists.infradead.org > Cc: Kalle Valo <kvalo@kernel.org> > --- > drivers/remoteproc/qcom_q6v5_pas.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index ef82835e98a4..05963d7924df 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -1344,7 +1344,7 @@ static const struct adsp_data sc7280_wpss_resource = { > .crash_reason_smem = 626, > .firmware_name = "wpss.mdt", > .pas_id = 6, > - .auto_boot = true, > + .auto_boot = false, > .proxy_pd_names = (char*[]){ > "cx", > "mx", > -- > 2.34.1 > -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss 2024-10-17 22:29 ` Dmitry Baryshkov @ 2024-10-18 8:41 ` Balaji Pothunoori (QUIC) 2024-10-18 9:03 ` Dmitry Baryshkov 0 siblings, 1 reply; 4+ messages in thread From: Balaji Pothunoori (QUIC) @ 2024-10-18 8:41 UTC (permalink / raw) To: dmitry.baryshkov@linaro.org, Balaji Pothunoori (QUIC) Cc: andersson@kernel.org, mathieu.poirier@linaro.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Kalle Valo > -----Original Message----- > From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > Sent: Friday, October 18, 2024 3:59 AM > To: Balaji Pothunoori (QUIC) <quic_bpothuno@quicinc.com> > Cc: andersson@kernel.org; mathieu.poirier@linaro.org; linux-arm- > msm@vger.kernel.org; linux-remoteproc@vger.kernel.org; linux- > kernel@vger.kernel.org; ath11k@lists.infradead.org; Kalle Valo > <kvalo@kernel.org> > Subject: Re: [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss > > On Wed, Oct 16, 2024 at 07:24:09PM +0530, Balaji Pothunoori wrote: > > auto_boot flag ensures to take the firmware and boots it up during the > > wpss remoteproc start. > > wpss host driver would like to control the load and unload of the > > firmware during the load and unload of the driver. > > Hence, disable the "auto boot" for wpss. > > Which driver? ath11k_ahb.ko What is the reason for manual control? > The board seems to function properly with the ath11k driver, which doesn't > seem to require manual control. > The rproc "atomic_t power" variable is incremented during: a. WPSS rproc auto boot. b. AHB power on for ath11k. During AHB power off (rmmod ath11k_ahb.ko), rproc_shutdown fails to unload the WPSS firmware because the rproc->power value is '2', causing the atomic_dec_and_test(&rproc->power) condition to fail. Consequently, during AHB power on (insmod ath11k_ahb.ko), QMI_WLANFW_HOST_CAP_REQ_V01 fails due to the host and firmware QMI states being out of sync. Therefore, this change disables rproc auto boot for WPSS. > > > > Signed-off-by: Balaji Pothunoori <quic_bpothuno@quicinc.com> > > --- > > Cc: ath11k@lists.infradead.org > > Cc: Kalle Valo <kvalo@kernel.org> > > --- > > drivers/remoteproc/qcom_q6v5_pas.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c > > b/drivers/remoteproc/qcom_q6v5_pas.c > > index ef82835e98a4..05963d7924df 100644 > > --- a/drivers/remoteproc/qcom_q6v5_pas.c > > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > > @@ -1344,7 +1344,7 @@ static const struct adsp_data > sc7280_wpss_resource = { > > .crash_reason_smem = 626, > > .firmware_name = "wpss.mdt", > > .pas_id = 6, > > - .auto_boot = true, > > + .auto_boot = false, > > .proxy_pd_names = (char*[]){ > > "cx", > > "mx", > > -- > > 2.34.1 > > > > -- > With best wishes > Dmitry Regards, Balaji. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss 2024-10-18 8:41 ` Balaji Pothunoori (QUIC) @ 2024-10-18 9:03 ` Dmitry Baryshkov 0 siblings, 0 replies; 4+ messages in thread From: Dmitry Baryshkov @ 2024-10-18 9:03 UTC (permalink / raw) To: Balaji Pothunoori (QUIC) Cc: andersson@kernel.org, mathieu.poirier@linaro.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, ath11k@lists.infradead.org, Kalle Valo On Fri, 18 Oct 2024 at 11:42, Balaji Pothunoori (QUIC) <quic_bpothuno@quicinc.com> wrote: > > > -----Original Message----- > > From: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> > > Sent: Friday, October 18, 2024 3:59 AM > > To: Balaji Pothunoori (QUIC) <quic_bpothuno@quicinc.com> > > Cc: andersson@kernel.org; mathieu.poirier@linaro.org; linux-arm- > > msm@vger.kernel.org; linux-remoteproc@vger.kernel.org; linux- > > kernel@vger.kernel.org; ath11k@lists.infradead.org; Kalle Valo > > <kvalo@kernel.org> > > Subject: Re: [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss > > > > On Wed, Oct 16, 2024 at 07:24:09PM +0530, Balaji Pothunoori wrote: > > > auto_boot flag ensures to take the firmware and boots it up during the > > > wpss remoteproc start. > > > wpss host driver would like to control the load and unload of the > > > firmware during the load and unload of the driver. > > > Hence, disable the "auto boot" for wpss. > > > > Which driver? > ath11k_ahb.ko > > What is the reason for manual control? > > The board seems to function properly with the ath11k driver, which doesn't > > seem to require manual control. > > > The rproc "atomic_t power" variable is incremented during: > a. WPSS rproc auto boot. > b. AHB power on for ath11k. > > During AHB power off (rmmod ath11k_ahb.ko), rproc_shutdown fails to unload the WPSS firmware because the rproc->power value is '2', causing the atomic_dec_and_test(&rproc->power) condition to fail. > Consequently, during AHB power on (insmod ath11k_ahb.ko), QMI_WLANFW_HOST_CAP_REQ_V01 fails due to the host and firmware QMI states being out of sync. Please move these details to the commit message and add Fixes/cc:stable tags. > > Therefore, this change disables rproc auto boot for WPSS. > > > > > > Signed-off-by: Balaji Pothunoori <quic_bpothuno@quicinc.com> > > > --- > > > Cc: ath11k@lists.infradead.org > > > Cc: Kalle Valo <kvalo@kernel.org> > > > --- > > > drivers/remoteproc/qcom_q6v5_pas.c | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c > > > b/drivers/remoteproc/qcom_q6v5_pas.c > > > index ef82835e98a4..05963d7924df 100644 > > > --- a/drivers/remoteproc/qcom_q6v5_pas.c > > > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > > > @@ -1344,7 +1344,7 @@ static const struct adsp_data > > sc7280_wpss_resource = { > > > .crash_reason_smem = 626, > > > .firmware_name = "wpss.mdt", > > > .pas_id = 6, > > > - .auto_boot = true, > > > + .auto_boot = false, > > > .proxy_pd_names = (char*[]){ > > > "cx", > > > "mx", > > > -- > > > 2.34.1 > > > > > > > -- > > With best wishes > > Dmitry > > Regards, > Balaji. -- With best wishes Dmitry ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-18 9:03 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2024-10-16 13:54 [PATCH] remoteproc: qcom_q6v5_pas: disable auto boot for wpss Balaji Pothunoori 2024-10-17 22:29 ` Dmitry Baryshkov 2024-10-18 8:41 ` Balaji Pothunoori (QUIC) 2024-10-18 9:03 ` Dmitry Baryshkov
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).