Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp180800ybp; Thu, 3 Oct 2019 11:58:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqx1/PS9BRlqn2TMWZo0niVnmH5cM6IZvFJO8JIMPf2RDACNfCptc6PJPsez4iG9Kt3Dj2KI X-Received: by 2002:a05:6402:1f4:: with SMTP id i20mr11161939edy.137.1570129086485; Thu, 03 Oct 2019 11:58:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570129086; cv=none; d=google.com; s=arc-20160816; b=DzUvRM+btd7l47YnkeeZUyUlV45P8xUKbn54Jp/XcbYvZAzxsiKlB9Wf5s8G88Q4UL qCajBgro7rGFSvJmhObvxmZGOxnXgk8nQOhZS3rUkpWKMZ9Xm6vrnmY3Cdomtyi6Imfw /3FnIHW6jxU0i+Sp4Ppz1NdOeVa2BW2Qgr/98agZtU95iFVLmhlaWpAr0W50RSXG3q5u 8pYrvVWr48omrOO62K+oRJIHmsbbQd2jyQJGoI5B/6btzSANEIskpL5V7NS/l5nqEjNG w8rhnRixM6tkpjf8CSgvSNa3cno31FJCuJEgB3cphOWzrOaiS48ZGApJcIVzGIT0IgjK 3+sA== 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:message-id:date:subject:cc:to:from; bh=zRB1F1DYMBTMmft0ZU1YgSoF61lgL7cxx4qeRDemQ/E=; b=tUvbM/ZyfMI9j84P8pBuNQHVYplLO79e2p0oMfvTzKI7yaMYPutzTSpLTkHoIG3sur YP38EEz/+dV97stwFgm2aibuY9oNLH084QKIRUJbcpCVTkrejLs/FC6h9OsCbkrqCFyd t/C6aNx0eSZldluzYEpU0hyYGLErh/HXdlmAtqL+prQoETCIcLdo/JcakofJ3PA3rUGl VZBAwv/xTP/RF8fUU95d7UYq736icbjISywcuyz/opTvEdtF+5WbxuqtGYALzQjBcM39 BKZ8b/2Z10vNdRTDiZmPU7+Yc5+f5K8JrpT4fMOBtYkNbtEF595vzbJ///nk6bVeKkzl JY/w== 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 h7si1698104ejx.59.2019.10.03.11.57.42; Thu, 03 Oct 2019 11:58:06 -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 S1732995AbfJCSFn (ORCPT + 99 others); Thu, 3 Oct 2019 14:05:43 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:59760 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730804AbfJCSFn (ORCPT ); Thu, 3 Oct 2019 14:05:43 -0400 Received: from 79.184.253.225.ipv4.supernova.orange.pl (79.184.253.225) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.292) id 7611574cb3852698; Thu, 3 Oct 2019 20:05:40 +0200 From: "Rafael J. Wysocki" To: Giovanni Gherdovich Cc: Srinivas Pandruvada , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , Borislav Petkov , Len Brown , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Mel Gorman , Matt Fleming , Viresh Kumar , Juri Lelli , Paul Turner , Vincent Guittot , Quentin Perret , Dietmar Eggemann , Doug Smythies Subject: Re: [PATCH v2 2/2] cpufreq: intel_pstate: Conditional frequency invariant accounting Date: Thu, 03 Oct 2019 20:05:40 +0200 Message-ID: <13106850.QMtCbivBLn@kreacher> In-Reply-To: <20191002122926.385-3-ggherdovich@suse.cz> References: <20191002122926.385-1-ggherdovich@suse.cz> <20191002122926.385-3-ggherdovich@suse.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday, October 2, 2019 2:29:26 PM CEST Giovanni Gherdovich wrote: > From: Srinivas Pandruvada > > intel_pstate has two operating modes: active and passive. In "active" > mode, the in-built scaling governor is used and in "passive" mode, > the driver can be used with any governor like "schedutil". In "active" > mode the utilization values from schedutil is not used and there is > a requirement from high performance computing use cases, not to read > any APERF/MPERF MSRs. Well, this isn't quite convincing. In particular, I don't see why the "don't read APERF/MPERF MSRs" argument applies *only* to intel_pstate in the "active" mode. What about intel_pstate in the "passive" mode combined with the "performance" governor? Or any other governor different from "schedutil" for that matter? And what about acpi_cpufreq combined with any governor different from "schedutil"? Scale invariance is not really needed in all of those cases right now AFAICS, or is it? So is the real concern that intel_pstate in the "active" mode reads the MPERF and APERF MSRs by itself and that kind of duplicates what the scale invariance code does and is redundant etc?