Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1816706imm; Thu, 27 Sep 2018 03:02:25 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Nxphrsv8bUeKwD223qZ9QAEj3WlhzEMyYse9OHJ5iWmleJS0vU8+MdQoHAKmdNhO+/kp6 X-Received: by 2002:a63:7044:: with SMTP id a4-v6mr9455742pgn.63.1538042545716; Thu, 27 Sep 2018 03:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538042545; cv=none; d=google.com; s=arc-20160816; b=IdBi5jVP2ebT5cuarAaDQ6/LvxEvBSThRWibh+n8SlXsKwQ9NL5P0aLrY/llolZg+o fqa0gQweji2TOz+P2Nzox+yarwfRSQdvajl69JaMh/xBuXNOhsB9tu7KpR8NEkADAm7d eZX/KSxZsLeYNfqMyshlez6zSs/0KLGvM4jHXwQ4oYa0o0t6dIQK5SAQVYd6GxN+IJFe jOTq85RYtblYoU/CrY1bWR/Pi6DNYMJ28chIInY7BjkjAPj+hIdn/5lXXJSCTdd/QAYu 3gyAOEPgj44n0Em5nnofyNVJOgw5LSCSTOSsdENfGlx7E3chs1okJL457x6MavGIRqJH PGDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=qle2PhHLHC5q3g2g2eBIiNXnTBzBH9wGuJf6o6rVB74=; b=LUpKBvMESh/jSRbNIYu4Yll01jQgJTw9NjaqlZpZox5Kv7ob4d5Eyzm0cRkKh7/n2T +F7cRzSe1l4YQLNNoq7APaGiItxz4aDkj9qvdspJ3mgjGCtN5FK1QVGF4nvQ12QACZ6q QJK0WlLAhD/rjFZ30A49swKVUhZWHGFK4uHso3NB1eR28DawMsbSR8DdEl5b8AoEy6I+ Ofzyz/BbxT73w5vLcVfXT4h1mVgG1i5v3RT59T1PuZR4jrv0Dg9Rha+1AbeuRosdF4Af 9JSSZH6QHVc+2xEf0MIoqMsItf0BC5BQnkCm3ajv8FszdPAxT8upT4dk0pbsUf/iPVIf 8Gkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w3-v6si1447088pgp.220.2018.09.27.03.02.10; Thu, 27 Sep 2018 03:02:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727340AbeI0QST (ORCPT + 99 others); Thu, 27 Sep 2018 12:18:19 -0400 Received: from foss.arm.com ([217.140.101.70]:60306 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726931AbeI0QSS (ORCPT ); Thu, 27 Sep 2018 12:18:18 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8F47415AD; Thu, 27 Sep 2018 03:00:49 -0700 (PDT) Received: from queper01-lin (queper01-lin.emea.arm.com [10.4.13.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 82C793F5B7; Thu, 27 Sep 2018 03:00:46 -0700 (PDT) Date: Thu, 27 Sep 2018 11:00:40 +0100 From: Quentin Perret To: Peter Zijlstra Cc: Patrick Bellasi , Juri Lelli , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Ingo Molnar , Tejun Heo , "Rafael J . Wysocki" , Viresh Kumar , Vincent Guittot , Paul Turner , Dietmar Eggemann , Morten Rasmussen , Todd Kjos , Joel Fernandes , Steve Muckle , Suren Baghdasaryan Subject: Re: [PATCH v4 14/16] sched/core: uclamp: request CAP_SYS_ADMIN by default Message-ID: <20180927100021.kpdyol44qpzassup@queper01-lin> References: <20180828135324.21976-15-patrick.bellasi@arm.com> <20180904134748.GA4974@localhost.localdomain> <20180906144053.GD25636@e110439-lin> <20180914111003.GC24082@hirez.programming.kicks-ass.net> <20180914140732.GR1413@e110439-lin> <20180914142813.GM24124@hirez.programming.kicks-ass.net> <20180917122723.GS1413@e110439-lin> <20180921091308.GD24082@hirez.programming.kicks-ass.net> <20180924151400.GT1413@e110439-lin> <20180925154956.GA30146@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180925154956.GA30146@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 25 Sep 2018 at 17:49:56 (+0200), Peter Zijlstra wrote: > I really don't see how changing the unit changes anything. Either you > want to relate to OPPs and those are exposed in 1/1024 unit capacity > through the EAS files, or you don't and then the knob has no meaning. FWIW, with the latest versions of the EAS series, we don't expose the capacity of the various OPPs directly any more. You have 'frequency', 'power' and a more abstract thing called 'cost' (which is useful for energy computations) in the sysfs files of the EM. We decided to remove the 'capacity' file to simplify things quite a bit, and because it wasn't helping much. I'm talking about this discussion w/ Dietmar on v4: https://lore.kernel.org/lkml/20180717141955.GA4496@e108498-lin.cambridge.arm.com/ But it is also true that we could add back that 'capacity' file if it makes sense for uclamp. It's just an additional show() function in energy_model.c, so no problem on that side per se. The only problem is if you want to use uclamp w/o EAS, I guess ... Thanks, Quentin