Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2983602imm; Mon, 28 May 2018 21:39:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrV8SP4yXvYY0bZb2DGclIU2NXlKGAOA6IGSZTipaqloza7mJN5xCpK4J/yMhslaptJ1w4d X-Received: by 2002:a65:4289:: with SMTP id j9-v6mr12530544pgp.136.1527568759042; Mon, 28 May 2018 21:39:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527568759; cv=none; d=google.com; s=arc-20160816; b=eSFAU1bS4nn+iOtYis1xKtTNNZ1q8IMK92s5KUCnyubptRkP2FIXLSMAMSDBEKBS0L E0hiEzfrfst63UtHPnIJtuxsSscE5h6KM2fAXTIo4BxaSlsNwm6Em8/eEQbjD9XRGZRT eCM3px64uDplb009ASdn4zSZatTH+h0+JV4JRY5hmY3LjIzOvd6Faw/OF+fNmBp7YSV6 bMnimkF/C1KOwgA+K/6w2QLJNA6n4BWonyLY+ze3BHyW6PluYipn3VQDsbXP2UYfO9Yj YDxmAX1VxIGJTILzxY6qNAVjTDDyVY2TIZpN4RVroxDF1E0JOxT+7AuvH7QxYAS2j2SV 4z4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=sQCSup/Yt1uZ8nE4/kV91PJfNYy+wpNRiS6qCSwbbJY=; b=RhWExh7DcBtWabB+eoMMjIdm1hEge/r3gxPvEnob+eDitQa6U/m0FKazfd8VTW7Jcb 3zrgZ35sUewfUEWOLjW+hgsJN9F+2/AjA0xqgekwl0zQncIOiHTzRyITWhPqwQpz8v/N Ip6WieL/tSiFjZB9sheEhjI9R3D50rgQccLW9bDwJtS1sxOXr1W0p40NLFTTwFT0thIu XrCjAntqKiO4+gd8umKSHqJcCfHz8w1Ea0FMBgmvXl3kXI7+vWGkGdEGonuZh2IlPyIy kmMazPqWsezmVBkoPR0K5btipXs0Cdx9fkS3cipwBhDHbWZ2Bi90T3RHvRELAxlEgYiB qERg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LbOEpY8b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t1-v6si15101562plq.341.2018.05.28.21.39.04; Mon, 28 May 2018 21:39:19 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LbOEpY8b; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751123AbeE2ETL (ORCPT + 99 others); Tue, 29 May 2018 00:19:11 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:36376 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718AbeE2ETI (ORCPT ); Tue, 29 May 2018 00:19:08 -0400 Received: by mail-pf0-f194.google.com with SMTP id w129-v6so6652252pfd.3 for ; Mon, 28 May 2018 21:19:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=sQCSup/Yt1uZ8nE4/kV91PJfNYy+wpNRiS6qCSwbbJY=; b=LbOEpY8bhdOWGLd2yjGTnryPfZ+M4Svx28Sbb0D4YojZ5/NMDxfZQW8viGsXTEWvhO aoY5aIS7Mf+yrqdulLxWwOt2AhHh0kb2q+sgD0xQsDh3xDA9X7Q8gI1LcHoj3DO8NerT zdJnL/2nmsCAjiIvBIktaeEyIoCJN8MAjVqkk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=sQCSup/Yt1uZ8nE4/kV91PJfNYy+wpNRiS6qCSwbbJY=; b=De5ByB7QGj2LoFvJmwhEL+MRfluS5OWrQElsPV1AAsK0yVm0ruwd1ZdvwyyB8PaH4j pfcpkVeTonOIBc+f+IslTu15qPsnwI39DxgGRsb/1TdUsL9Byj8HdBZhrfVAUtioGYto XRKlTCTHv1+HmeJy76HWJXz/hXMcO1kSQcX8brUM7Z+ls54RM+buKiFjTFxD+p7hniO1 FqjC+hGmTVFAOXBpJ3JNychg7uSFrPbaGMcStoOgYPEqeGGpDjHexOokqpVHO4MM+LWy qTEHGBcsq6CHgNZaGKiVvtWbEtnPWQynRrSXKnwQlmX/+dS3Hq/BHzpvMkBnb4Y4sJK9 pm9g== X-Gm-Message-State: ALKqPwc2b08wHER7QaAILDaQW3CHRv/u/z1BoeayF/qkuKczIi6BzZgw zP/ssft5D2YipSNBxZ00LUWDeA== X-Received: by 2002:a63:9741:: with SMTP id d1-v6mr12716248pgo.447.1527567547704; Mon, 28 May 2018 21:19:07 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id x8-v6sm63497030pfa.173.2018.05.28.21.19.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 28 May 2018 21:19:06 -0700 (PDT) Date: Mon, 28 May 2018 21:20:47 -0700 From: Bjorn Andersson To: Ramon Fried Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] remoteproc: qcom_q6v5: don't auto boot remote processor Message-ID: <20180529042047.GE2259@tuxbook-pro> References: <20180524192141.20323-1-ramon.fried@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180524192141.20323-1-ramon.fried@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 24 May 12:21 PDT 2018, Ramon Fried wrote: > Sometimes that rmtfs userspace module is not brought > up fast enough and the modem crashes. > disabling automated boot in the driver and triggering > the boot from user-space sovles the problem. > > Signed-off-by: Ramon Fried Thanks for your patch Ramon. While this nudges the behavior to make things work slightly better I think we need to describe the explicit dependency between the mss firmware and the existence of rmtfs. As our remoteprocs are essentially always-on I would prefer that they start "automatically" and not through use of the sysfs interface. But we're at the point where this is a real problem on 410, 820 and 845, so we have to come up with some way to tie these pieces together. If your patch suits that solution I will happily take it. Regards, Bjorn > --- > drivers/remoteproc/qcom_q6v5_pil.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_pil.c b/drivers/remoteproc/qcom_q6v5_pil.c > index cbbafdcaaecb..719ee96445b3 100644 > --- a/drivers/remoteproc/qcom_q6v5_pil.c > +++ b/drivers/remoteproc/qcom_q6v5_pil.c > @@ -1133,6 +1133,8 @@ static int q6v5_probe(struct platform_device *pdev) > return -ENOMEM; > } > > + rproc->auto_boot = false; > + > qproc = (struct q6v5 *)rproc->priv; > qproc->dev = &pdev->dev; > qproc->rproc = rproc; > -- > 2.17.0 >