Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3831427pxt; Tue, 10 Aug 2021 12:20:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyK0vqPJ+3e5qAvEHq7KXV56aJID3sX+Hu8w9qUE2BOmrzfg24ETlslKmnMT+xhSeKEEIXK X-Received: by 2002:a17:907:2bc1:: with SMTP id gv1mr108147ejc.58.1628623228348; Tue, 10 Aug 2021 12:20:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628623228; cv=none; d=google.com; s=arc-20160816; b=ZQ5a08ghznsSBAWHynhpUSCG43jdpBnlP0aE7uqV+L2x3XwHQz5dkrADwEKkjRlarx cEzJuTiD1WBT8dJ2+E97r0o68Fkh8wcmBMRccnKTu69AXA0rFqFlkHSWnPz5vIwnNfmu jBiR4mR1Q/nObX/5RbfHpPt16vZAYJvUqKaSOt+qPmW0CtYWjpU/pHajo/CARrk8T8X+ RRxpsJgGSYErc0Wx2apfEb7bWPbYvb1RdAgy5sigtp4VWEBrX6wDfof/jOzTCEZLTxSO YF30PrQmVq2qN+hLUkFToUYmA69YAgYxtIPkMpoEvKUuWShGbdFpG3WnCn0phPn/KKFU JeSg== 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=k1IK/wArPuofh/93ioTZO6H7LyceMDQimCWY2mD2ezU=; b=whnK6IzOXYgdSjcTLgo17ZRT6HUnd5ivsB6GL5M5FoAb+b6E/PFQCKXbUTioyeFPFV EpJ9eJlvKsW5wqpDcTBeXj1QnSJvY8ToiA//FYLpfYN150YV9H+s4XFGr47RhqfNRkKe FQmC9id6bLNodkDyPzho7bALg1iEwNZPl76VUbHnZlFaAEUGxrg/JqiJvRH5NtndfnAO +cCStyaj8gRNP92PgG8twX0h44APkYMOd8l3NfKg5x9TyioGsnCd3tXu4zMAaWtftN2Z dJyVvACxgoY+fL2qjV3sHx8/+PEmhPQoU+h46gR8jJqfdp3W8bIlkIn6akTF/3PjWeBh VBRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aMODdZG5; 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 m17si21132882edr.269.2021.08.10.12.20.04; Tue, 10 Aug 2021 12:20:28 -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=aMODdZG5; 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 S232336AbhHJTSj (ORCPT + 99 others); Tue, 10 Aug 2021 15:18:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47116 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbhHJTSi (ORCPT ); Tue, 10 Aug 2021 15:18:38 -0400 Received: from mail-ot1-x335.google.com (mail-ot1-x335.google.com [IPv6:2607:f8b0:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 742D2C0613C1 for ; Tue, 10 Aug 2021 12:18:16 -0700 (PDT) Received: by mail-ot1-x335.google.com with SMTP id r17-20020a0568302371b0290504f3f418fbso295395oth.12 for ; Tue, 10 Aug 2021 12:18:16 -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=k1IK/wArPuofh/93ioTZO6H7LyceMDQimCWY2mD2ezU=; b=aMODdZG5LqB7gNRAGk32Ef4rqadfXiaWqqB5wNgIvVygGukSPXzPIl+aBksSNVcB4l 72iehfYbtVacuS9r1/kMDqfr5k5oV3eo2H5QIlXmHNg+TYXMYdSFMMDikvuoz69lwBmj TjslM7UhSLrZC7F9E0cdlJeetb59gZRoG73Qk= 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=k1IK/wArPuofh/93ioTZO6H7LyceMDQimCWY2mD2ezU=; b=C4eg2xNU5hrzed+JIYSa4uN+KER38GnvXkueyniXLxP4vLza60/tZfsdkOA37WTzly jQLn4cS1T5bfM4qjBIN8mOv1AdSs0pAoLq92NNcKHZ1BhK0wpWY25ygp09N0y86WT4ev uITrHnbZMasWl//k9uaRZhLAGApiquB52YZrPM33DUxLmp/Grf8h/uSIBhPojGSHERoI Bi1XvNu5XiQm2ESY6Nbo9pqqCkPjjb6sihFLPXBGD/yOcCzuBeFmSndDGhJkdLYIPMzD 86kc/lkVsMqZ9ROsTmb8WXl7M1geG56Qn/hItpghbLmPwxFeWM0JxyaAiT+cLoZx13Ag US0g== X-Gm-Message-State: AOAM530yUUXC2XSluuV2yreGoY1Z0Mis2IZRse3TSDo5O1WKSCm469ot PV3ennIHcwFcVXNoKYuW9jiZIlwwqyNPze3ntPo35ukUF0o= X-Received: by 2002:a05:6830:44a7:: with SMTP id r39mr22153068otv.25.1628623094548; Tue, 10 Aug 2021 12:18:14 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 10 Aug 2021 12:18:14 -0700 MIME-Version: 1.0 In-Reply-To: <8009f5a1458468dbf0b7b20dd166911c@codeaurora.org> 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 12:18:13 -0700 Message-ID: Subject: Re: [PATCH V1 1/1] soc: qcom: smp2p: Add wakeup capability to SMP2P IRQ To: Sibi Sankar Cc: Deepak Kumar Singh , bjorn.andersson@linaro.org, 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 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.