From patchwork Fri Jan 22 20:40:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giovanni Gherdovich X-Patchwork-Id: 369057 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38384C433DB for ; Fri, 22 Jan 2021 20:47:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 042AF23B06 for ; Fri, 22 Jan 2021 20:47:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729571AbhAVUqy (ORCPT ); Fri, 22 Jan 2021 15:46:54 -0500 Received: from mx2.suse.de ([195.135.220.15]:52088 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729335AbhAVUlf (ORCPT ); Fri, 22 Jan 2021 15:41:35 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 16193AF54; Fri, 22 Jan 2021 20:40:46 +0000 (UTC) From: Giovanni Gherdovich To: Borislav Petkov , Ingo Molnar , Peter Zijlstra , "Rafael J . Wysocki" , Viresh Kumar Cc: Jon Grimm , Nathan Fontenot , Yazen Ghannam , Thomas Lendacky , Suthikulpanit Suravee , Mel Gorman , Pu Wen , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Michael Larabel , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, Giovanni Gherdovich Subject: [PATCH v2 0/1] AMD EPYC: fix schedutil perf regression (freq-invariance) Date: Fri, 22 Jan 2021 21:40:37 +0100 Message-Id: <20210122204038.3238-1-ggherdovich@suse.cz> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Michael Larabel from Phoronix.com graciously tested v1, see results at: AMD EPYC 7702 - https://openbenchmarking.org/result/2101210-PTS-LINUX51178 AMD Ryzen 9 5950X - https://openbenchmarking.org/result/2101212-HA-RYZEN959566 The reported regression is recovered, and some workloads even report an improvement over the v5.10 results. Thanks Michael for the feedback! v1 at https://lore.kernel.org/lkml/20210121003223.20257-1-ggherdovich@suse.cz/ Changes wrt v1: - move code around so that it builds for non-x86 architectures too Giovanni Gherdovich (1): x86,sched: On AMD EPYC set freq_max = max_boost in schedutil invariant formula drivers/cpufreq/acpi-cpufreq.c | 64 +++++++++++++++++++++++++++++++- drivers/cpufreq/cpufreq.c | 3 ++ include/linux/cpufreq.h | 5 +++ kernel/sched/cpufreq_schedutil.c | 8 +++- 4 files changed, 76 insertions(+), 4 deletions(-) Tested-by: Michael Larabel