Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2820197ybk; Tue, 12 May 2020 08:53:45 -0700 (PDT) X-Google-Smtp-Source: APiQypKQnCf/9AO50U1QX+jKJXGs0kJSflRK43YaKxiyYLU5qXs2+UcWhkE7KoaNuvEYqW6BDNNG X-Received: by 2002:a17:906:4e8a:: with SMTP id v10mr17886417eju.63.1589298825461; Tue, 12 May 2020 08:53:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589298825; cv=none; d=google.com; s=arc-20160816; b=HWTrxUXAbsKojcRgkSSp0/1EgRsugTwzzeajx3l/tR4r/Cv6vTn2Wcr+FISECgOMsb HRNyXbtH4Gd9ns9PkyumOAomHmohXNMdv+8UH992r+Xs+rpHB1csZzDLqnrJaMQ9o9CV 11mHVLlUSCThED0Cvc98Ei2YDzGd7rs1M6guMiZz/obk0NlzaCNA96WjSJ26qwm2gvjL EJCaL7sYsTpccbkdmF9f7xfG9hxgBh+IwLxTCZjqJr3mB2NQZj9pYmP/wksCYJN9mhtf pxIN3fIhdmRVtGMw3HDA/LJr4oj863nXxHrmgSLU9goC6niVsssDMslSiWDCRxtFlTLp hoMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pK+4BJTjJjfcs5Luhl3I/0D6vtqlSzzqhFI0harskdY=; b=FYPJxZKU3Fiwq1hbeFRq/+9H7SoLkAreBgS0Sw/CfTM+Z3FAFuxmZZluZh2nLozpC7 o0Ep+78yh53JIkfp+lXgjlRrxujbYN0TSLP01fANMUcyg5st2i3nz7WDCd+rKA7T6Al5 hYDwXy+pnE/I19PxXAvfA3CljFtIoaIDEsskgi4K1RZ73U+XIP+c6/o5CMXjpi2FoxFO s1PbmDT3eg52dlJDzNngPrQvfBJJ962WaeoBrCunj3RJVabNbdrc8on5VbfGfuqlN6Xv rgrc4sBkuZUWKtvs6+sMwhzzf5rHBbGwrCk1hscYBuN6AmSu1vHtgvy90+Cfb3vpv26J 28mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kaDvjcGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ch10si8338177edb.346.2020.05.12.08.53.21; Tue, 12 May 2020 08:53:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=kaDvjcGe; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730458AbgELPtq (ORCPT + 99 others); Tue, 12 May 2020 11:49:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726465AbgELPtq (ORCPT ); Tue, 12 May 2020 11:49:46 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C98D0C061A0C for ; Tue, 12 May 2020 08:49:44 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id i68so11451756qtb.5 for ; Tue, 12 May 2020 08:49:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pK+4BJTjJjfcs5Luhl3I/0D6vtqlSzzqhFI0harskdY=; b=kaDvjcGevCgGbxVXAgEnCZsfj5UOf8oWOL7OfYa7+cQrQ4GBZFZNvB3N1g0jsvHHba AwbhmbLFaJS7OFfaqeo6muPspnUsP5MOLmVGvNIKhCLFncjkOMAxYAMtjK1w7ahqOIhC Z6c84ojmDWmqInRBsUrLZt9uHUXqvfhVWp5q9vkycCa3lMHutrDRyCuOzrqK3znuErx7 SQwGtis/NK+0HqKA/dX7YV08OctGVGL7jiFeTyYSOUMjGAlRUZC39Nkt/AXkigZ9PLLc G0ro4+ocK/NY1X3wb7x2W9HDVliltVgQjrzb7QC9brkA0jPE4qE1a3UH5S1UXx05KTUH M1Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pK+4BJTjJjfcs5Luhl3I/0D6vtqlSzzqhFI0harskdY=; b=O5+sASc6zTo2IioqWZYxRZedx6uiBqnEbzs1ZbR2OoB7q0wlGF4jTNm9TWcG7wLEu7 aK7a84mNHDQviJdsThFMq3yUKKszl4SbdlSca2zAxOQXsBF2+JQ9r2GzdhjbSY0QXA58 +jz2jw0D/1nCzasfb7neSrE7ft7vSYxS/pKuPMr+DfXSB8mnb6FbBbMXhLz/8H8MdC0j 5OZ93CAcTEYweSDnekYRZ6vtI4Go3yWy67Sf+sbnHuB6XMDeleLmtLcEv9+aYjIlhjor BI+jXuUxIruid+XT6leF7aNrxFciDn9LZcyJ8f2e7OMabWGztA0sSmVnOUhFcIQ1Ti/A vUUQ== X-Gm-Message-State: AOAM530cQoT6IfmxtMq1vbP2WimHtZ+cXKqB6yyjE3+EniEMC6YAT/Ye OZIxi1gPswgUreZQJZmpoiU+BrBCvckpWl/LK+q28SrI X-Received: by 2002:aed:2967:: with SMTP id s94mr7784274qtd.278.1589298583628; Tue, 12 May 2020 08:49:43 -0700 (PDT) MIME-Version: 1.0 References: <20200508111612.GA252673@google.com> <20200508113141.GB5298@hirez.programming.kicks-ass.net> <20200508130507.GA10541@google.com> <20200511090049.GA229633@google.com> <20200512092102.GA16151@google.com> <20200512135813.GA101124@google.com> <20200512151120.GB101124@google.com> In-Reply-To: From: Joel Fernandes Date: Tue, 12 May 2020 11:49:32 -0400 Message-ID: Subject: Re: [PATCH 00/14] Modularize schedutil To: "Rafael J. Wysocki" Cc: Quentin Perret , Peter Zijlstra , Greg KH , Linux Kernel Mailing List , Linux PM , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "the arch/x86 maintainers" , "H. Peter Anvin" , Sudeep Holla , Viresh Kumar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Benjamin Segall , Mel Gorman , "Luis R. Rodriguez" , Kees Cook , Iurii Zaikin , Frederic Weisbecker , Todd Kjos , "Cc: Android Kernel" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 12, 2020 at 11:30 AM Rafael J. Wysocki wrote: [...] > > The end goal with GKI is the following: Google will release a single > > binary kernel image (signed, etc etc) that all devices using a given > > Android version will be required to use. That image is however going to > > be only for the core of the kernel (no drivers or anything of the sort). > > Vendors and OEMs, on their end, will be responsible to build and ship > > GKI-compatible modules for their respective devices. So, Android devices > > will eventually ship with a Google-issued GKI, plus a bunch of > > vendor-provided modules loaded during boot. > > If that is the case, then I absolutely think that schedutil should be > part of the GKI. > > Moreover, that would have been my opinion even if it had been modular > in the first place. > > > This is a significant shift from the current model where vendors > > completely own the kernel, and are largely free to use the kernel config > > they want. Today, those who don't use schedutil are free to turn the > > config off, for example. > > So why is this regarded as a good thing? > > > But GKI changes that. The 'core' GKI config is effectively imposed to > > the entire ecosystem. As of now, because it is 'bool' we have no choice > > but to compile schedutil in the core GKI as some (most) partners use it. > > But as you can imagine, that is not the preferred option of those who > > _don't_ use schedutil. > > OTOH, it may as well be an incentive for them to switch over and > report problems with it that they see. > > I absolutely would like to make schedutil the clearly preferred option > and IMO avoiding to use it, especially for non-technical reasons, > should be clearly less attractive. Also, does this series make it easier for vendors / oems / whoever to carry out-of-tree schedutil hacks saying that's "Ok" because that's not part of the core GKI? That would definitely be a bad thing to encourage as well. schedutil should pretty much be considered a part of the core GKI if the goal is to encourage everyone to move to it, IMO. - Joel