Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1716797ybg; Sat, 19 Oct 2019 00:59:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwU1FyT1HpHVlZj8JAvIQsnJ2Uj6XuSUy/rwcybpfMRtIaiL/qZMTCyT5HdUkdghmilX+mH X-Received: by 2002:a17:906:3615:: with SMTP id q21mr12197613ejb.152.1571471984210; Sat, 19 Oct 2019 00:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571471984; cv=none; d=google.com; s=arc-20160816; b=SoKrkYFjc3z6sjVFZPgX071tNd0ZRruKOyDX9hr5/54psrsdBIP7x/mtREG3bVoaXY 2QnIX/0Gb/bd+HKelZUbTSKvQ/0kwGgL7QvwEEYMN0kuBlE0eNbbV8oFC1uzGOJ3+l7Z 7jPgHDgVIH80siAet99B4HheGwQonYlP5fivljFajxPRE2jN5hx31S+sKlVADQJrud7H IeMGXN6xV01Jrr8qtmcGXPKXS+xX/UWSpy9KizHcJItn8soc90c1j4cGPnTTsTh3eipy EN0a6BL56w36VbVTPhyexw9XIwnVUMMvyd1AU9/M21/pj+apeCCKetYHIv+sgXMkWwBq fXiw== 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:dkim-signature; bh=fO5rhP6K+WvHSLdZS4qIOwy93CBX5JrPts4O8zPdzYA=; b=sHdXAkSkHQZIIeRSZzQKaYDU5rCSmIuJfQbxlAMpJhJN15eQY5fO7o/WwHVPeLccZB ZESGuuoAJAKkS4DYPdmlHxMqygIXj4MV4Z88O1PJb2RiruIrZKMsxW8OBKmt7BT2moOx AJoZ7+Mz1wKEp7puUSvbX6njpGErkywrLibFhJgYnRDadt4CcUu6gfhgN0a/ia9QQZsb 2q4VxN/PixaCGjaoEFdh+KIZmrs/uol9Wzqc6hK4+xm//Pm8Xp8ulQQ1sB6d2N5TTlME O+BqZB4oxpSrY8S//b8mWAEVyd+l4rd0wxnCF/BjzCI5k696y4korNLIAJ4QWgDR1/BB DQ/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YJG8HcWn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ay2si5190772edb.343.2019.10.19.00.59.21; Sat, 19 Oct 2019 00:59:44 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=YJG8HcWn; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2504964AbfJRI1t (ORCPT + 99 others); Fri, 18 Oct 2019 04:27:49 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:44039 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392728AbfJRI1t (ORCPT ); Fri, 18 Oct 2019 04:27:49 -0400 Received: by mail-pg1-f193.google.com with SMTP id e10so2942286pgd.11 for ; Fri, 18 Oct 2019 01:27:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=fO5rhP6K+WvHSLdZS4qIOwy93CBX5JrPts4O8zPdzYA=; b=YJG8HcWnBa42iQUCBZi5ndFdutUmpewAtXsB0gND6NykpkWOPqPnM9k6YtUZUImg2J jU8FIXzxGeuG3+Tg7NHlzpj0hoTu3YiNnjmKy6RyJ6ApKMRxY6FsTkHTwCDSpGFBiUIE l3vJnbtewBJzAZjfZyihH8/EBZtVhikhf090q3MtNGgNSVE1nRwCyGvYgMyIr8ts/PfT n2FmH117syo5pL2uvGxQpBcZJZUiX3nRFBkUKkCDNpxBRYHvsStOuxEAb58S7cRNA6YH +GOzybZSGgKZLVya0j8z3SMAmr/vgsAOBdKtu/jmAjhgnUJ/NSb89VEvvcPSEXeFp82y MSLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=fO5rhP6K+WvHSLdZS4qIOwy93CBX5JrPts4O8zPdzYA=; b=EU9WhUX6nifoQ1liB5v0irVKedVlRI246mZzuOBE05TshGetMLvcohcnClk4/XXMt0 aCyqhu4FBoLpSbLhPfoaK+NiLeLS7GLY1XcmWbwEBifAUuxdiWg7Zzcoy3QweLZ2XX6B FjGx5+IUwT4nu2w/pJPO+NuxQgmboye0vnTfBA6dOnhwd07UxRAXyxGmHrrFjvVIUQgA TnDA2eFsqKctDcmBcCvcpdJ60Xm3lT2y2DfyyuwxcEchAH5KUAc49Jl08GbtTbMcLyFY sy5/2bjKo1wV9cKEJnhF1S+sxPVZnO7LkZ7DCTNNzFK69QSMJwwyvU/H29tdwkb34hyZ MECw== X-Gm-Message-State: APjAAAWex8GAM4sgZbfj8IIxuxAIkAYIXEi+Kovy+HnAvC2Okx60rjU9 KpVVLx0qBmyKtV41U77wCBOJcw== X-Received: by 2002:a65:6701:: with SMTP id u1mr8928898pgf.368.1571387268548; Fri, 18 Oct 2019 01:27:48 -0700 (PDT) Received: from localhost ([122.172.151.112]) by smtp.gmail.com with ESMTPSA id g7sm10492580pfm.176.2019.10.18.01.27.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 18 Oct 2019 01:27:47 -0700 (PDT) Date: Fri, 18 Oct 2019 13:57:45 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Sudeep Holla , "Rafael J. Wysocki" , Linux PM , Linux ACPI , LKML , Dmitry Osipenko Subject: Re: [RFT][PATCH 0/3] cpufreq / PM: QoS: Introduce frequency QoS and use it in cpufreq Message-ID: <20191018082745.3zr6tc3yqmbydkrw@vireshk-i7> References: <2811202.iOFZ6YHztY@kreacher> <20191016142343.GB5330@bogus> <20191017095725.izchzl7enfylvpf3@vireshk-i7> <20191017095942.GF8978@bogus> <20191018054433.tq2euue675xk4o63@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-10-19, 10:24, Rafael J. Wysocki wrote: > On Fri, Oct 18, 2019 at 7:44 AM Viresh Kumar wrote: > > > > On 17-10-19, 18:34, Rafael J. Wysocki wrote: > > > [BTW, Viresh, it looks like cpufreq_set_policy() should still ensure > > > that the new min is less than the new max, because the QoS doesn't do > > > that.] > > > > The ->verify() callback does that for us I believe. > > It does in practice AFAICS, but in theory it may assume the right > ordering between the min and the max and just test the boundaries, may > it not? I think cpufreq_verify_within_limits() gets called for sure from within ->verify() for all platforms and this explicitly checks if (policy->min > policy->max) policy->min = policy->max; -- viresh