Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3453446imu; Fri, 18 Jan 2019 10:37:47 -0800 (PST) X-Google-Smtp-Source: ALg8bN62UFxTpdd8K6U9ONUvahndtw85DQBr8AD6Sm2Cu2NeFa06weTtZDRaenKYWeJx0+0b+4el X-Received: by 2002:a63:2222:: with SMTP id i34mr17504634pgi.83.1547836667222; Fri, 18 Jan 2019 10:37:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547836667; cv=none; d=google.com; s=arc-20160816; b=UoTOyc7cjFiCA1iG+Izpmr2cBy/fMvGFcpGXDv49dRPngFR2ZFDZfeWZ5d+EXQTnbb ONEmkQCtf8mpeHcNm5cPCsm2liIojHazRfATTJwSOIKX5TL3+fYUrXcTcC5+ewAOm+kN APta83xY1eDABkoChwG1lTe9hfb4Dl0R/vfDavL/bm0NSzaoWI/WBkZLG7KIx5kJ9TDq MFr50mz8QhhCN40qAPzCck0TAVmw1kqKlfYf1zxrmxMt5W1ThVKJldx6VygFgvYiOfFW MEq0RqCYqCHtHJmSVdowqVvPKTw0quW10BJZodP/sx9kDEvcLOhRfHPrBHhxKOVsR6aG 5Q8Q== 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 :in-reply-to:references:mime-version:dkim-signature; bh=CItWeHWWByxFWnGXRb6MFu2ErIkEjXZGbtdNjlnB0LE=; b=u8zoxv/rUYZNZDBK5ZaYFnTYM8dkObsM84oDEqoeVaGNdnylImKUHcJ7CArTFIzx1r my9hZBewn2J1nAcMyZydz6AYbazfezJJ7sR7+jSbaICBgr/nUPHWehWdK4t54vmwhvqN 1Q0+4u/vIOmInEkinoXZWW8OMOOxKk8NN0ce5MlU0AFD+5dyvA0rtoEji+cnCsmWRCVe 0mE+iSq3RFKjT5aQ1q++RJvc9S2SWTrfkfQvO/4yQA7GPmLRBjM7wNKxyZUNvNJZtU5O l/qwWtFEVQhoxE7hvy2k+gH4SuylzibFI6n9uOw8Pjai7y/7nNd372yFUFbiJt86GmY8 bz0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="buGM/GmJ"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si5353056pfb.237.2019.01.18.10.37.27; Fri, 18 Jan 2019 10:37:47 -0800 (PST) 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=@chromium.org header.s=google header.b="buGM/GmJ"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728659AbfARSgH (ORCPT + 99 others); Fri, 18 Jan 2019 13:36:07 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:37444 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728288AbfARSgH (ORCPT ); Fri, 18 Jan 2019 13:36:07 -0500 Received: by mail-ed1-f65.google.com with SMTP id h15so11920150edb.4 for ; Fri, 18 Jan 2019 10:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CItWeHWWByxFWnGXRb6MFu2ErIkEjXZGbtdNjlnB0LE=; b=buGM/GmJBy8BLI71MYPJ2FgJqBKpkCGgBHOSiq0L0NBXwPZ8Neq2JAYUOccKx8Y0BG r+eMPxaf2zX+7/T2Q5AFtxQNJV7JQlulj67oAJMvhvVIu7VLSSIAHOclmm3641HXfCob 6GWbKBOu7BXOy86OBDPMAWdUfVP0U+BOAW/iE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CItWeHWWByxFWnGXRb6MFu2ErIkEjXZGbtdNjlnB0LE=; b=TSmbTq1AnsKJLywu8LGKsQBQraDggyQtj5Ph7YLHbZimRpf5H5/0wvPrxuVJIIwqP6 2t2v9fVdhTBv0gpdrykY4QTAqmS14dMX5aa34Y71NsB+oR8RDmahlBry6AIm1izDjiSw W78QA4egvfEqePvEOWkk8roP0orHGt6HQjB+xcG0huLDsjXc7Fo/m7AXMAizSkLPY2r1 CBxZ6TaE5J+pzyd4k+s1+yke7/uBVYTaZa9kdw9hNsjGvNpiFaPE/SWuQAebia02PkyN rDe640b6b9OhRntDaG5VJiKyXZy5g71OGQnD5Gnipy0zL3PHdU5Mfx4FGp5wwC6qkutz 4ywA== X-Gm-Message-State: AJcUukcjqXcZRlRSkjOOn3psgE46+k7tO8SOMwu02bWC8xEyHJ3rjzgH NUB7pBvyIgAOFct687q9rwToxIfty7g= X-Received: by 2002:a50:d085:: with SMTP id v5mr16767661edd.61.1547836564364; Fri, 18 Jan 2019 10:36:04 -0800 (PST) Received: from mail-ed1-f50.google.com (mail-ed1-f50.google.com. [209.85.208.50]) by smtp.gmail.com with ESMTPSA id 24sm7445999eds.97.2019.01.18.10.36.02 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Jan 2019 10:36:03 -0800 (PST) Received: by mail-ed1-f50.google.com with SMTP id o10so11865226edt.13 for ; Fri, 18 Jan 2019 10:36:02 -0800 (PST) X-Received: by 2002:a50:d2d6:: with SMTP id q22mr17241088edg.121.1547836561897; Fri, 18 Jan 2019 10:36:01 -0800 (PST) MIME-Version: 1.0 References: <20180524192141.20323-1-ramon.fried@gmail.com> <20180529042047.GE2259@tuxbook-pro> In-Reply-To: From: Brian Norris Date: Fri, 18 Jan 2019 10:35:50 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] remoteproc: qcom_q6v5: don't auto boot remote processor To: Sibi Sankar Cc: Bjorn Andersson , Ramon Fried , linux-remoteproc@vger.kernel.org, Linux Kernel , linux-kernel-owner@vger.kernel.org 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 Thu, Jan 17, 2019 at 11:04 PM Sibi Sankar wrote: > On 2018-05-29 09:50, Bjorn Andersson wrote: > > On Thu 24 May 12:21 PDT 2018, Ramon Fried wrote: Whoa, bringing up a 7-month old patch? Nice. > >> 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 > > After experimenting with in kernel solutions for > three revisions and observing problems on graceful > shutdown usecase, What exactly were the problems again? e.g., what were the deficiencies with having the remoteproc device listen for the REMOTEFS_QMI_SVC_ID service again? Sorry, but I sort of dropped off on reviewing that stuff, and now I see this. I'd mildly prefer something that is actually automatic, but if I'm missing some aspects, I'd like to hear that. (And, I'd like to see them explained in the commit message, if this is ever to be merged.) > switching to controlling the > remoteproc mss through rmtfs seems to solve all > the known issues. How so? It explicitly does NOT help at all if RMTFS crashes. Because...who's going to stop the modem in that case? (It works if you automatically respawn a new RMTFS daemon, to toggle the modem. But that's kind of cheating, and you can do that anyway, even without this patch.) On the contrary, your patch *would* resolve that, since the modem would notice when the RMTFS server goes away, and it would stop itself. > https://patchwork.kernel.org/patch/10662395/ > > we should probably get this merged in, now that > we are planning to start/stop mss through > rmtfs. Sorry, who's planning to stop mss through rmtfs? Did I miss something? Brian