Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1901190pxb; Fri, 5 Feb 2021 04:29:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJxJAqrpWKnc8IqXX9O890Njmjihv0S0pViFA19zTsqCVekf//KopEvPUnXWa+AOzz1nhLeG X-Received: by 2002:a17:906:7f06:: with SMTP id d6mr3690093ejr.169.1612528169597; Fri, 05 Feb 2021 04:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612528169; cv=none; d=google.com; s=arc-20160816; b=ruzqGGMKUcpf7CMDJBfpMFznH920Wd0o2QL5z/ksvCWYAg3J6A+oLgkYQqKXqwkprw 8Zv3U8QyZWOFfKNq8jXCIUDGDscoizV8DCUQYrye/0p8+6JkqnThWOjyGpL07qpEhANv ELJbG5khTOIoZiUlzrMmDzTre7Jbjyj2J9gH6/c9P0JqIg8Sv7uIWIapH3YGM3ciiJWx AKFnH4AQetNNaSlfPci40q0qiL7b+tv3E6+ogJOlTbsn+sFo/KiUYXqyWRiCMDlMKFfx dfoiF5B8LMfm81kd+2MAHilialLG6LXk70gz4f9AkTZj2phIZsJLjK1xGAEPgt5r3OdX Aj7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=1zbYJU7/7wruMhCCGProhaCLIU7PuY0G0RxvpsB363c=; b=qlY0FaAfzneoDFQyA4qEHQ7Ee1SNRFDuVbwymhp/dRxh7sFsvbd0Rkvmtl/RyWULbD VK/fLXJoCNi8/3kqfTcnySlwBYl+D++4O163wuNisxWqEh8d30/HjoqdTJRmqPDBl4ef N6TT+RsrFuqoSZ5ha+H1oPZE43Ierb/OJyGoBC0Mn9tkXzuDrib5hkE/aG+rka7+sBgG qVpwnta5oEPDUel02QRTeoePE9udvTpjFgeCcYq8/FLjhlf9833golxOiHBPenZwGAER vRYLYBc4aLeJ/FXdDR91VqI6NROV47rH500I2O6kksqS/Fj+TEfjzAtv1hwnJS0IjQY5 JXUA== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx12si5007738ejb.547.2021.02.05.04.29.03; Fri, 05 Feb 2021 04:29:29 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232120AbhBEM2C (ORCPT + 99 others); Fri, 5 Feb 2021 07:28:02 -0500 Received: from mail-ot1-f44.google.com ([209.85.210.44]:39121 "EHLO mail-ot1-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231423AbhBEMYD (ORCPT ); Fri, 5 Feb 2021 07:24:03 -0500 Received: by mail-ot1-f44.google.com with SMTP id d7so4421176otq.6; Fri, 05 Feb 2021 04:23:48 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1zbYJU7/7wruMhCCGProhaCLIU7PuY0G0RxvpsB363c=; b=cP15nKYKNG9EXDemnLPQak7q4EJUuGr84OCuaNlTVQQzqJ0buBEx8+UXmrLCgY9gGh ETMfyQlJKtz8eokPP2Iw5KnjptUr+qvTI9m/C6DnDeMnVzZG+RQpFhVnA1TRq7HidRr1 JkAVPRALRy655bZlNKT58u5u4IYiuc7UalRVVcdJNqv1xQfWG00t7k0/07Dvnbl7R19z 0wVZIAX3ZYip9zoVTFbONDfFuv1sq35VkKFGAH1d4lnG52bzAsIlw6vOYFfB1H1mhxhz T0G2Ufnlu0hKuSpow5BqHcTCdr8aYf7DPu/IxbAPCdhWrEx8tabGnuegGIbzfWy4fpKt NDmg== X-Gm-Message-State: AOAM531FxdE7X0xbfvadi55h+fGA7SnhIAkKLUltHMtzYKxFFrBXoYVM ytuZPs6iHmqz+ufUly5rdvwAsuHsM0vgofhHp4s= X-Received: by 2002:a9d:7a4a:: with SMTP id z10mr3300736otm.206.1612527802672; Fri, 05 Feb 2021 04:23:22 -0800 (PST) MIME-Version: 1.0 References: <13690581.X0sz4iL7V8@kreacher> <9510730.kuOQ4KzHjt@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 5 Feb 2021 13:23:08 +0100 Message-ID: Subject: Re: [PATCH v1 2/2] cpufreq: ACPI: Update arch scale-invariance max perf ratio if CPPC is not there To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Linux PM , LKML , Linux ACPI , Srinivas Pandruvada , Viresh Kumar , Giovanni Gherdovich , Mel Gorman , Michael Larabel , Juri Lelli , Vincent Guittot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 5, 2021 at 12:59 PM Peter Zijlstra wrote: > > On Thu, Feb 04, 2021 at 06:34:32PM +0100, Rafael J. Wysocki wrote: > > > arch/x86/kernel/smpboot.c | 1 + > > drivers/cpufreq/acpi-cpufreq.c | 8 ++++++++ > > 2 files changed, 9 insertions(+) > > > > Index: linux-pm/drivers/cpufreq/acpi-cpufreq.c > > =================================================================== > > --- linux-pm.orig/drivers/cpufreq/acpi-cpufreq.c > > +++ linux-pm/drivers/cpufreq/acpi-cpufreq.c > > @@ -806,6 +806,14 @@ static int acpi_cpufreq_cpu_init(struct > > state_count++; > > valid_states++; > > data->first_perf_state = valid_states; > > + } else { > > + /* > > + * If the maximum "boost" frequency is unknown, ask the arch > > + * scale-invariance code to use the "nominal" performance for > > + * CPU utilization scaling so as to prevent the schedutil > > + * governor from selecting inadequate CPU frequencies. > > + */ > > + arch_set_max_freq_ratio(true); > > } > > > > freq_table = kcalloc(state_count, sizeof(*freq_table), GFP_KERNEL); > > Index: linux-pm/arch/x86/kernel/smpboot.c > > =================================================================== > > --- linux-pm.orig/arch/x86/kernel/smpboot.c > > +++ linux-pm/arch/x86/kernel/smpboot.c > > @@ -1833,6 +1833,7 @@ void arch_set_max_freq_ratio(bool turbo_ > > arch_max_freq_ratio = turbo_disabled ? SCHED_CAPACITY_SCALE : > > arch_turbo_freq_ratio; > > } > > +EXPORT_SYMBOL_GPL(arch_set_max_freq_ratio); > > Acked-by: Peter Zijlstra (Intel) Thanks, I'm queuing up this lot for a post-rc7 late push.