Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp338147pxu; Thu, 3 Dec 2020 01:17:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnbU0dvaizcRIQhF+jr5GUKwsgOkRwhE6ROWIMGYZD3l00X2o2lBRlyNLAMhNiZbi3KIjU X-Received: by 2002:a17:906:814a:: with SMTP id z10mr1624174ejw.96.1606987053371; Thu, 03 Dec 2020 01:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606987053; cv=none; d=google.com; s=arc-20160816; b=fDE0TTbq2LZ1DjZg1KOOJ3BpnEs6YvsNKlQTIXGkHY+JZjb9KLyS0NV+4LI5Uio4JY ByOy3Raz1vitiH810bXkcGTvGtxsAtsP+no4umDXOkkpWdCiH8foHLdkHYczv5T2xq8D 1juu8Psdrv5c2goFXXXMk8Dozn3JCI/Fj6GrgkBMZJM5NDVQlcglDORONHgFRt0tpaC1 lqYmVqRs8JvcsPsLLFJv4Vf52McVmcA0D0LKTSAo1v0b1u5uykl0qQMyCKNGHTnHs6h0 MxxFsJhBV9CPN3mJltyypxJ1Xzv/xGvZdIOLmEwk+MjIeWCENgwZPQFWZFtO+A0AWKqU 6wWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=x0ROyCIqqYbPXixaIjK+PBx0FyRM8sa8WhcGP5yS1Vg=; b=bQV1B98JhoVPZaO58025kENypL9dvOAtHNIUdVUZRM0Tj9yL/LyYGdkMR3dVXNGLeJ B3IQp9nwghCeqhMz2xbnxbMHGabzCrXZ8H7bEq3KQZgge4/YQxo6cFAvtVC2JmdBSPtg HYxfLhtdclfm3iZNhn+H9c/b5qoAisgbYrYct6NkcrSvgSa0j0AwtdKdO10YZS00vdAB teSQiMZ5krgKznM1m/WWT+dkgsUjPO/0+L5oar7gG3RdpHoTG4lPKJ3ISE2f3crAHsQZ K0MgJL5cltCZCY52mBwm+XgrhoADrfmoy3iWEIz/vx8cqTBNSN1nvV557xdwhru2amIB uCjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="3uI/s73b"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p2si704801ejx.577.2020.12.03.01.17.10; Thu, 03 Dec 2020 01:17:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="3uI/s73b"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388545AbgLCJOQ (ORCPT + 99 others); Thu, 3 Dec 2020 04:14:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728522AbgLCJOC (ORCPT ); Thu, 3 Dec 2020 04:14:02 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86517C061A4D; Thu, 3 Dec 2020 01:13:22 -0800 (PST) Date: Thu, 03 Dec 2020 09:13:20 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1606986800; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x0ROyCIqqYbPXixaIjK+PBx0FyRM8sa8WhcGP5yS1Vg=; b=3uI/s73boVpf9TDPkWLLTO27x9mjR8+xRi+eHcxt2+4XCGukoeoCdwyYsQlvzBnKn9bdUE 6RmeDFsiYOIz4cSQNLY75M77aS7L9+pjKieqiDOM+Sa8Qc0m4NouqOamhT30RoWOoEOeGP +Ar7dvX8cOw4cUX7j1db1s+Q7lKKG7G8l+kBF5egH0h4EvhoY3vw7aD+5JkXnc6QJ1lGKx YxxPOQAHKn+ZcM2BTggOXzlliUo03HkcJfl9Hsi+4B2N0FnmKXDiRZIGg6xTIh740lMHxw 037O7OycN7XwEMvmB0mRVXmR51+p5Rkj8VZbFqg9jZFcLdmNiJoAc+zN0MCgxA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1606986800; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=x0ROyCIqqYbPXixaIjK+PBx0FyRM8sa8WhcGP5yS1Vg=; b=oXNJVuIXo04bsbxYMEidWSsXRJ7BHwpxlfcC+09IcyGg5NAy8SUjiCYXvi/cXip+R9qEkd RhZ+bS3WY30TEBDA== From: "tip-bot2 for Giovanni Gherdovich" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] x86: Print ratio freq_max/freq_base used in frequency invariance calculations Cc: Giovanni Gherdovich , "Peter Zijlstra (Intel)" , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20201112182614.10700-4-ggherdovich@suse.cz> References: <20201112182614.10700-4-ggherdovich@suse.cz> MIME-Version: 1.0 Message-ID: <160698680049.3364.3119999970508477644.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the sched/core branch of tip: Commit-ID: 24f326686c925a848d603a2c22f1f6ed1b7786e2 Gitweb: https://git.kernel.org/tip/24f326686c925a848d603a2c22f1f6ed1b7786e2 Author: Giovanni Gherdovich AuthorDate: Thu, 12 Nov 2020 19:26:14 +01:00 Committer: Peter Zijlstra CommitterDate: Thu, 03 Dec 2020 10:00:35 +01:00 x86: Print ratio freq_max/freq_base used in frequency invariance calculations The value freq_max/freq_base is a fundamental component of frequency invariance calculations. It may come from a variety of sources such as MSRs or ACPI data, tracking it down when troubleshooting a system could be non-trivial. It is worth saving it in the kernel logs. # dmesg | grep 'Estimated ratio of average max' [ 14.024036] smpboot: Estimated ratio of average max frequency by base frequency (times 1024): 1289 Signed-off-by: Giovanni Gherdovich Signed-off-by: Peter Zijlstra (Intel) Link: https://lkml.kernel.org/r/20201112182614.10700-4-ggherdovich@suse.cz --- arch/x86/kernel/smpboot.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index c5dd5f6..3577bb7 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -2110,6 +2110,7 @@ static void init_freq_invariance(bool secondary, bool cppc_ready) if (ret) { init_counter_refs(); static_branch_enable(&arch_scale_freq_key); + pr_info("Estimated ratio of average max frequency by base frequency (times 1024): %llu\n", arch_max_freq_ratio); } else { pr_debug("Couldn't determine max cpu frequency, necessary for scale-invariant accounting.\n"); }