Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp4295672ybe; Mon, 9 Sep 2019 07:17:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqxqBXg4wgaRoS4QvTEmC3NU+n+cwT2A4WUHnobSfn1E0aZ1cf8SONsHPFAvPjKPAFQxIt2i X-Received: by 2002:a50:886d:: with SMTP id c42mr22207757edc.24.1568038653170; Mon, 09 Sep 2019 07:17:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568038653; cv=none; d=google.com; s=arc-20160816; b=q2m8RPlX5zFG+MJnrh1toobedu6vE1EpYrtNdVWV7mpjr3g3LT2I7qoRQqfLsTIXdl oo5QRijtniQIwCpyyj4PKpNyMKda30SBXNZ80qHNAb9yxR/AZur6BP2tBJ3FyHE8sMFb brA5uPhvCNPrlDyP3BQXmsZdeG9czcAg9jNc97VP3boGqRdkSvaG38qMde0i9FsdiFYO qI+B6+Utp/I00VNCIsC5zWPKhG0TDuNZRBW7dxfiP80qM5JqyYTuARqZilwfJ2O3SFyg wJVDQOwtT0E4cAdTcyxLQrGwWNO/Ge6iwA+iO3OYcJJ9/9B4RmRJmhBEQ3G17yBT3Sjh Hmfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=lu0ogUQOqlI69QNNCwT7YqFor4c+PwfuZ01L3VHvZzY=; b=hXVWG9D3E+1ez0+6HhVbh/MbrDZH0o4AUQ0spY+IiII6Wbw46tOKblnb25ABtnf5UT Efz+rPNoAr2L37bljqRaUPdYKuaTWaodlIc6uKar3T9/lN3NbXh8eZ3fkMCMzXyMdkzw e9hm/5yKD9Z1oe6/r5K/V9B3o+VsoWbVBWQQVMCAdkUEWxeZva9Gx3uT++3dEX72h3p0 awotz/AwuBxEVjSMjWfW9bZ19SQFhmpaghBesRAGWf3fy3fOtHiWlNCu/qNjq6X7/loz uHNrJUbwMDEqQeVk9YdrBB4EZD38BY0w5Ibqmj8aGeLh1zThrU9MPG6Wb8fZtFRziDMv Z0aA== 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 i6si5267528ejc.380.2019.09.09.07.17.09; Mon, 09 Sep 2019 07:17:33 -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 S1733066AbfIICha (ORCPT + 99 others); Sun, 8 Sep 2019 22:37:30 -0400 Received: from mx2.suse.de ([195.135.220.15]:54580 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731928AbfIICh3 (ORCPT ); Sun, 8 Sep 2019 22:37:29 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BCA83AE5E; Mon, 9 Sep 2019 02:37:27 +0000 (UTC) From: Giovanni Gherdovich To: srinivas.pandruvada@linux.intel.com, tglx@linutronix.de, mingo@redhat.com, peterz@infradead.org, bp@suse.de, lenb@kernel.org, rjw@rjwysocki.net Cc: x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, mgorman@techsingularity.net, matt@codeblueprint.co.uk, viresh.kumar@linaro.org, juri.lelli@redhat.com, pjt@google.com, vincent.guittot@linaro.org, qperret@qperret.net, dietmar.eggemann@arm.com, Giovanni Gherdovich Subject: [PATCH 0/2] Add support for frequency invariance for (some) x86 Date: Mon, 9 Sep 2019 04:42:14 +0200 Message-Id: <20190909024216.5942-1-ggherdovich@suse.cz> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a resend with of Peter Zijlstra's patch to support frequency scale-invariance on x86 from May 2018 [see 1]. I've added some modifications and included performance test results. If Peter doesn't mind, I'm slapping my name on it :) The changes from Peter's original implementation are: 1) normalizing against the 4-cores turbo level instead or 1-core turbo 2) removing the run-time search for when the above value isn't found in the various Intel MSRs -- the base frequency value is taken in that case. The section "4. KNOWN LIMITATIONS" in the first patch commit message addresses the reason why this approach was dropped back in 2018, and explains that the performance gains outweight that issue. The second patch from Srinivas is taken verbatim from the May 2018 submission as it still applies. I apologies for the length of patch #1 commit message; I've made a table of contents with summaries of each section that should make easier to skim through the content. This submission incorporates the feedback and requests for additional tests received during the presentation made at OSPM 2019 in Pisa three months ago. [1] https://lore.kernel.org/lkml/20180516044911.28797-2-srinivas.pandruvada@linux.intel.com/ Giovanni Gherdovich (1): x86,sched: Add support for frequency invariance Srinivas Pandruvada (1): cpufreq: intel_pstate: Conditional frequency invariant accounting arch/x86/include/asm/topology.h | 29 +++++++ arch/x86/kernel/smpboot.c | 180 +++++++++++++++++++++++++++++++++++++++- drivers/cpufreq/intel_pstate.c | 5 ++ kernel/sched/core.c | 1 + kernel/sched/sched.h | 7 ++ 5 files changed, 221 insertions(+), 1 deletion(-) -- 2.16.4