From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754797AbdECCGw (ORCPT ); Tue, 2 May 2017 22:06:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:40194 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754776AbdECCGp (ORCPT ); Tue, 2 May 2017 22:06:45 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org C2A28607B9 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=spjoshi@codeaurora.org Subject: Re: [PATCH 1/2] remoteproc: Introduce rproc_{start,stop}() functions To: Bjorn Andersson References: <1493758742-26148-1-git-send-email-spjoshi@codeaurora.org> <20170503000205.GZ15143@minitux> Cc: Ohad Ben-Cohen , Loic Pallardy , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , Trilok Soni From: Sarangdhar Joshi Message-ID: Date: Tue, 2 May 2017 19:06:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170503000205.GZ15143@minitux> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05/02/2017 05:02 PM, Bjorn Andersson wrote: > On Tue 02 May 13:59 PDT 2017, Sarangdhar Joshi wrote: > >> In the context of recovering from crash, >> rproc_trigger_recovery() does rproc_shutdown() followed >> by rproc_boot(). The remoteproc resources are cleaned up >> in rproc_shutdown() and immediately reallocated in >> rproc_boot() which is an unnecessary overhead. >> >> Furthermore, we want the memory regions to be accessible >> after stopping the remote processor, to be able to extract >> the memory content for a coredump. >> >> The current patch factors out the code in rproc_boot() and > > "This patch factors..." > >> rproc_shutdown() path and introduces rproc_{start,stop}() >> in order to avoid resource allocation overhead. >> > > I think the result of the two patches looks good. > > But I would prefer if you splice them differently. If I read the patches > correctly you should be able to introduce rproc_start()/stop() and move > rproc_boot()/shutdown() over to use these in one patch and then in a > second patch modify the behavior of the recovery. > > That way if one bisects any issues to either one we know if it was the > refactoring or the modification of the recovery behavior. Yes, got your point. I will split it into two separate patches. Regards, Sarang > > Regards, > Bjorn > -- > To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" 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