Received: by 2002:ac0:c50a:0:0:0:0:0 with SMTP id y10csp1055740imi; Fri, 1 Jul 2022 02:00:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tb+EqBQ26DGtKhnp8CJbCIBZO0IQs1EJUGx3aEA0Ej0sQLAqsTdmjSARqZYYHAhxxuyqOO X-Received: by 2002:a17:907:6d92:b0:726:cbdd:465e with SMTP id sb18-20020a1709076d9200b00726cbdd465emr13629192ejc.155.1656666054414; Fri, 01 Jul 2022 02:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656666054; cv=none; d=google.com; s=arc-20160816; b=Nu8oLOAMib73xoQTRrXFFp7ErfTDohouwy+MLbm2ike4qZlpLjVPlTPp7/f5swEqxg 1SU+ZlyvBep+Ys+4pmJuaQB/JX7X7lVNHEoLaWf1Tx7Fi2ZN/pei2vRwSOmIxh0LWVSp yOSAxgp2lHxWLUpC31BNZfM9/h9Ww1q9FzCmEPNq9SWluU0ymw3RBVPFWt7hKgv9wl+v wnVDkjoWIKyNrSxGitR1EBJL68wUhdtwQQVyTMxQDCLwIr6T4+MecA92TMLONuziGHhC awvsSzP4kyTwxS6OhNgm28w0bQaoYhvyn/CS/5hcyhYTL+Ex2zDlRsQKgPzbm4l1dM3/ nw0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FEsQZy0CrBLDxvcwldkt25tSu1+4HjGT0FtcGI0p5O8=; b=sewyb8DVNpz1XA1u98Re9GYlrZhq+teNxkZf8uyn4awprJDFkJZG3NEuD/yDjWCXSt mWEBWpjE1aOSQWbHV+MEo9RqBx/xh+KmB7EdMGJEcUqdtpkjgANu1+aN4TRMSZd/MDus L2+TGkcCCgamWHUoPXKquEcgy6+nqoHrSi5pA+87Z+5EO2QTNb8lMNE8YDf6cZ5pdXge 9xSvrl/B+3BHTWdLQXd0nRen9FY+GIKjl5xhuLbiDlrPdEM/HrhELy4zr87D56b1i3sX 1CacY7jb7PKFHmxTPkPSvPP76o0BP0i+Ur4CmLM+qOsxaO9eoOzQEsQN6U731g3bK2pv 1auQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DDeZlJcZ; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020a50ed8f000000b00437ce7fe19asi6720078edr.40.2022.07.01.02.00.29; Fri, 01 Jul 2022 02:00:54 -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=@linuxfoundation.org header.s=korg header.b=DDeZlJcZ; 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=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229680AbiGAIip (ORCPT + 99 others); Fri, 1 Jul 2022 04:38:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235462AbiGAIik (ORCPT ); Fri, 1 Jul 2022 04:38:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE8E712755; Fri, 1 Jul 2022 01:38:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F11B3621BB; Fri, 1 Jul 2022 08:38:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C82B4C3411E; Fri, 1 Jul 2022 08:38:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656664713; bh=rK44NCzWOqo4I27A6uYsVw7hmEv82qI7qYAMPwc9i4I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=DDeZlJcZlyuirP4fEtdm38/8cVpaRhnnwtqkZonyATd0o1phMXhzCeA8sOyLQAS5w Q+zA6RpYehRvzRCOhwtFItE5u15sDrMphNGX9VVxHBsGJbQ4evqTAgadi2uALmNYN6 I0aMVlfAO2SC59FH3Vnl1SQSniI5duk3FVI7DZAw= Date: Fri, 1 Jul 2022 10:38:30 +0200 From: Greg KH To: "Jason A. Donenfeld" Cc: Kalesh Singh , jstultz@google.com, paulmck@kernel.org, rostedt@goodmis.org, rafael@kernel.org, hch@infradead.org, saravanak@google.com, tjmercier@google.com, surenb@google.com, kernel-team@android.com, Theodore Ts'o , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Len Brown , Pavel Machek , linux-kernel@vger.kernel.org, wireguard@lists.zx2c4.com, netdev@vger.kernel.org, linux-pm@vger.kernel.org Subject: Re: [PATCH] pm/sleep: Add PM_USERSPACE_AUTOSLEEP Kconfig Message-ID: References: <20220630191230.235306-1-kaleshsingh@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 09:49:24PM +0200, 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 Cool, I'll queue this up and also the CONFIG_ANDROID removal into my tree now, thanks all for working it out! greg k-h