Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp95743lkm; Wed, 8 Sep 2021 15:38:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwyuK6rTEx9CzKbwq1YKpLGyueZV3jT5z5OS0frCW15af3aVb+2lOKB15SZxI1nLmZEDuI X-Received: by 2002:a17:906:700f:: with SMTP id n15mr428532ejj.319.1631140727107; Wed, 08 Sep 2021 15:38:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631140727; cv=none; d=google.com; s=arc-20160816; b=zvL2bb6fAJl4jvVUeyCuttPRboyAvCSx9BsVrYqf8zJbfTXFXzd4jwkWK5l/L1Oema T/LekZqRIXa0oFpa+SIWArMtHXDgAqhsU0mwjF9XC0heHlWba/XpP7bo0LWi2V8m2+Cv S+J315xDMsYd7Qcs9OEMsOS+ypCXw8wI6HVuE1V3UGm9RKmTr6OdtYLbM63sr191zvAC OJo+Nv0WZ4qzPWQfG30y7nVVecN6rKfKUFgg3JL7kIXlM5MgW3JVHN+K6nBt2wd0gpVY f5efHh4gMIzbZouXRusRw+7tUc8i4Vudw7lkVseL96ryflDyqgz+6WXeC1uVCYlOu7PC GTUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=fJ3ihx4At7jgHYb3j4mYdDe9G4uE+v4pbaUUjca10is=; b=DqI4N1mrQ8n3UAZNyzoDbTHjZrek6DI8ZyBKRECs4lnSESNmzxNIHXnDO7C3v078BU yGdWbrgFkdZiT+JIZnaNArA4tgzVCJ7oY226WAeTZIFS3l7nQMYFDqRLYKy5shQT+4Tw DD8tsnCyXXYAZaSapOWt43kblY2pDXUFUfHcFUe0bc2MTVy+pJvkaEXMYSRaP5SGzufn WcxGURkjC8MMdRKGpdKNMF+Y0ajlVuh2+A9vB4QATKdT4fvafIDZWhuPiQNqiPbx2+7+ MG45qbW2wuCMhw3uEETWi/GAYE9MAU3pf8qEeS0CzFEpm/vgrxZ6aRU4pt+IOHjfr4x/ SE3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q75NbNDp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 he40si276033ejc.705.2021.09.08.15.38.18; Wed, 08 Sep 2021 15:38:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=Q75NbNDp; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-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 S242029AbhIHWi2 (ORCPT + 99 others); Wed, 8 Sep 2021 18:38:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238770AbhIHWi2 (ORCPT ); Wed, 8 Sep 2021 18:38:28 -0400 Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DA87C0613C1 for ; Wed, 8 Sep 2021 15:37:19 -0700 (PDT) Received: by mail-io1-xd2a.google.com with SMTP id j18so5364344ioj.8 for ; Wed, 08 Sep 2021 15:37:19 -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=fJ3ihx4At7jgHYb3j4mYdDe9G4uE+v4pbaUUjca10is=; b=Q75NbNDpBphtBp+PKFLy985Z4TTGj4ihZPMVooF8G2q+TppHtpDID51jmQAp5DG4jc ZGHcVuPWy0owAmiNaf/M9z4/2p+UBiaOdW6CiL1yfw3ia3UJiklAankiuBOipM5srSP+ bqi5n2KdIRWO/1X+cu2BWHrYtmVBrfhDHGbL0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fJ3ihx4At7jgHYb3j4mYdDe9G4uE+v4pbaUUjca10is=; b=6tigF1+pJ3E4HEun7uzZ9mo0RyLjkDiQQ82aBG4H18TU8634eVHG++joSek3lsxc8y FAM5+c4rsuzpuSYG6aXiBRpPJsxH/ZUeD44E16p59ZQzExr/9Un1IuM0SneOw7ECEY+M DZY7iuCWUdpGIzWbSSKEgb+pbC0G8LaY4/qjLcCxJ4Z3cYX0I/HjQP83xmNn3JX8DBQQ FKiLq9qhMvAkUnN4rXPRHIC8KYqwiO5phhXJCELDl2XNnraPxX5Gqt0f7A7Mh4bDHlbh JziuhjfbjUDm0RrHPn90LkncyqeXnHA+yK5VU9dqiekKGlRcPyYgSKMhKO2z8ZM1M2e2 RiIg== X-Gm-Message-State: AOAM530lm20cMz9WPax9CIyq9f8bJduiXO5sWAq53NOqZqUbmqqYSSoi ESD4T3LBJpfypp7Z8ow/0iqVBr1s0rj0sjaRIOtQNA== X-Received: by 2002:a05:6602:20ce:: with SMTP id 14mr478898ioz.204.1631140638724; Wed, 08 Sep 2021 15:37:18 -0700 (PDT) MIME-Version: 1.0 References: <20210905210400.1157870-1-swboyd@chromium.org> In-Reply-To: From: Abhishek Kumar Date: Wed, 8 Sep 2021 15:37:07 -0700 Message-ID: Subject: Re: [PATCH] ath10k: Don't always treat modem stop events as crashes To: Stephen Boyd Cc: Matthias Kaehlcke , Kalle Valo , LKML , ath10k , linux-wireless , linux-arm-msm@vger.kernel.org, netdev , Govind Singh , Youghandhar Chintala , Rakesh Pillai Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org The way I see this, this issue is happening because of a much bigger design constraint. On integrated(modem+wifi) solutions, if remote proc service is shutdown, it has a trickle down effect. It deinitializes the modem processor (which controls wifi as its subsystem) and the wifi FW. As the fw de-initializes, we see the Delete server generated by the wifi FW. The FW generates delete server qmi event and there is no way on the host wifi driver to differentiate between delete event generated from a FW crash and de-initialization due to remoteproc and so we see the FW crash logs even during shutdown. I would like to know what are Qualcomm's views on the design constraint and any plans to reduce the rigidity. Also, will the FW broadcast other qmi events(QRTR_TYPE_BYE for e.g.) during shutdown (different from crash) ? If so then we can utilize that event and then we don't even have to add dependency on remoteproc. Overall this change should fix the issue, additionally I have one comment below and would like other reviewers views. > #include > +#include > #include We are adding an external dependency here but since this is added in snoc.c (which is for integrated solution only), I can expect if SNOC is enabled, remote proc will be enabled as well, so it should be fine. Reviewed-by: Abhishek Kumar On Tue, Sep 7, 2021 at 12:48 PM Stephen Boyd wrote: > > Quoting Matthias Kaehlcke (2021-09-07 12:32:59) > > On Sun, Sep 05, 2021 at 02:04:00PM -0700, Stephen Boyd wrote: > > > @@ -1740,10 +1805,19 @@ static int ath10k_snoc_probe(struct platform_device *pdev) > > > goto err_fw_deinit; > > > } > > > > > > + ret = ath10k_modem_init(ar); > > > + if (ret) { > > > + ath10k_err(ar, "failed to initialize modem notifier: %d\n", ret); > > > > nit: ath10k_modem_init() encapsulates/hides the setup of the notifier, > > the error message should be inside the function, as for _deinit() > > Sure. I can fix it. I was also wondering if I should drop the debug > prints for the cases that don't matter in the switch statement but I'll > just leave that alone unless someone complains about it.