Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp69292ybj; Fri, 8 May 2020 06:44:35 -0700 (PDT) X-Google-Smtp-Source: APiQypJuR2U+66kr3OUpcF8egThsZzSWzvjpihwjHc5uwQI3BN9vccfv5FbEbBKsRV5WhtYXjVU+ X-Received: by 2002:adf:fe87:: with SMTP id l7mr3219259wrr.360.1588945475580; Fri, 08 May 2020 06:44:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588945475; cv=none; d=google.com; s=arc-20160816; b=uDAhY0DYQbX4mjY1updeygi3glfMgKE9JQgJvdwJuYArY1XaxYRUoan+yBZlES9Y8F 93l2fAYUf2vYvf9viBzoWnCNsrHSMVyxdEzS4UWxshR2CBMrai7YteFD9hZjFjayWFaK VjrOnKOffwNEaMP2T+q114gup0ITxYArONLdw3M+Ezq94dcU02dAg7uB9P9865mYGHIK akl3Lf02bP0Jp0quHAVPAJf13Y4iFO0FYkudrA9Zs+egB5PMYVLY7H5yRJStRbTTd+FD fjEqw8MgH1VndnKUYwSmm6gAs94D1M3q+PrMjWtbEjNTapYhd5Lk6xe7530uekWtE2qY x8wQ== 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; bh=cQ5rrPXnNsDJ/WKPpWYcGWcn8h/Vyzx3Fiwbz3aL0Q8=; b=Mui6ajPW1XUTVaGuuSKB+bnt89rPon2bNta3qDfSMCrd2Wj0EoGtInJOA5NErYllmB ni6B9xfP4RwXeE3SD5VP/6gH/4P52yufFUV0C6/izMueAtajI7NgvL4j4rHBXbfSWqEn ySbiM72knAvrIANbeVvoZYVbIty391mziRtUZN8KGLRmSuRohmCrEUIOHazXc1WIKRit Jh89skLGb5YsiwSwiD3/Kl06o4y31BNmuqlx6BbmRcjE4s6OxH20RuIH4+W1sD9qXWeU SIC/r73kP+e1VHpkIFBuIWoAK62osgBTMgyiqfj3HiLTLVWMy6Kpb4QFPihoq38bmxt9 CZZg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si980714edo.354.2020.05.08.06.44.11; Fri, 08 May 2020 06:44:35 -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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727973AbgEHNkt (ORCPT + 99 others); Fri, 8 May 2020 09:40:49 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41849 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726736AbgEHNks (ORCPT ); Fri, 8 May 2020 09:40:48 -0400 Received: by mail-ot1-f66.google.com with SMTP id c3so1447160otp.8; Fri, 08 May 2020 06:40:46 -0700 (PDT) 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=cQ5rrPXnNsDJ/WKPpWYcGWcn8h/Vyzx3Fiwbz3aL0Q8=; b=fA2acA0tM3srqwRoEXpufC16AGCSpBIhRttPafUm6kGMtEadey4WmWxZLNv+3y1TWx lncYQMLAWA6APEnIMRfVJAlHeO3BWajb6dzBUf0JafjFTdcsuYBNagKITfrVQrWu9834 1tQ7Mn/AbewUTTsLES89M64AyKZhLB3erzlxOu5vF2JySRN/4kGo86C0OMyIRHw7z+Ft 77oF5A6JwAyMSLTL4jll7VIOo6HLRrmoL4uPAIp1HQEPl74syGDkF6tt5RzCGe4CKiYC Gg0lLKERE8XcN0YP+NjtralTCALbaRH4+JZfA9sE3gF/gp8MCfer6YTZfEeHhcciJxt4 ja/A== X-Gm-Message-State: AGi0PuZ4+BGDClNBHjDELHY/WOi3WwZ8GULWAm09MvBSbOOsDkoGhfWa CWgaS9Qy5HvEm6e7ikJsozVfviffJau8l7muDYo= X-Received: by 2002:a05:6830:10ce:: with SMTP id z14mr2125697oto.118.1588945246489; Fri, 08 May 2020 06:40:46 -0700 (PDT) MIME-Version: 1.0 References: <20200507181012.29791-1-qperret@google.com> <20200508081128.GM5298@hirez.programming.kicks-ass.net> <20200508103721.GA3860390@kroah.com> <20200508111612.GA252673@google.com> <20200508113141.GB5298@hirez.programming.kicks-ass.net> <20200508130507.GA10541@google.com> In-Reply-To: <20200508130507.GA10541@google.com> From: "Rafael J. Wysocki" Date: Fri, 8 May 2020 15:40:34 +0200 Message-ID: Subject: Re: [PATCH 00/14] Modularize schedutil To: Quentin Perret Cc: 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 , "Rafael J. Wysocki" , Viresh Kumar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , bsegall@google.com, Mel Gorman , "Luis R. Rodriguez" , Kees Cook , yzaikin@google.com, 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 Fri, May 8, 2020 at 3:05 PM Quentin Perret wrote: > > On Friday 08 May 2020 at 13:31:41 (+0200), Peter Zijlstra wrote: > > On Fri, May 08, 2020 at 12:16:12PM +0100, Quentin Perret wrote: > > > However, the point I tried to make here is orthogonal to that. As of > > > today using another governor than schedutil is fully supported upstream, > > > and in fact it isn't even enabled by default for most archs. If vendors > > > feel like using something else makes their product better, then I don't > > > see why I need to argue with them about that. And frankly I don't see > > > that support being removed from upstream any time soon. > > > > Right, it'll take a while to get there. But that doesn't mean we > > shouldn't encourage schedutil usage wherever and whenever possible. That > > includes not making it easier to not use it. > > > > In that respect making it modular goes against our ultimate goal (world > > domination, ). > > Right, I definitely understand the sentiment. OTOH, things like that > give vendors weapons against GKI ('you-force-us-to-build-in-things-we-dont't-want' > etc etc). That _is_ true to some extent, but it's important we make sure > to keep this to an absolute minimum, otherwise GKI just won't happen > (and I really think that'd be a shame, GKI _is_ a good thing for > upstream). > > And sure, schedutil isn't that big, and we can make an exception. But > I'm sure you know what happens when you starting making exceptions ;) This is a very weak argument, if it can be regarded as an argument at all. You will have to make exceptions, the question is how many and on what criteria and you really need to figure that out for the GKI plan. > So, all in all, I don't think the series actively makes schedutil worse > by adding out-of-line calls in the hot path or anything like that, and > having it as a module helps with GKI which I'm arguing is a good thing > in the grand scheme of things. Frankly, I'm not sure if it really helps. The idea of making schedutil modular seems to be based on the observation that it is not part of the core kernel, which I don't agree with. Arguably, things like util clamps need it to work as expected. > That of course is only true if we can > agree on a reasonable set of exported symbols, so I'll give others some > time to complain and see if I can post a v2 addressing these issues! This isn't just about exported symbols, it is about what is regarded as essential and what isn't. Cheers!