Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp972880iog; Thu, 30 Jun 2022 14:09:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tUE44WkzSjJTBW6voWluG6XGZtWFXFEbnQrXmKl/iDE7gNTOjXplGh1ZZirTLndBNGC5XW X-Received: by 2002:a17:90a:b10f:b0:1ef:44c9:16e5 with SMTP id z15-20020a17090ab10f00b001ef44c916e5mr3421664pjq.68.1656623367568; Thu, 30 Jun 2022 14:09:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656623367; cv=none; d=google.com; s=arc-20160816; b=Ak3kpMeW6WI2NfMF2XSU70w9u0k3rkyJppK1SPTC/Z9hslHezDiBELOaZRNNREzDsB X4Yiy/HqxJDkQnJrl83H548jHGcbBburxkefZTrpF32c8WOliTp0jO24U7OY8I2nGEE9 wqPS/qKrDc2xgGF12JJcehodK24189A+01DDThYeH2+VipegWNnJ0Bh73Tfuqw6po9tg QgsVnRU6aW4Rdf7M9SO68H51MHNbIHDudIq8dpbBEfnfri+KtqeSkkfTLC9xrpixBQnn j6v8loCpCcMr+ND7+MxAjs9Lx9nsmLOoU8pRBjYmPBOeaWdiBfSBZj8fYZaZRP3XbVWP PLFw== 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=6sxgvUgX/lE05DRaRDrj2PDjJhleRoRRDvjJlfkAEzg=; b=jmA0+ybdjiCDTsA9g8XmKJ3uKw35VjmCsBTfAWS6eh+eEw2YM/go0wWveRtum9EJ3f oltRjBWCpi16q+r/dqPv1Y3P/Y0EMs3QqRm87j7Jo7TKH8eiSj8r3/CtvT/NFvXrtSjc FMrRzcclemkfTcGqN8jvngqIWDbhHD0SP/5r70US8p7EJ0kh98B1tPJp9R2pGo8Ckoq4 JtU4ZzMJnueXzNPJsokhwwrVola7a8JUGybWplHRsPFFcILSI4TCYc49N0wCAHegAxEl rAREYhUnr5QHl8qbpVHVa6frwIBC0+00F4uXMo+tatQeIEuQWJUjr7C+4DmtYoSXxKsZ 8aow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GZYjjHKf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t80-20020a635f53000000b003fcb1ba3c4fsi7678775pgb.313.2022.06.30.14.09.15; Thu, 30 Jun 2022 14:09:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=GZYjjHKf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234770AbiF3Ul4 (ORCPT + 99 others); Thu, 30 Jun 2022 16:41:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229838AbiF3Uly (ORCPT ); Thu, 30 Jun 2022 16:41:54 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45FB85596 for ; Thu, 30 Jun 2022 13:41:53 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id k22so267698wrd.6 for ; Thu, 30 Jun 2022 13:41:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6sxgvUgX/lE05DRaRDrj2PDjJhleRoRRDvjJlfkAEzg=; b=GZYjjHKfVCa+9zANi+gEoiM5SSOKOGDkVkDe96gkOxIAHoB7CZIO/YgR4LY48B9PT6 ZYIxvmRzX9/oZ9OVThsoJ3x6/jtWmvKCmj55r7O9XNary8Z+YA71JG1/7w2y1jswy8Fa DUNp5eCuf3t1wycrDiBa8yTy/Qluga4rZcDmiX8XJi/PepFFuBWfc0HRW1jeSfA7pTiy 1fHCyUP398gvCkEE1aqi0roDUYpIMNQrTPjMwCLMvEvJU5WtHddYn0FmQwrd1coZiTCd 843Vj2wDV01tIemZ6LaCV8aXVHynHFeU90CWZmsrm2zQTvIE8/lsZPr7gcUPBKWd6isB rdCQ== 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=6sxgvUgX/lE05DRaRDrj2PDjJhleRoRRDvjJlfkAEzg=; b=uRyZB6FIQMbkkuLLMdTBht18+oODh370/ih/xOX/zrHMbQ6luDiVhm3dg0iAa3ymPn kw56zCmMzQhBGE+3Rr7HqdwLDtdfu7S6+OpyRlJUNR8bzLBQ8j0UM48fo3WK5syyGedE vqcYfowB+rynidQQmDfCARbPySFwfLGBcr9X/O3imB9704xqymIG+rdoHKmucjkvwpIz 8xoqkKQWoMCMRRZhey6CUEITK5UooDPHrYpbVmmeJL3xr3qfXlZx3kzLwy+QD42O3VBT FVQBjw6gbgfA1cMTSqPmQ7lsT8a6I6GvrlPoYbTp8wDT6xe4VJLfohEmp1WpLJmsy4hO ZLGA== X-Gm-Message-State: AJIora9e4Ku0kQqCSvDt4LIk007/YZBEqgHSz2HkX8lenVFxgJ9V9xjs dTJwlCrGk/ozAswJQMiqihuuVMVYqbcJSPPt/fNq9w== X-Received: by 2002:a05:6000:508:b0:21d:4105:caf9 with SMTP id a8-20020a056000050800b0021d4105caf9mr3367565wrf.699.1656621711704; Thu, 30 Jun 2022 13:41:51 -0700 (PDT) MIME-Version: 1.0 References: <20220630191230.235306-1-kaleshsingh@google.com> In-Reply-To: From: Kalesh Singh Date: Thu, 30 Jun 2022 13:41:40 -0700 Message-ID: Subject: Re: [PATCH] pm/sleep: Add PM_USERSPACE_AUTOSLEEP Kconfig To: "Jason A. Donenfeld" Cc: John Stultz , "Paul E. McKenney" , Steven Rostedt , "Rafael J. Wysocki" , Christoph Hellwig , Saravana Kannan , "T.J. Mercier" , Suren Baghdasaryan , "Cc: Android Kernel" , "Theodore Ts'o" , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Len Brown , Pavel Machek , LKML , wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-pm@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 30, 2022 at 12:49 PM Jason A. Donenfeld wrote: > > Hi Kalesh, > > On Thu, Jun 30, 2022 at 07:12:29PM +0000, Kalesh Singh wrote: > > Systems that initiate frequent suspend/resume from userspace > > can make the kernel aware by enabling PM_USERSPACE_AUTOSLEEP > > config. > > > > This allows for certain sleep-sensitive code (wireguard/rng) to > > decide on what preparatory work should be performed (or not) in > > their pm_notification callbacks. > > > > This patch was prompted by the discussion at [1] which attempts > > to remove CONFIG_ANDROID that currently guards these code paths. > > > > [1] https://lore.kernel.org/r/20220629150102.1582425-1-hch@lst.de/ > > > > Suggested-by: Jason A. Donenfeld > > Signed-off-by: Kalesh Singh > > Thanks, looks good to me. Do you have a corresponding Gerrit link to the > change adding this to the base Android kernel config? If so, have my > Ack: > > Acked-by: Jason A. Donenfeld Hi Jason, Our latest supported kernels in Android are based on 5.15 so the config change isn't yet needed. Once there are newer versions with the CONFIG_ANDROID removed I will add this to the defconfig. Thanks, Kalesh > > Jason > > -- > To unsubscribe from this group and stop receiving emails from it, send an email to kernel-team+unsubscribe@android.com. >