Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1470884ybg; Tue, 2 Jun 2020 10:49:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzD08M7+FkubtoYZm84J8GOBOxDmYDg7XuE0wl3JWKu89VYrLcx1lpyZX/UqQ0dpegvec+b X-Received: by 2002:a50:d7c7:: with SMTP id m7mr28333053edj.101.1591120183606; Tue, 02 Jun 2020 10:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591120183; cv=none; d=google.com; s=arc-20160816; b=MZVxeHIOuCDZTSapVuZ1C7jhpLpgXY7/wsFFD9IQz4Vc2sN5nKIA0/va9iMgY8WHGe A6ugOyrbfYsh/NHArD4WxJebpEe68UC+d+nlqrnY7rZkqbV9T2Y4d7nhegN2n0mJZPIH b9rhOLyA2ETTWLf9nmSkwz498heUyaUs/2JAVTdEhYvGsn+FXImtHxrpipOksyNncc2z Tmci3sAcKlcth3MHeI57QXLa5ROhpOrLLlIRIceXFuayll88e4VF7atvITcPYU0/8Pci Ty3MloElihwHYskjf1y6iKIwXMYSMRLu1EiXeWPauehO03RxqT9YU+Z92OrfGJFop1R0 14fQ== 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=xDOkvD58QA3f73cYIc7o2aDM+rMQU8YmPi5IxgN7Hho=; b=VuU7+yeHvqLPoE/FF0w/hhA4Pw3y9XGdoknThXjF/6WYi8YZt3iU6hmac3YxhH0Yom AdvQpomTtFqBBOiosPsHPp4sij8NeF4zA/eFiebukTWkEpyj8Ghcp3dLq7TAv/fbqeOT ccyrwUpS7Zm7H/5m22EK385Lq7aKoILdN47Vtu4m0InVtirdvU6lCEM1A4NkxwRDy5+x aQmeiGx1ZoqXjJyvvzMifqa+kVADiZHuuWk6ynW5uWFxDjPo5vgQdn4up8BzJ9a4mVER vRAc1EyD8LURJxap8lExinzI7+rrZUAhDj0aKiryvhjIqLZU5SEnugowThXkYXKUdfeb ljnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TNRHxycB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id gw6si1921167ejb.137.2020.06.02.10.49.18; Tue, 02 Jun 2020 10:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=TNRHxycB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726937AbgFBRos (ORCPT + 99 others); Tue, 2 Jun 2020 13:44:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725969AbgFBRos (ORCPT ); Tue, 2 Jun 2020 13:44:48 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 778BBC08C5C0 for ; Tue, 2 Jun 2020 10:44:46 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id r125so6658289lff.13 for ; Tue, 02 Jun 2020 10:44:46 -0700 (PDT) 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=xDOkvD58QA3f73cYIc7o2aDM+rMQU8YmPi5IxgN7Hho=; b=TNRHxycBot0rD0InqvB135mTIELgu7+AfcZ01cygEWLmi46edoYtx+NiaAEqrd9UeM 4Impt+STyojDEymNK4t8rvxknB3iG/Afk9VeA8WjfZA931hRWXa5d9ZO854oNzazPVdE aNQxQ6CYes2q3MOZUIiiMJgnYPyJtydYwIXqc= 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=xDOkvD58QA3f73cYIc7o2aDM+rMQU8YmPi5IxgN7Hho=; b=MFL/MFSKKsvo9Memtr8N5o2u4Yzj66T4zP7Dryp1O8Mw1BH7ossxibbxE0201mNnQB ipPacLVHeUCH+klUV71aiKjPBF3w90N0hGs7F2X6qqab54c+ic8HhZMvxiT0IQGDes9Y BrCCvpi4seOR3evk5D5vieoOUgY72KW9jHKfKhl1L/4bcbWNRnrLr8SE2/+71/rd9iYv 1pDFJxlQ2lZhDmtFSmwqwUhDM/wSk3RtkwhZlHWqQEP+QuNIvi1+qYNqKPrhWVsfLA95 L+Vy1jHWuLsELg58CuguvSEkSwRYEOcW8y2f/cffEq0iEXQZDNryh0jXtQQszRBWPVKu CPoQ== X-Gm-Message-State: AOAM532XZIYElQdbraybgr8RjR1FfZDPyZVITCNnXjWnmPH81EOe0Kcc XY5UCUz0fy6W0o24NEddXGNfJOS/T5c= X-Received: by 2002:ac2:5a0a:: with SMTP id q10mr276982lfn.142.1591119883705; Tue, 02 Jun 2020 10:44:43 -0700 (PDT) Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com. [209.85.208.178]) by smtp.gmail.com with ESMTPSA id u2sm666022lji.120.2020.06.02.10.44.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 Jun 2020 10:44:42 -0700 (PDT) Received: by mail-lj1-f178.google.com with SMTP id b6so13690814ljj.1 for ; Tue, 02 Jun 2020 10:44:42 -0700 (PDT) X-Received: by 2002:a2e:a211:: with SMTP id h17mr113665ljm.289.1591119881856; Tue, 02 Jun 2020 10:44:41 -0700 (PDT) MIME-Version: 1.0 References: <20200602163257.26978-1-sibis@codeaurora.org> In-Reply-To: <20200602163257.26978-1-sibis@codeaurora.org> From: Evan Green Date: Tue, 2 Jun 2020 10:44:05 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] remoteproc: qcom: q6v5: Update running state before requesting stop To: Sibi Sankar Cc: Bjorn Andersson , Andy Gross , linux-arm-msm , linux-remoteproc@vger.kernel.org, LKML , Ohad Ben Cohen , rohitkr@codeaurora.org, stable@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 Tue, Jun 2, 2020 at 9:33 AM Sibi Sankar wrote: > > Sometimes the stop triggers a watchdog rather than a stop-ack. Update > the running state to false on requesting stop to skip the watchdog > instead. > > Error Logs: > $ echo stop > /sys/class/remoteproc/remoteproc0/state > ipa 1e40000.ipa: received modem stopping event > remoteproc-modem: watchdog received: sys_m_smsm_mpss.c:291:APPS force stop > qcom-q6v5-mss 4080000.remoteproc-modem: port failed halt > ipa 1e40000.ipa: received modem offline event > remoteproc0: stopped remote processor 4080000.remoteproc-modem > > Fixes: 3b415c8fb263 ("remoteproc: q6v5: Extract common resource handling") > Cc: stable@vger.kernel.org > Signed-off-by: Sibi Sankar > --- Are you sure you want to tolerate this behavior from MSS? This is a graceful shutdown, modem shouldn't have a problem completing the proper handshake. If they do, isn't that a bug on the modem side? I just worry this will mask real issues that happen during graceful shutdown. -Evan