Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1546655

Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature

From Sarangdhar Joshi <spjoshi@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature
Date 2016-12-23 01:10 +0100
Message-ID <sRlAS-7Xi-9@gated-at.bofh.it> (permalink)
References <sOOg1-4cX-5@gated-at.bofh.it> <sR25c-3JP-7@gated-at.bofh.it> <sRiMG-69S-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 12/22/2016 5:02 AM, Bjorn Andersson wrote:
> On Wed 21 Dec 19:16 PST 2016, Suman Anna wrote:
>
>> Hi Sarang,
>>
>> On 12/15/2016 06:03 PM, Sarangdhar Joshi wrote:
>>> The function wkup_m3_rproc_boot_thread waits for asynchronous
>>> firmware loading to complete successfully before calling
>>> rproc_boot(). The same can be achieved by just setting
>>> rproc->auto_boot flag. Change this. As a result this change
>>> removes wkup_m3_rproc_boot_thread and moves m3_ipc->sync_complete
>>> initialization to the wkup_m3_ipc_probe().
>>>
>>> Other than the current usage, the firmware_loading_complete is
>>> only used in rproc_del() where it's no longer needed.  This
>>> change is in preparation for removing firmware_loading_complete
>>> completely.
>>
>> Based on the comments so far, I am assuming that you are dropping this
>> series.
>>
>
> Following up on those comments only revealed that we have several other
> similar race conditions, so I'm hoping that Sarangdhar will continue to
> work on fixing those - and in this process get rid of this completion.
>
>> In any case, this series did break our PM stack. We definitely don't
>> want to auto-boot the wkup_m3_rproc device, that responsibility will
>> need to stay with the wkup_m3_ipc driver.
>>
>
> Reviewing the wkup_m3 situation again I see that as we have moved the
> resource table parsing to the rproc_boot() path there's no longer any
> need for the wkup_m3_ipc driver to wait for the remoteproc-core-internal
> completion.
>
> If rproc_get_by_phandle() returns non-NULL it is initialized. We still
> don't want to call rproc_boot() from wkup_m3_ipc_probe(), so let's keep
> the wkup_m3_rproc_boot_thread().

Did you mean it's okay to call rproc_boot() from wkup_m3_ipc_probe()? 
rproc_boot() calls request_firmware() anyways and so there is no need to 
wait for completion of asynchronous firmware loading.

>
> Sarangdhar, could you update the wkup_m3_ipc patch to just drop the
> wait_for_completion() call?

Sure, assuming we should still keep the rproc_boot() call in the kthread.

Regards,
Sarang

>
> Regards,
> Bjorn
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-remoteproc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>


-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Sarangdhar Joshi <spjoshi@codeaurora.org> - 2016-12-16 01:10 +0100
  [PATCH 2/2] remoteproc: Remove firmware_loading_complete Sarangdhar Joshi <spjoshi@codeaurora.org> - 2016-12-16 01:10 +0100
    Re: [PATCH 2/2] remoteproc: Remove firmware_loading_complete loic pallardy <loic.pallardy@st.com> - 2016-12-16 09:30 +0100
      Re: [PATCH 2/2] remoteproc: Remove firmware_loading_complete Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-12-16 20:30 +0100
        Re: [PATCH 2/2] remoteproc: Remove firmware_loading_complete Sarangdhar Joshi <spjoshi@codeaurora.org> - 2016-12-17 03:50 +0100
  Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Suman Anna <s-anna@ti.com> - 2016-12-22 04:20 +0100
    Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Bjorn Andersson <bjorn.andersson@linaro.org> - 2016-12-22 22:10 +0100
      Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Sarangdhar Joshi <spjoshi@codeaurora.org> - 2016-12-23 01:10 +0100
        Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Suman Anna <s-anna@ti.com> - 2016-12-23 18:00 +0100
    Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Sarangdhar Joshi <spjoshi@codeaurora.org> - 2016-12-23 01:10 +0100
      Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Suman Anna <s-anna@ti.com> - 2016-12-23 18:10 +0100
        Re: [PATCH 1/2] soc: ti: Use remoteproc auto_boot feature Suman Anna <s-anna@ti.com> - 2016-12-24 01:00 +0100

csiph-web