Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3216881imb; Tue, 5 Mar 2019 04:03:15 -0800 (PST) X-Google-Smtp-Source: APXvYqykdMimeOXRC9+hCszHB+QnoLJB1XhAtMe6mlE2aXHjBtNGGPSr9HqJ+YqaWGIdLhZSid0w X-Received: by 2002:a17:902:f302:: with SMTP id gb2mr864951plb.51.1551787395228; Tue, 05 Mar 2019 04:03:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551787395; cv=none; d=google.com; s=arc-20160816; b=JDY7+hz0ULVpx2eAx+hFOemh+LxOOmN9lmsnNkAZA1akAujJ/j/MV/EctEN6cAbPfT cVcfyZIcB5r3o6JysutMK62hTI1jFGAYwnrcUZz159P9/Ym2O+ecpDpG0wng42zrBQZK ur9dtmOVKAkcdfGkQ2svbSdPp/sWaQHa4fpHTs8dfiGq2/CZ588CDC+YRjvJFOPIk9uX dBojwcz6+r4eJzXr2nGxBDdCnNwIK64z9rhXj0Vp8u3oqV9CUZgUUDHrjt4g3//dqwUk QdK6Ryxu02K+CHPldmQEdauildR6VoI4h3g5NMtgQCAAzjNGluemVBekJwFzBIipWl0M wQNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UFu5GhErTqglD1tMONSCrUeDFJhCGj2/sVg+QqnG09k=; b=UBDEi6qNzp0H98OWQXgT5HjtgP3ezDEzzpUpacYZg9XdSd+xnSwjhBC9DHvM1VkuK4 5siEyDMCgNBOo7vTVw19UaouLmbazU5JF6cpj2SsluHMKct6N8uHxeGWNxuls5+WwDeh I1RlEKByKXnYNqatbSRjOORdY6fFRThrYalqTbXjJ8ESIOgnex4sWKCugTr6SL5sa5Sq xV9kPE+WRrROmVq8OISwgHyauzrOuVDkHV6cj1REpfS51ZuQikVam/LjCch3I9xlW1Ux 0kf74iUlJvJtY/RxdODwhkAhZbiz/ZYze33K0hNo/X7o7NNinFmjl6NjTPBWIKgxm2hS xI+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si8742103plb.140.2019.03.05.04.02.58; Tue, 05 Mar 2019 04:03:15 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728036AbfCEMAr (ORCPT + 99 others); Tue, 5 Mar 2019 07:00:47 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:47542 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728013AbfCEMAq (ORCPT ); Tue, 5 Mar 2019 07:00:46 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 490C2A78; Tue, 5 Mar 2019 04:00:46 -0800 (PST) Received: from queper01-lin (queper01-lin.cambridge.arm.com [10.1.195.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C271D3F71D; Tue, 5 Mar 2019 04:00:44 -0800 (PST) Date: Tue, 5 Mar 2019 12:00:43 +0000 From: Quentin Perret To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Linux PM , LKML , Viresh Kumar , Srinivas Pandruvada , Chen Yu , Gabriele Mazzotta Subject: Re: [RFT][Update][PATCH 2/2] cpufreq: intel_pstate: Update max CPU frequency on global turbo changes Message-ID: <20190305120040.y2vmnxrch6kgya3e@queper01-lin> References: <9956076.F4luUDm1Dq@aspire.rjw.lan> <20190305104256.7kvedlttuovmptpc@queper01-lin> <2336151.IZk3Z8DVvP@aspire.rjw.lan> <6357319.Iupbu3ldGQ@aspire.rjw.lan> <20190305114406.GV32494@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190305114406.GV32494@hirez.programming.kicks-ass.net> User-Agent: NeoMutt/20171215 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 05 Mar 2019 at 12:44:06 (+0100), Peter Zijlstra wrote: > On Tue, Mar 05, 2019 at 11:58:37AM +0100, Rafael J. Wysocki wrote: > > So after the Peter's patch "sched/cpufreq: Fix 32bit math overflow" > > I will need to recompute sg_cpu->min in sugov_limits(). > > So there's still an open question; do we want that ->min thing to depend > on available frequencies _at_all_ ? > > I'm thinking it might be a good thing to have the iowait boost curve be > independent of all that. > > Like said; if we set it at 128 (static), it takes 9 consequtive wake-ups > for it to reach 1024 (max). While now the curve depends on how wide the > gap is between min_freq and max_freq. And it seems weird to have this > behaviour depend on that. To me at least. I'm not conceptually against it, but that really wants testing I think. I can already see how we're gonna see regressions: 128 is much lower than 'min' on my juno for ex, so with the approach you suggest it's gonna take several wake-up before the iowait stuff does anything at all. The first steps will all be below the min freq, so they'll just be transparent, while right now the iowait boost kicks in much faster :/ OTOH, you also have platforms like the recent Snapdragons with 30+ OPPs, and for them starting at 128 will speed things up. So maybe what you want is to start at max(min, 128) ? > Now, I don't know if 128/9 is the right curve, it is just a random > number I pulled out of a hat. But it seems to make more sense than > depending on frequencies. And btw why do you need 9 steps to reach MAX starting from 128 ? If we double the boost at each wakeup you'll do 128 -> 256 -> 512 -> 1024 no ? Thanks, Quentin