Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp4132666pxt; Tue, 10 Aug 2021 21:27:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzUpYLUuCelBwPYPlvTks4EjuR/+4nInqCcKR9r/uwyBngD4AMYXV2BG1Uj9woxn3XOzW6 X-Received: by 2002:aa7:c647:: with SMTP id z7mr9116959edr.52.1628656060056; Tue, 10 Aug 2021 21:27:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628656060; cv=none; d=google.com; s=arc-20160816; b=ERBm4gJIjvaVGQZk0z/M1SDHd14peWCnxFGNiiV/CnM77PEUYYgr8yAB2Ssps/qs25 MZzp8sQ0EgXhnlS46TTNd4onKPAQjHwdG0YkHzZnwjy18G6xfwaHGIgJw3ERNFy20Nxf Qzm+954S5MSiTD05DLW19PkOzC1JBolGworq4JdeI1rSGcsLCllzBBrghqJOLl8XSY2s NYX3iWPkkeNxcOyIj97UymGgixi6bjs/3vx3tbxNmhE8umU+u2KO4UPBgacGcXSg9tVM fecnyBmOjKJE3RzSDND6UDAIJ65KrWL4jms/hH9f0HjlW9CUPISDbM+2BksDW+RX0iii F9dA== 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:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=M1sSmgNNoQtvHtZ8PDHG8m3seC8ac1MZGKZ0FeNvlRE=; b=Zi4usZJIpp8/6XnNCR4qrQqOSwUhYtmMq2LHn3syifDKQTIXYofaBQn3BCK34IGlrm IyLOhvKPUT5DjjCdCi1ITnU7k4Hb3uAieDQ3FHM9q5sUwOm/YjNpJ0zC/k/ndUARopLJ jRm/rx5t6emM7IGycs1yfmWc+m3TdUoQ4/bTWTNUxQfEQ6wyZ/C9i7KobOdjPQAr9MT4 jY5+UtYxtxNDIiJdxKJItp3d0OmF39jOKJtj3CodthLdhvgES9wxbfm9M2SUuAq8VMEJ SyRBp+BiyBdTSs4QQCfKG4O/b5QpA5AzZCBubq93Ae6VXL6QdxGvIfHm2pXU6bs/2uqU LOqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=QjfTC2Hg; 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 v10si23597124ejy.710.2021.08.10.21.27.15; Tue, 10 Aug 2021 21:27:40 -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=QjfTC2Hg; 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 S229586AbhHKEZ0 (ORCPT + 99 others); Wed, 11 Aug 2021 00:25:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbhHKEZZ (ORCPT ); Wed, 11 Aug 2021 00:25:25 -0400 Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44090C0613D5 for ; Tue, 10 Aug 2021 21:25:02 -0700 (PDT) Received: by mail-oi1-x22c.google.com with SMTP id t128so2755672oig.1 for ; Tue, 10 Aug 2021 21:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=M1sSmgNNoQtvHtZ8PDHG8m3seC8ac1MZGKZ0FeNvlRE=; b=QjfTC2HgE2XYDjQKSruFloDLhFtwBgKdO4NJ6MdiAKvtLwie8egxASVNDwDSfzVyv2 q6mWjvHWSb7ckfpuJSiEw/heccYf1aZLWU/1Tbhqg3QhOcadFbV2J9g1hvE1reVygIPr LS0N9RRDRp4FTw6qpgYlkcjrAw2qPUl+pAUZY= 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 :user-agent:date:message-id:subject:to:cc; bh=M1sSmgNNoQtvHtZ8PDHG8m3seC8ac1MZGKZ0FeNvlRE=; b=Fzrup4bkZO+znLuAg84QXssxxJBrcukqwAUxn6BQVCSmvl5K0YU+JKaCREgQkQWwlf M+Ckr5MtXyKNJP4FxNaF/mDTtAaiZZJdy///lr+TZfKPG1VGy8vlYkofRoxCZcgrr2YZ wmfVBpAhyxx2Dm4C2QgeZVeBqlW/LiNl0zSum2C78FLNgjqbZkxSjJc7H3Dyp7vdetMJ eT6qVpJD2wVhQlnZM9DJEylhy1e1XgPpalbanu63wv9Cjsigqwg+BtRE3nvpJLYDELE5 tWojlzo+tze87TGSBCppSbUaTs+hUb4icZJnqt5IWqnwTTvyVzOqrKvxBGuvcMrBwxIO 6ZEA== X-Gm-Message-State: AOAM533/TJowhLAzpTGRkihOQCBhMDvwNCCNCbSJdzWzaPUgysQAJhpJ 8xGeM54qHZ3KBZBiOzWaDmAWUj7UyrAe33ZUVO80kA== X-Received: by 2002:a54:468d:: with SMTP id k13mr6077146oic.125.1628655901625; Tue, 10 Aug 2021 21:25:01 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 10 Aug 2021 21:25:01 -0700 MIME-Version: 1.0 In-Reply-To: References: <1628180254-758-1-git-send-email-deesin@codeaurora.org> <8009f5a1458468dbf0b7b20dd166911c@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 10 Aug 2021 21:25:01 -0700 Message-ID: Subject: Re: [PATCH V1 1/1] soc: qcom: smp2p: Add wakeup capability to SMP2P IRQ To: Bjorn Andersson Cc: Sibi Sankar , Deepak Kumar Singh , clew@codeaurora.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, Andy Gross Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Bjorn Andersson (2021-08-10 16:11:10) > On Tue 10 Aug 14:18 CDT 2021, Stephen Boyd wrote: > > > Quoting Sibi Sankar (2021-08-10 10:24:32) > > > On 2021-08-09 23:28, Stephen Boyd wrote: > > > > Quoting Deepak Kumar Singh (2021-08-09 04:05:08) > > > >> > > > >> On 8/6/2021 1:10 AM, Stephen Boyd wrote: > > > >> > Quoting Deepak Kumar Singh (2021-08-05 09:17:33) > > > >> >> Some use cases require SMP2P interrupts to wake up the host > > > >> >> from suspend. > > > >> > Please elaborate on this point so we understand what sort of scenarios > > > >> > want to wakeup from suspend. > > > >> > > > >> Once such scenario is where WiFi/modem crashes and notifies crash to > > > >> local host through smp2p > > > >> > > > >> if local host is in suspend it should wake up to handle the crash and > > > >> reboot the WiFi/modem. > > > > > > > > Does anything go wrong if the firmware crashes during suspend and the > > > > local host doesn't handle it until it wakes for some other reason? I'd > > > > like to understand if the crash handling can be delayed/combined with > > > > another wakeup. > > > > > > If the modem firmware crashes > > > during suspend, the system comes > > > out of xo-shutdown and AFAIK stays > > > there until we handle the interrupt. > > > > > > > So you're saying we waste power if we don't wakeup the AP and leave the > > SoC in a shallow low power state? That would be good to have indicated > > in the code via a comment and in the commit text so we know that we want > > to handle the wakeup by default. > > Sounds like in a system without autosleep (or userspace equivalent) it > would be desirable to leave the SoC in this lower state than to wake up > the system handle the crash and then just idle? > > But leaving the system in this state will result in you missing your > important phone calls... > Yes I think we should just add a comment to the code and commit text and move on.