Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp47051iog; Wed, 29 Jun 2022 17:46:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sHs2f0jlCqJHr3MU9ZvcCVLb9UR7jF8JmJnrPbXyaJaLlu+3dCYMFE1UR36+hhX8IfosZt X-Received: by 2002:a05:6402:368f:b0:437:be5d:6617 with SMTP id ej15-20020a056402368f00b00437be5d6617mr7876053edb.187.1656550002259; Wed, 29 Jun 2022 17:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656550002; cv=none; d=google.com; s=arc-20160816; b=PBIwbwMds1D+6JwKLuogzVjtl1ONLzEXsNxHKkVq01a+i73FXd+//KZY403N7iP+Fc O/1BcRSCoihQ3/IHTG9UFF7TreavEYofjY5cphnESmSFeRA22UXrZJfJ3OStGFM1R7BJ Cy1zr8Cw1fqc5d8x/ELTTrRPl+AhtCaLfTk2OHiNx963MXfCwJL12nuTuen52EdI/why Gi817JRdr1X/skVoFgNVIxDc8SZ0rdgqY+nuKwaUHROMbe/7KONHH5slzvVL3CFpJVdm InJf47AdREyilrFBv67BKuoB4Tiw+0bMWg6Gncjm8vMbypFHonVm/neOP8TiKM0fhV1V O4zQ== 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=4Om9TGEBMR+Wzn2zJmgsRZapqDIU0L40ndqIRFXkV40=; b=U8Ks3kfqYMLKMLOESiCisCKjLnqaqOtsjT8TUcrwj0xwbylZ3VtYq7xcNznWaRpocV GFloUb+W8Ob4HtUqz3u2qdx0n/jXgBNgFAQ+ploIBdwWr1ldU56BU/cuM0eO+cIFft8o HV29FOrtzMz85vsWj1JJm0bnS4jc8V/+GdTftNSac1Ni7iHbzfqLFLckFg/Iwt4mvGE3 eJhk3Y5ofO8CvLr4ZrUPnpSWK9NtYtLJ2w3rV2zO4a4g5DCtr6O3b7gVp27HjMuIxuQh kVtHF+4HJM15sFeQpDqpgWYBkyMX34hT/DKqt/0KQbEksVfZh8cbvyJx51MDYH7Vl4jz hPxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=BXiVvpR5; 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 u1-20020a50eac1000000b004358cec9cc3si20064852edp.168.2022.06.29.17.46.15; Wed, 29 Jun 2022 17:46:42 -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=BXiVvpR5; 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 S229737AbiF3AaT (ORCPT + 99 others); Wed, 29 Jun 2022 20:30:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiF3AaS (ORCPT ); Wed, 29 Jun 2022 20:30:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6878421804; Wed, 29 Jun 2022 17:30:17 -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 E238CB821D1; Thu, 30 Jun 2022 00:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 59FBCC34114; Thu, 30 Jun 2022 00:30:11 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="BXiVvpR5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1656549009; 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=4Om9TGEBMR+Wzn2zJmgsRZapqDIU0L40ndqIRFXkV40=; b=BXiVvpR5Pi7KTfGbJpg+nPbYbooUIVoLw8eEyN7163dOB1EbnKz7QiBOOJ7JwTc9uncem1 T4guem7e3CfAIl48sBFQ3KFFRNvt7gnxTMMBQgp1hNBUZJmOxdyIL+L9kpq/gSuFJemdiC kD2mYzTnyUGC4GP1T+hK3XTWueOzYtU= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 57a083cb (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Thu, 30 Jun 2022 00:30:09 +0000 (UTC) Date: Thu, 30 Jun 2022 02:30:05 +0200 From: "Jason A. Donenfeld" To: John Stultz Cc: Kalesh Singh , Christoph Hellwig , Greg Kroah-Hartman , Arve =?utf-8?B?SGrDuG5uZXbDpWc=?= , Todd Kjos , Martijn Coenen , Joel Fernandes , Christian Brauner , Hridya Valsaraju , Suren Baghdasaryan , Theodore Ts'o , "David S. Miller" , Eric Dumazet , Jakub Kicinski , "Alex Xu (Hello71)" , Paolo Abeni , Rob Herring , "Paul E. McKenney" , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Shuah Khan , LKML , wireguard@lists.zx2c4.com, netdev@vger.kernel.org, rcu , "open list:KERNEL SELFTEST FRAMEWORK" , sultan@kerneltoast.com, android-kernel-team , Saravana Kannan , "Rafael J. Wysocki" Subject: Re: [PATCH] remove CONFIG_ANDROID Message-ID: References: <20220629163007.GA25279@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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 Hey again, On Thu, Jun 30, 2022 at 2:24 AM Jason A. Donenfeld wrote: > 1) Introduce a simple CONFIG_PM_CONTINUOUS_AUTOSLEEPING Kconfig thing > with lots of discouraging help text. > > 2) Go with the /sys/power tunable and bikeshed the naming of that a bit > to get it to something that reflects this better, and document it as > being undesirable except for Android phones. One other quick thought, which I had mentioned earlier to Kalesh: 3) Make the semantics a process holding open a file descriptor, rather than writing 0/1 into a file. It'd be called /sys/power/ userspace_autosleep_ctrl, or something, and it'd enable this behavior while it's opened. And maybe down the line somebody will want to add ioctls to it for a different purpose. This way it's less of a tunable and more of an indication that there's a userspace app doing/controlling something. This idea (3) may be a lot of added complexity for basically nothing, but it might fit the usage semantics concerns a bit better than (2). But anyway, just an idea. Any one of those three are fine with me. Jason