Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1730134pxb; Thu, 4 Feb 2021 23:08:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUYPb/Y6kTpoxd/TEkFLwL09pOIIvR7sHIUnjVi9E1+pVhSOPtQD7V57ToARDpVtgkXjkb X-Received: by 2002:a17:906:804a:: with SMTP id x10mr2776366ejw.184.1612508905053; Thu, 04 Feb 2021 23:08:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612508905; cv=none; d=google.com; s=arc-20160816; b=rj+D0elZ5nGuSSMWqAlTFyQJ1SckTr9vr07hur+qyHsbCJEURT0lbdcn0SaMPT0qSX DwgtR1ejLk2vQ1fpt5xxwddDcF/O6ErBYLhwP4j/1aiWkVBCJEKRXQllknWRc2OnJrJH SN1Ym120rRNTSzwNlSxBUPQ96x/t2qN16imlPKpzwaPkNxTFwB3QMk3GTcm5f/WjU6tY fdT38ylDHp0izN6ViFKxONfP/6QT2o6gNdKzRlztElY9zeSfk/y8UHgmcPbPaPHloIX4 wj91PnNH8aIDpTwgG8lfl9o8Oacj2Bu7cUukchEGOAErLJzibSi00u7dU0r/D0PkSxTz QHRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=xEzGVIXC4sfpYxe/RP9VFImuymYRyfV2ee4RmNk96HY=; b=qEkrNaZOtgsowIbas/sfZv8vIWcielQSBiFqOvEx4GAd9xuaYGuXE1WS6Z4cLRR2fl bFVJEK8I+/C5dBDx0BqbRGv2kAozIj7TmUGLZ9pALDbsfJsCp8v67bXR2Cym+gp2TcXK 8gaHOqBgd5H5+IcHxqSbI6crPfbHwppuBuMzUtGamr7uvY0Ruf2UR5sJ6mOXTSYd1Oip uqCRHtIIED9+vzPuHaYU5PMGUQRaHmG80mrxoKmNeb0orZgx6Q+wDVI6P7hp9fFJdlXg 70bN3kLtBhf7EDPFJtsY6gDuRlvR0/YfT8bnwuenV8auhxR6K63wwWYW714QsI8b4OK+ yosw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e13si3906143edj.425.2021.02.04.23.07.58; Thu, 04 Feb 2021 23:08:25 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230506AbhBEHHN (ORCPT + 99 others); Fri, 5 Feb 2021 02:07:13 -0500 Received: from mx2.suse.de ([195.135.220.15]:41348 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231230AbhBEHHI (ORCPT ); Fri, 5 Feb 2021 02:07:08 -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 48858B038; Fri, 5 Feb 2021 07:06:26 +0000 (UTC) Message-ID: <1612508785.19825.6.camel@suse.cz> Subject: Re: [PATCH v1 1/2] cpufreq: ACPI: Extend frequency tables to cover boost frequencies From: Giovanni Gherdovich To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Linux ACPI , Peter Zijlstra , Srinivas Pandruvada , Viresh Kumar , Mel Gorman , Michael Larabel , Juri Lelli , Vincent Guittot Date: Fri, 05 Feb 2021 08:06:25 +0100 In-Reply-To: <8467867.3EdU9UaQ17@kreacher> References: <13690581.X0sz4iL7V8@kreacher> <8467867.3EdU9UaQ17@kreacher> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.6 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-02-04 at 18:25 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > A severe performance regression on AMD EPYC processors when using > the schedutil scaling governor was discovered by Phoronix.com and > attributed to the following commits: > > 41ea667227ba ("x86, sched: Calculate frequency invariance for > AMD systems") > > 976df7e5730e ("x86, sched: Use midpoint of max_boost and max_P > for frequency invariance on AMD EPYC") > > [snip] > > Fixes: 41ea667227ba ("x86, sched: Calculate frequency invariance for AMD systems") > Fixes: 976df7e5730e ("x86, sched: Use midpoint of max_boost and max_P for frequency invariance on AMD EPYC") > Fixes: db865272d9c4 ("cpufreq: Avoid configuring old governors as default with intel_pstate") > Link: https://www.phoronix.com/scan.php?page=article&item=linux511-amd-schedutil&num=1 > Link: https://lore.kernel.org/linux-pm/20210203135321.12253-2-ggherdovich@suse.cz/ > Reported-by: Michael Larabel > Diagnosed-by: Giovanni Gherdovich > Signed-off-by: Rafael J. Wysocki > --- > drivers/cpufreq/acpi-cpufreq.c | 107 ++++++++++++++++++++++++++++++++++++----- > 1 file changed, 95 insertions(+), 12 deletions(-) > > Index: linux-pm/drivers/cpufreq/acpi-cpufreq.c > =================================================================== > --- linux-pm.orig/drivers/cpufreq/acpi-cpufreq.c > +++ linux-pm/drivers/cpufreq/acpi-cpufreq.c > [...] Tested-by: Giovanni Gherdovich Reviewed-by: Giovanni Gherdovich Note there is also the Tested-by: Michael, from the other thread https://lore.kernel.org/lkml/5ea06dbe-255c-3d22-b9bd-6e627c5f94af@phoronix.com/ I tested this patch with the "NASA Parallel Benchmarks" from [link below], the results confirms that the 5.10 performance is recovered: Ratios of completion times, lower is better (5.10 is the baseline) 5.10 5.11-rc6 5.11-rc6-ggherdov 5.11-rc6-rafael ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Integer Sort 1.00 1.21 0.91 0.93 Embarrassingly Parallel 1.00 1.60 1.00 1.00 Discrete FFT 1.00 1.68 0.67 0.67 CPU : MODEL : 2x AMD EPYC 7742 FREQUENCY TABLE : P2: 1.50 GHz P1: 2.00 GHz P0: 2.25 GHz MAX BOOST : 3.40 GHz [link] https://www.nas.nasa.gov/publications/npb.html Thanks, Giovanni