Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp919176iog; Thu, 30 Jun 2022 12:51:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1spPqx+YF/sjMiKsn2qc4DpdpNKQUfafE0SSNFYVbKVW+t+mUBDWcwGkds++wOEqXGt2980 X-Received: by 2002:a17:903:22cd:b0:16a:605a:d5c9 with SMTP id y13-20020a17090322cd00b0016a605ad5c9mr16778060plg.23.1656618682529; Thu, 30 Jun 2022 12:51:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656618682; cv=none; d=google.com; s=arc-20160816; b=pubRJjEtK/zD75N5YZbh2f5f2oVdc5yQnscdtL+YB8Mad0WLpGBl+LdD+UYEHIElBf AN4f2+Im/xZftASIRBgirk4Vp4/tWtOIPf6IbTSUpezNRR2f6PYhNfNUyxNxD9suhDx6 g/GEIYqkVRP+wbqTE3WpqKwKxIomH4dTe5scDVFj4A6GtrmwA47pyC4E546pbip3xEjP P+JhRyh0s6iFDP3/fNqiaW+dSr2gcUDwkLi9aXfFlD4dBtVIwbhM2RiE5TsKgv3pJkQ1 ozbDd8TZdtZheGjVNA3K/q54eSYZ5CfY+oYriWphEJ3j0AB85erpHcdL/gllvX3k2/M6 decw== 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=GRQOgseJsjlGCjwiVUpaQ9qdmIJEy/G5oWcB1T2bRMs=; b=N2hqrNVYZHfNT5ZMBN20nzottRg1uxboPKvNPc/z9MW5KOVI8dU3VXTJX/OdiMhJgO l1v8lEaifGiIHdVZn0VrpmzGTbgHtmOnSDgHIe3bg38V3ehQYRXhNCKcEP43hz/kYAy1 LKB5cg9jms6TWS3XupAvz6C6JGI4vphMgFRB5lVRkn33nGM0yiOBpBQft9LX6v/5wB/y 7lEP6FuTOjB4F+PLEG3QKo4RSeA3NS6hlT/ANiDAg4mBcf3nPOmnOlRQ6ocEwv3vzfps l/FoRVg6+RfLO1o4QJhKlGTZLOLhsop4clxdMg2vr7ygRIFu7DciQ+lqmDrtwgMyDIvn Ikrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b="EG4WL/Zm"; 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=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t4-20020a17090340c400b0015d093f3891si5621820pld.584.2022.06.30.12.51.10; Thu, 30 Jun 2022 12:51:22 -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=@zx2c4.com header.s=20210105 header.b="EG4WL/Zm"; 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=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236461AbiF3Ttr (ORCPT + 99 others); Thu, 30 Jun 2022 15:49:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236837AbiF3Ttg (ORCPT ); Thu, 30 Jun 2022 15:49:36 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44BFC42ECA; Thu, 30 Jun 2022 12:49:35 -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 ams.source.kernel.org (Postfix) with ESMTPS id DE088B82CF6; Thu, 30 Jun 2022 19:49:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56EB3C34115; Thu, 30 Jun 2022 19:49:30 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="EG4WL/Zm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1656618568; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=GRQOgseJsjlGCjwiVUpaQ9qdmIJEy/G5oWcB1T2bRMs=; b=EG4WL/ZmP1tBUTCf3y4mcpiroKBGDQFCS77y1nx7Ow4M2TM3JCJVjBNlbLjuT3e9sUgOMA TEF5V2e1t6j/+uAoR8AaSEEfI1WlehbtAlzu3mBKuHjaT5jYTp+kpmGv8yOalL2HxBVDWr m8Xh5oGX8B4AGcAXTpFG+ctazSMxshA= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e7d677a8 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 30 Jun 2022 19:49:27 +0000 (UTC) Date: Thu, 30 Jun 2022 21:49:24 +0200 From: "Jason A. Donenfeld" To: Kalesh Singh Cc: 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=utf-8 Content-Disposition: inline In-Reply-To: <20220630191230.235306-1-kaleshsingh@google.com> X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 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 Jason