From mboxrd@z Thu Jan 1 00:00:00 1970 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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 78D01C32753 for ; Fri, 2 Aug 2019 09:28:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5BB5F21773 for ; Fri, 2 Aug 2019 09:28:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388822AbfHBJ21 (ORCPT ); Fri, 2 Aug 2019 05:28:27 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:55229 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388741AbfHBJ21 (ORCPT ); Fri, 2 Aug 2019 05:28:27 -0400 Received: from 79.184.255.110.ipv4.supernova.orange.pl (79.184.255.110) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.275) id 2774d927111a2d21; Fri, 2 Aug 2019 11:28:24 +0200 From: "Rafael J. Wysocki" To: Viresh Kumar Cc: Srinivas Pandruvada , Len Brown , Linux PM , Vincent Guittot , "v4 . 18+" , Doug Smythies , Linux Kernel Mailing List Subject: Re: [PATCH V3 2/2] cpufreq: intel_pstate: Implement ->resolve_freq() Date: Fri, 02 Aug 2019 11:28:24 +0200 Message-ID: <2676200.jfxhmTd764@kreacher> In-Reply-To: References: <7dedb6bd157b8183c693bb578e25e313cf4f451d.1564724511.git.viresh.kumar@linaro.org> <23e3dee8688f5a9767635b686bb7a9c0e09a4438.1564724511.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday, August 2, 2019 11:17:55 AM CEST Rafael J. Wysocki wrote: > On Fri, Aug 2, 2019 at 7:44 AM Viresh Kumar wrote: > > > > Intel pstate driver exposes min_perf_pct and max_perf_pct sysfs files, > > which can be used to force a limit on the min/max P state of the driver. > > Though these files eventually control the min/max frequencies that the > > CPUs will run at, they don't make a change to policy->min/max values. > > That's correct. > > > When the values of these files are changed (in passive mode of the > > driver), it leads to calling ->limits() callback of the cpufreq > > governors, like schedutil. On a call to it the governors shall > > forcefully update the frequency to come within the limits. > > OK, so the problem is that it is a bug to invoke the governor's ->limits() > callback without updating policy->min/max, because that's what > "limits" mean to the governors. > > Fair enough. AFAICS this can be addressed by adding PM QoS freq limits requests of each CPU to intel_pstate in the passive mode such that changing min_perf_pct or max_perf_pct will cause these requests to be updated.