Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3501464imm; Thu, 17 May 2018 09:43:20 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8mWOs7VpGgs89915U40w0Ad4IoyEUZ0kc2K5PN0+ICt7kW7D8Arbin48kWRFFQZS8fkPp X-Received: by 2002:a17:902:6903:: with SMTP id j3-v6mr5858602plk.313.1526575400593; Thu, 17 May 2018 09:43:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526575400; cv=none; d=google.com; s=arc-20160816; b=rIgJ0AzQTPdGMNC/z2BXT3f1zmH8YYEdY/Ug51UOwTDyngNL+gwGKCr6ZSIr4EgZZu Bre9MlCJA2uPiGfVF4/jIzVWjZfe6BVT5goyHjmmqyBqUxnI7t+xSey0NJ6F3fX3JnQV Q1eK3RxPZeUVr4QiMGbpmYRkdTNtrDXFPwvj3o+CyItbQ4zbDXLFeFSbEr71yEol3Wdh QdrKoRpkWZkEvs2iBnVG0zqQbgN1lOq2jPCX2PiixEvSxXeILKZIu0cVOYef9FexO3xf V3cK9kA3DA/sof2xb2It8ZvcbBp47fWeIzSiF7eZBdifXPtZKKQ3bAN6mO2kQmwqskLZ /uDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=oM5d4NfoYLsBUXbN+e94z/3YRoHcY0qD2H6F1njTf0I=; b=X1aS+wdCwYoCJCNaX7hQFZWHW7TX99XJmpIDcpERgLqrVoq5FNqbCHK8McHRYpl/FD Isqd2qjcffkL8L6YXEpuXWYiP+MfqD0MI4yyprVuul2gyOd8l87ENcc0BqamIJdr3G2v vmnyvz5I0z5Kq554ldTzMjquY7fFn7GRBFpibiJFuTpVVfQqcsHOXpwzmelWDlvj7wwt bLewPiu5cwhDubOD1C2BqQ1l3B3c7sObjRPHxvr5LR2H4avcHiNETIAkw2WpGkb2gR3z 6H0HVMRYQO0ENgGDi2wlFr9QpCb2RmOWyJ/PHimB20oWjzWs/THkOxZbOSqbt7NYXQ7d 4uhw== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w63-v6si4223702pgd.32.2018.05.17.09.43.06; Thu, 17 May 2018 09:43:20 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752785AbeEQQmr (ORCPT + 99 others); Thu, 17 May 2018 12:42:47 -0400 Received: from mga05.intel.com ([192.55.52.43]:27508 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbeEQQmp (ORCPT ); Thu, 17 May 2018 12:42:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2018 09:42:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,411,1520924400"; d="scan'208";a="229386357" Received: from spandruv-mobl.jf.intel.com ([10.252.198.33]) by fmsmga005.fm.intel.com with ESMTP; 17 May 2018 09:42:39 -0700 Message-ID: <1526575358.11765.14.camel@linux.intel.com> Subject: Re: [RFC/RFT] [PATCH 02/10] cpufreq: intel_pstate: Conditional frequency invariant accounting From: Srinivas Pandruvada To: Peter Zijlstra 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 Date: Thu, 17 May 2018 09:42:38 -0700 In-Reply-To: <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> <20180517161649.GX12217@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6 (3.22.6-2.fc25) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-05-17 at 18:16 +0200, Peter Zijlstra wrote: > 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? Any PERF_CTL setting above what we call "Turbo Activation ratio" (which can be less than P1 read from platform info MSR) will do that on these systems (Most clients from Ivy bridge). > So we still need to compute a P state, but as soon as we > reach max P, we're done. What will happen if we look at all core turbo as max and cap any utilization above this to 1024? > > And its not as if setting anything below max P is a firm setting > either > anyway, its hints all the way down.