Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3277045imm; Tue, 29 May 2018 04:32:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr93LcE47N1iT9zUCOz1lvq+BsyomDPy5qWKF1kUTT4lm0uzof7jHHKPflpteBm3tM08lSh X-Received: by 2002:a63:6742:: with SMTP id b63-v6mr13561154pgc.54.1527593547514; Tue, 29 May 2018 04:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527593547; cv=none; d=google.com; s=arc-20160816; b=P/7gQ4ioSSeNX9VHsGx8i0TO8P+bfutUpcUMgk+Wg3ZaSGP9C4swY3OuwgLvrZWetJ OHHtgOQ7bSrtmTrrLe2xZm+kU1f2qf4duqltB8VvikG10MTHC0thg9I9LESKmQB+1B3U JcnP5eGKGWNVi1PfUW2eKYS3Sw83BnvI7Rx1ZAO9Bqn80LIBSq3FwPGKMV+U6UjWeK3j pzmJFCs8Hw+6AA1rhIqM1Z+PDQxW5f+E60WpbJLMYcwDPUtfFJ0JfXnHXCyXtFcsdtn7 38XfeRlESdc8vtYD59088M3t8ceUzMgFT9mWmk55Mrm0FptE+9mS2w8wwk42cVk/5Kwh Q/wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=ygLaGnnGWtxjJHf2MSYPDXCL7RlFaubzOki+hvtj9g4=; b=LWU5cVbvGToYC4qQ9NIBM1wVdvG/UofbaC2SMm0ctM5KEGIvUZ9WEQSpuB5h2zwtgq vZOng2PwTDkgL8neY+O7XhlvWwnhRb5GH3SCBsKzeaJGWiwps+iPY6ub1RdlQYsxSmqH fKOOJf86XeNRIBBI8jvqkRaj3z+JUz3eYkLifnyHkjct0UALFkoNhEp/HB/mh4nCtVHZ lI5648vDG05TwE3unxOFRshS2U9uHlEbe2Gy/s+zQ/4g2Be2M4FjiOiMc1VloLCP/dBI MZf7+FLQzcTKyorNP7bW/tSvAldMYis9r56CJgqGotO+6lfn8vs74hyAGus6/V8wK2gS wgCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ax4nTHXG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4-v6si25644500pgn.691.2018.05.29.04.32.13; Tue, 29 May 2018 04:32:27 -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=@gmail.com header.s=20161025 header.b=ax4nTHXG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933343AbeE2Lbt (ORCPT + 99 others); Tue, 29 May 2018 07:31:49 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33501 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932949AbeE2Lbq (ORCPT ); Tue, 29 May 2018 07:31:46 -0400 Received: by mail-wm0-f67.google.com with SMTP id x12-v6so47459607wmc.0; Tue, 29 May 2018 04:31:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ygLaGnnGWtxjJHf2MSYPDXCL7RlFaubzOki+hvtj9g4=; b=ax4nTHXG6dP5lhCW8fOEvnKPsDk9kvLseHDY2Evo0XhpQ2e8wBh43STGmlev+9DtCG 4TClw756AvpT5vlXKgD5cpfhkVoC7tOytMSBkEHz2UTE/lygduTUWgoq07WlZIqiskdN bZVay2uEyw+8AUXQKNfNIbWVN7201yEKKLTUQFF6upIcPpqhh8cRgwmoYTvDWHPeChS2 GB48J/x8by0F/YX/ODshyUdejmnY4NqIYquz2HBQm8oMGH0ZJrX1TwxtlqWfWN71+E9w 7fa5whdIzTsz7eHTWJsvz2XhVDoQiwvQCMfbNWrKMmPK84V628jYgmeBdb3jkN6NjExl +c0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ygLaGnnGWtxjJHf2MSYPDXCL7RlFaubzOki+hvtj9g4=; b=Mgq8USsA5CGqEFhUqDdPjmpmMsyHDWrsU9CHYAlfTRbGihOkvpP+5yf44cmRtkTWV5 ev2+CB/oqSvfjqV1u/zHfMMD7FqZ73V8Nm87NLks7J2nGJcvXH4T5YsPd+27/l9kkY7z 8tBWSqswkQHKGK79xw5cOm+9RvknIac/WE9NccXh0HmxZT/ari0y3OR+kfgj8+QTYqWF GIEa7NN05WpBz82vjw6NhH6PEWF/ilblm4O2bzoMGXanvC7aCDNwji6yBq7Ks+RaJHH2 3FdJ/rsZMK0oLKv1fK0kTy2cc3w3QE/aOGnhxfzNBuLAN9YBWBl948MtZ5YFpUVWyZGY Askw== X-Gm-Message-State: ALKqPwfRvfiTIYjt0RFtHm8BR0klS3KBfDfNJ+HRbViCF5vNlyuXCFBl a0QoHkyJ7Z2kkWscNdDfbvjP7I3bVvbKJVX6Xp3klz9E X-Received: by 2002:a50:97b2:: with SMTP id e47-v6mr18877571edb.58.1527593505168; Tue, 29 May 2018 04:31:45 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:b3b3:0:0:0:0:0 with HTTP; Tue, 29 May 2018 04:31:44 -0700 (PDT) In-Reply-To: <20180529042047.GE2259@tuxbook-pro> References: <20180524192141.20323-1-ramon.fried@gmail.com> <20180529042047.GE2259@tuxbook-pro> From: Ramon Fried Date: Tue, 29 May 2018 14:31:44 +0300 Message-ID: Subject: Re: [PATCH] remoteproc: qcom_q6v5: don't auto boot remote processor To: Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, open list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 7:20 AM, Bjorn Andersson wrote: > 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. Yes. it was tested on 410, and it did the trick. > > 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 >>