Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3473819imm; Thu, 17 May 2018 09:17:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo+wWb2LmnUSmFm3iy9ozBoJ0ZJX2dcEmeoHj5wuGSPPK0sz7q1Lz2bNgCRB3LJz9B/1T7R X-Received: by 2002:a17:902:3a5:: with SMTP id d34-v6mr5869461pld.103.1526573862668; Thu, 17 May 2018 09:17:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526573862; cv=none; d=google.com; s=arc-20160816; b=0C5NuKJfUHo+KsxZCBqH6g2ZTitQzfbX7MLB5Djamf+7nAGLKs8ck7E9c4sbKDeR5n W6X1Oezz3zsbeUk0NeKz3zTv9qWwUz7uDr/wdgu8sTgBAO4Wc1SjkNfD9vNhRAzQnPfB NOswGnsxzeEz568TIyDr//8d+AD3gjCSuoo7Inc/Q9HmftjcZI7LxEnqrDTPgjrynWMj P2N3jtHoNPp8sM6SlT1OWp7EXStcXgLeCVieBpE0qbay0uqgL5K87kXkd9BqPjDcnprv iSVB6nvpRiGzB0tAeCZ1SqWBva8CeAGDqwedWySkmlTYTmlHpaO/vsRsis3yIjG1hcHq cPCA== 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:dkim-signature:arc-authentication-results; bh=+EFC6AaYLVSoPNJXKzstsO6PcVu7FimE3VZ+0LEyPAM=; b=zaC8oELaF4mS88hMy3AJqgCTARHj2Jv3zePWO8SdrH//bM21kUjOnoBQTzhiLYvWP6 D47wJP74GIFokgnwEzUBTfz5G99BJo29G+3rwfZQFpUuT7Xd/kHnyZMvTHwhAoC1KyWt 1tbA21JLEq8D67ovhG9NA6r/n25zcVUD6Ivq+7WTN80IoIzooGysJnjIUtMVh4IL7XhX 1xSjDiypGPDkvSQT+m2VTGXrnLRejyJi74Q0vdJGP11S/Yww7R8Ln2kjOPruVusOJKIW c0rWKpilS+cOthaSmOirx6TWTV2LouPg2ykoqvCMkZxwzEnq2PxUCXscgZSBsIbYhnvs RjeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=SXgCSGpP; 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 b18-v6si5577609pfi.254.2018.05.17.09.17.25; Thu, 17 May 2018 09:17:42 -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; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=SXgCSGpP; 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 S1752165AbeEQQRO (ORCPT + 99 others); Thu, 17 May 2018 12:17:14 -0400 Received: from merlin.infradead.org ([205.233.59.134]:33808 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbeEQQRN (ORCPT ); Thu, 17 May 2018 12:17:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+EFC6AaYLVSoPNJXKzstsO6PcVu7FimE3VZ+0LEyPAM=; b=SXgCSGpPoctbwPH1a2lix5eJM MNJIoRddj19zAoMk8hw89ipHaNExNDuBvutVvZk1W1eUS8U2JymlcMVOWJVzQ4U7LaKPzfgLA4GJX FbI5MUUQnuEp3Rm5RiQcA8eIJK3OzP47wRnV4b528xEKH2QcC4RVverRxAIZD+2cL8/4km5xTEMHO eh6Z19YeVeElkenhLuPkF5sNj3hetKiSsGlgPFfmbLYdP6yCD5u/41qabs+RWyfeowU1qEQdm/ext gMarBgBhc7sN4cRiq6t8YNxUEWZ7eWWFDzX4KuFKRENodsKrTyDVKXpAMD3ucs91MeH//0Nzh+i2o G8cU09aJQ==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=hirez.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJLaG-0000xJ-Al; Thu, 17 May 2018 16:16:52 +0000 Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9F9AC2029F869; Thu, 17 May 2018 18:16:49 +0200 (CEST) Date: Thu, 17 May 2018 18:16:49 +0200 From: Peter Zijlstra To: Srinivas Pandruvada Cc: Juri Lelli , tglx@linutronix.de, mingo@redhat.com, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net, mgorman@techsingularity.net, x86@kernel.org, linux-pm@vger.kernel.org, viresh.kumar@linaro.org, linux-kernel@vger.kernel.org Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting Message-ID: <20180517161649.GX12217@hirez.programming.kicks-ass.net> References: <20180516044911.28797-1-srinivas.pandruvada@linux.intel.com> <20180516044911.28797-3-srinivas.pandruvada@linux.intel.com> <20180516151925.GO28366@localhost.localdomain> <20180516154733.GF12198@hirez.programming.kicks-ass.net> <20180516163105.GP28366@localhost.localdomain> <20180517105907.GC22493@localhost.localdomain> <20180517150418.GF22493@localhost.localdomain> <1526571692.11765.10.camel@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526571692.11765.10.camel@linux.intel.com> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 17, 2018 at 08:41:32AM -0700, Srinivas Pandruvada wrote: > One more point to note. Even if we calculate some utilization based on > the freq-invariant and arrive at a P-state, we will not be able to > control any P-state in turbo region (not even as a cap) on several > Intel processors using PERF_CTL MSRs. Right, but don't we need to set the PERF_CTL to max P in order to access the turbo bins? So we still need to compute a P state, but as soon as we reach max P, we're done. And its not as if setting anything below max P is a firm setting either anyway, its hints all the way down.