Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3289523imb; Tue, 5 Mar 2019 05:54:47 -0800 (PST) X-Google-Smtp-Source: APXvYqw/UWfIqQ0EhQNY4bPHSr9SkSeuTw7Ej6SoF/YWvfEDJ1xHm/IifKlWVAxe1GVAbXeS3WqO X-Received: by 2002:a65:6546:: with SMTP id a6mr1527624pgw.296.1551794086978; Tue, 05 Mar 2019 05:54:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551794086; cv=none; d=google.com; s=arc-20160816; b=qumjf3DHhZpLG4j/tYbHMdGoSAwYptHhuBMO3iocUH135fXw7ui3pl/712zBX4DRjP rrRhzdVpKX89oCXvT2J7hvmo1tmDi3ePyXaTl1A1kHp2MFEQbI2NyWQ5+e0JBsOb8XHD ksD8mRvSU6fBVLNWiVy/WMXKbx5lNMuHzum0Fju8w6stqJDE56cRSQUhr+X2aem0wPp2 +wc+0koC6V/2Hx5JOIKa4SXin//6CWsPnCWtY2n/2c8mQ3OlK41SkA3ps1OFBoeyqx83 QZ/HpAzuHf6j1B265mULJ3iyYck4gg/y6snk2+Pwl6K4b6IHBHpAlSIcDz6pwWVQ/G3E AdsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=N17F4f3lPRDlgSIcwn1LV6y8RvUye44wM/BftzSmEGI=; b=nDhGMDKLmDF4qVCxUJUhVFSbOyQLXJCSR5T3JDee7ECWfeo+7Spw+Lv8ZMJwSnwYip T++N4xPx+zbp2OKoG04SGgqnbw+Z9s228kd0LbNU8b9cBv+zdtO6ymBexrV+1octunLy Gruf+bKP8HCIqJRSQ0DePThPqcyBgQ9YmXehY/Raxa9/xWl1LWmeB5ERGUMa/Le0HxwP A73paDLQUkktjfd9E3LUsrCoyF+6QeKjSNS+kD/md8RGTe1QZv4Tsr24twD/lxuW2XRx stt/ron3sUWYOwmDawnzuqyfMcZxOrJe1MtO0AjlfQELNti1JqKidwNBN1WpXURG7I50 7knA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si8165746plk.438.2019.03.05.05.54.31; Tue, 05 Mar 2019 05:54:46 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727978AbfCELxK (ORCPT + 99 others); Tue, 5 Mar 2019 06:53:10 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:39113 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727424AbfCELxJ (ORCPT ); Tue, 5 Mar 2019 06:53:09 -0500 Received: by mail-ot1-f66.google.com with SMTP id e15so7164188otk.6; Tue, 05 Mar 2019 03:53:09 -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=N17F4f3lPRDlgSIcwn1LV6y8RvUye44wM/BftzSmEGI=; b=B5Geo0WKQSVgjcMqKrrYVq6QMp2kDc7ybomAgr2APoqSVZjKshUKdHCYw36cDHEZHQ o5pv+6fu7gK4MRzEvg8geNpmS/gGZKif7Xotr1MMB1Eq6Hm4izPfPiWkL59nf9W+IdfO BOMryfCoUXsqUT8D82ArDGNAJaNTGI5XYvfxOOyKEnMyRZ7PkMunkuO0f7lAXPanM8KM 3k/d+VsmDXQhM+TYlV2noZhKMlqIi05qVSIG0GNMdHJA57tkzeknz+7CZwrD135Fd08b lkJu9jh2DvHIA20z9KHZ0MuyngXDv4T9BBtUGrdPKmD4ZmePFt3QDQ1VMeadrDqUGzoP EX1A== X-Gm-Message-State: APjAAAWtLJm85GwjaKlZClmeCh5lCSlptYd97RvavnG3B6TNMtUJddYL 8Oi5y/UaPHgnfl3UFpeUsQuzrWCBHLNQ1ArOH3Y= X-Received: by 2002:a9d:718d:: with SMTP id o13mr647417otj.119.1551786788623; Tue, 05 Mar 2019 03:53:08 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: <20190305114406.GV32494@hirez.programming.kicks-ass.net> From: "Rafael J. Wysocki" Date: Tue, 5 Mar 2019 12:52:57 +0100 Message-ID: Subject: Re: [RFT][Update][PATCH 2/2] cpufreq: intel_pstate: Update max CPU frequency on global turbo changes To: Peter Zijlstra Cc: "Rafael J. Wysocki" , Quentin Perret , Linux PM , LKML , Viresh Kumar , Srinivas Pandruvada , Chen Yu , Gabriele Mazzotta Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 5, 2019 at 12:44 PM 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. > > 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. I agree.