Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp807400iog; Thu, 30 Jun 2022 10:28:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sJhqLeYz3TeuD8PF3HYbkubfQBl40irj+XF5cVyslmk9mmG9WODIC/bXF2qOsW1EfWzUYh X-Received: by 2002:aa7:db47:0:b0:435:76e4:c6f4 with SMTP id n7-20020aa7db47000000b0043576e4c6f4mr12990829edt.351.1656610095951; Thu, 30 Jun 2022 10:28:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656610095; cv=none; d=google.com; s=arc-20160816; b=fBXoYhokuYEBMNT/oTC6+/mf3AWPuv+gFDa9JmZfO/cI4gRlM6e1DsMQ2VmxK0tnRr 7Md443lj/Sj2b9gjt2dQl3W+6aAiRWP6jkhnSOh2wjKThlC+Cyxwvyil9Gm2GZ74GOCN vgH3Faok+aFQfs0f5ay8k4aU61H4vIu2GdWHVCkGQZEiJ6G7N0SR9xcI1ohfNTJ8o2fg N/CP5F/c9AiF7f3zuU7Cg25kQB/Pv4fE+5sYMwCiOmqMHS7unYgLdDogSrFf6/VdFLC9 bh9a08ABH90PReOoCoOMbqikOSBfQYeQDrJIIkd4IB2UzowkXs6qCyTLQbe4dPt5+Og7 bjUw== 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=uH3u1IFiXRo5yGbXIVqL1yqXLG2H1E4UXns/GZ0BaVE=; b=UWiMRNqnUW36W2bC7wj0ZYB3nKPh2L98tN/0qaUqyVonquxQOLqAlNITlgJWt5PtU4 QMjNhI3S5VSLxdz6eOU00d06oSz+U2LSOk5STWYWvPe0cqZjPfmAln4GvAO7QZyG9BAc VhDqRdA2fv5VDTp88UfmoXW1iB7YABx7K9IhJ4Mil2NkMp4k1wzxm1CfK9lJiDByaFXl 1jlkQIerZKGVZywdGzdpd1rMM9tA+cwH9aM9dceRsYJFGo3slRJ3k1fosnNctodPJaRq v8r5mPNhyiFXAruAjpPiXVTF1ZX8kjRJTV2XtCuMDVcPtezRCwsOl076mqPn+a+IJ8ke ShUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=FZwPzlvJ; 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 s3-20020a17090699c300b00712ae69fac3si28647766ejn.878.2022.06.30.10.27.50; Thu, 30 Jun 2022 10:28:15 -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=FZwPzlvJ; 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 S235297AbiF3RMt (ORCPT + 99 others); Thu, 30 Jun 2022 13:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235229AbiF3RMo (ORCPT ); Thu, 30 Jun 2022 13:12:44 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2656533880 for ; Thu, 30 Jun 2022 10:12:42 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id r20so28271620wra.1 for ; Thu, 30 Jun 2022 10:12:42 -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=uH3u1IFiXRo5yGbXIVqL1yqXLG2H1E4UXns/GZ0BaVE=; b=FZwPzlvJMTMo74Fom19t74AoePXhXeGrkxqDczxBrgAmUE15h7mMgCvqS1RXp6H6dx AJN1eEqiyXCQcVtOdWLHOlGOIYCzX0NYupog/3JnG9A7ikhyIHZBFXZVFGEfKGdZCXeY zU1hnN1Wdqw7oADY6ZGrKHxwlMGT7A4lHt31aRjqd1iiC/ofThahR164aASaZMojTBSJ 5NpYz9PQrcA4PgL8kxOVJoX6B1W4Pk4wJyUC923AhZMJ3cMtqn4TGSDOwf2374Xfwolm zoFBaFGsi3fEWFmXn2NQWslIpMLfYDFs4g+nzRAXD26K3skmpYuoFUlpgEIDvbWxpRWF dGPg== 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=uH3u1IFiXRo5yGbXIVqL1yqXLG2H1E4UXns/GZ0BaVE=; b=c/s4+1QjYHCKLdLhzwi10E5fh5qduZF9nSk2jvCvm0rJil4CabJJbrUO+xCUx4M8nr tT/xLEYbGXoHiUQjABXhHhg/mkzqAZ6niDNXaZfwMbAQ/hzQnWu3d2qWDGXBEboVZk6w me3QuqWEj4g1gPDbodOX07Cm57z7r7WYUaO9nyW86cPjYOPNtphQbDpgmmhk0JQNezSy W9MqU7mEJ/Al0KcA9CLEiueomIPnJjbW8ShfgwZKuqC0c9QsSL0mHd9aQ7InFZbUL2MK sL3u4w4MS7yAdxKgy864LsvQ58fxPBPbcyqb1tOq2K9tjUfZKr+q0HeZXiacgeWtwrEQ 8KtA== X-Gm-Message-State: AJIora8CA42JCgb+4DDpzrgDlgJ/BNz0VlYEPZqsavtgdBylVtt6+nDx gxR+mCv0XiUHcznXY844A0JlY+1ptgRbOW3E7Q5X X-Received: by 2002:adf:ef10:0:b0:21b:8740:7085 with SMTP id e16-20020adfef10000000b0021b87407085mr9148009wro.9.1656609160637; Thu, 30 Jun 2022 10:12:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: John Stultz Date: Thu, 30 Jun 2022 10:12:30 -0700 Message-ID: Subject: Re: [PATCH] remove CONFIG_ANDROID To: "Jason A. Donenfeld" Cc: Kalesh Singh , 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=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 3:06 AM Jason A. Donenfeld wrote: > On Wed, Jun 29, 2022 at 09:25:32PM -0700, Kalesh Singh wrote: > > 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. > > I mentioned in my reply to him that this doesn't really work for me: > > | As a general rule, I don't expose knobs like that in wireguard /itself/, > | but wireguard has no problem with adapting to whatever machine properties > | it finds itself on. And besides, this *is* a very definite device > | property, something really particular and peculiar about the machine > | the kernel is running on. It's a concrete thing that the kernel should > | know about. So let's go with your "very clear description idea", above, > | instead. > > IOW, we're not going to add a tunable on every possible place this is > used. Hrm. Can you explain a bit more on why you're particularly adamant against scoping the config to describe the behavior we want from the kernel rather than describing a "machine property"? As personally, I greatly prefer Kalesh's suggestion (as it avoids the same critique one could make of the CONFIG_ANDROID "flag"), but admittedly this is bikeshed territory. Does this preference come out of the too-many-options-in-gpg antipattern? Or is there something else? > Anyway if you don't want a runtime switch, make a compiletime switch > called CONFIG_PM_CONTINUOUS_RAPID_AUTOSLEEPING or whatever, write some > very discouraging help text, and call it a day. And this way you don't > have to worry about ABI and we can change this later on and do the whole > thing as a no-big-deal change that somebody can tweak later without > issue. Yeah, this is ok with me, as I don't see much benefit to creating a userland ABI, as I don't think at this point we expect the behavior to shift or oscillate at runtime. thanks -john