Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp202589iog; Wed, 29 Jun 2022 22:05:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vB3UOHpHdho6ga/FR47uI+3bw99amaM+Ds1/ZowY/QCLJ6gmSbyT9AtQD0/V35hygdkERR X-Received: by 2002:a17:90b:4b01:b0:1ed:157:b9e5 with SMTP id lx1-20020a17090b4b0100b001ed0157b9e5mr10011760pjb.150.1656565519489; Wed, 29 Jun 2022 22:05:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656565519; cv=none; d=google.com; s=arc-20160816; b=keNJ99Asf2EdpyfuhSPHiSHp7KRI7ao/lr4amjLlBEZjfAbqyUnVZbTtyzYk9kGmhA uaPXZG11o3gYGt7XMw1WGHg64yW3GHxZ2TYgXoztam2RXRWuVrP4Au6l632sFymSU90Y J9ABtCDKOZnfwwS7fbtu5S8hXBWQ1EcHJN5dW0dLn9MiauIv1Co1CpX2QA0VNDeI7F15 F3zI/S7xxoZ/w1XiSYqfpRCmJPHDVJv7DBTFq3B1nFZ4JxLhBeGcz43zspDf8UXswpoM tcUoUCSWiMdfOoiQMM3S/kCuq8/LFnyhJy/FdLMu1sNw79TGmJSsDHT3/HLl1vuTNh4j yZXQ== 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=XF5+1TpNEHAiXDfVWQuBqZGuz8O67KY9U2sjyk0++xA=; b=EQoHRQv7tOtT+7c7+2GdeZh60G6epgrC6jVVq0R/sPubUky7WiJL8zd4YYGd6zIYP1 4UciVqjkkN7948263MOticwyxcYKLXL94NmWKWOfqMa3RmchrVas/wzZnQP6XlwnOdz1 l0akElj3jBiHPbk5EryJACILo6mkYCYVWDeq0LjYGJPP2l2owkYzftkKA+5pkXYpswWU yAk+5ZhA3ULo2Vi02TyS7n1tQ+QLU3yUQRZ9pJ+lbEuyHfSbxmN+K6RMzPsmrIgmsLg1 5Npss1ZiOAQX0dWKwBFBMNoD9vhbhJ8bafOK/OlWjtWpSPg5rG6tXLtzfkWAjx2ISsZJ Gy8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="J/ogTuEc"; 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 o7-20020a635a07000000b0040d66be922dsi2999235pgb.16.2022.06.29.22.05.04; Wed, 29 Jun 2022 22:05:19 -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="J/ogTuEc"; 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 S231431AbiF3EZs (ORCPT + 99 others); Thu, 30 Jun 2022 00:25:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231476AbiF3EZq (ORCPT ); Thu, 30 Jun 2022 00:25:46 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7AE13917A for ; Wed, 29 Jun 2022 21:25:44 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id l2-20020a05600c4f0200b0039c55c50482so886927wmq.0 for ; Wed, 29 Jun 2022 21:25:44 -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=XF5+1TpNEHAiXDfVWQuBqZGuz8O67KY9U2sjyk0++xA=; b=J/ogTuEcBjzc2rb/AX+pBYkVOtdqmFsidowp9idjspZWWtBCu0QpR9Omff+s+WRE4J JQqudj/2Cr2qfjcFMt/rm61kR9b0uS6bBZ9XePjS6rge69pJNaxwG4FsPwBmcjgahoIT zZ7xrswxi9aUQCIcykenow5cV1Jz6mOyIW2DJheISuKWr7KK/QYsFfFUTz46tTEUfApa IsdiNxH21cVIcqCO/V4VZhpjVPJEdc87M9ji/eiTZcXPmWU0DsAVN72/jxdKBCH3gL1n EWu/46jkA03D7DfT6mJU1cICL9/sZULYP1olO9hZtpAZ0rLsl247j0otusmUTpKjqAdj 5pMw== 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=XF5+1TpNEHAiXDfVWQuBqZGuz8O67KY9U2sjyk0++xA=; b=vPVbcGYlhN66VjzXKhCGNfaF7JkAh8WDpD9TpbSe89g4KzmRGK+LkIGZaLE3HLz2L4 R2TCPdp7I/CmUmsKQFbcyrO97waNhsmIdIkoclBEebD5gufcwFeZu24yOL3VJdcXHbeM waQ4br3dDotXY2qgDrEAlvgKyyuFNEsoIU3Ni4rgoXXzfkStMBCv9dW/yIHdzF8+HckP 8h7XE1E1InYowUPstuG4UJctkC9nhg3gyxQLS/n8qf9VwCRFkTSk+0ePFs0MZ+gWExfD 3Jzmdk87WR3mgGijChrpA00vjo+rf/ohUkpThgfudtAbD+wa8zV+5kY6hYgcKBbhboOd jNhQ== X-Gm-Message-State: AJIora9DhB7mMI4q19PDcBQPg7TTmFwbhYJIDxslCU0gZDQ+46D2iUUc O1Boy882SjIOJ3wLXULLIMjT8/MuTQ2yOqLAPpJj0w== X-Received: by 2002:a05:600c:3553:b0:3a0:519b:4b96 with SMTP id i19-20020a05600c355300b003a0519b4b96mr7335634wmq.61.1656563143223; Wed, 29 Jun 2022 21:25:43 -0700 (PDT) MIME-Version: 1.0 References: <20220629163007.GA25279@lst.de> In-Reply-To: From: Kalesh Singh Date: Wed, 29 Jun 2022 21:25:32 -0700 Message-ID: Subject: Re: [PATCH] remove CONFIG_ANDROID To: "Jason A. Donenfeld" Cc: John Stultz , Christoph Hellwig , Greg Kroah-Hartman , =?UTF-8?B?QXJ2ZSBIasO4bm5ldsOlZw==?= , 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" 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=unavailable 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 Wed, Jun 29, 2022 at 5:30 PM Jason A. Donenfeld wrote: > > 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. Two concerns John raised: 1) Adding new ABI we need to maintain 2) Having unclear config options Another idea, I think, is to add the Kconfig option as CONFIG_SUSPEND_SKIP_RNG_RESEED? Similar to existing CONFIG_SUSPEND_SKIP_SYNC and I think it would address those concerns. --Kalesh > Jason