Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1434485imj; Fri, 8 Feb 2019 01:10:10 -0800 (PST) X-Google-Smtp-Source: AHgI3IZbPpqvEghq1cj06zfpUna+Z0AqYP/JA4GxcB9dYQlFzXiCpWtzddOs77SEl+kYrZgqweLL X-Received: by 2002:a63:1204:: with SMTP id h4mr19424207pgl.51.1549617010227; Fri, 08 Feb 2019 01:10:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549617010; cv=none; d=google.com; s=arc-20160816; b=PADlqr2QrpW2ZgkwWFiNGRey3Mj3fdkzDePD5OaZE8dYUV9TM7cXXC0w0HrvZfyj9F VyGLcdLhIgK5GgqC81EusC9+TgV3vtvbHLWLiXwrjyi2eqKHjEb043792Jr7+6+fSnH/ IusrF9GCqPxXelh16G02Y6qLBN6Qxk4c0HIpPTejAd8mSsEO18mm5qPUGePd/b24oZc0 Yy5gcSnDmfOCFaoGuEGQZx2oAhODiLvqMxbw7Bjey+w5l8zoSSxz6lzNaANCmPtAFTLL zFUo3eHPCdK4ArVvkNYqyn2nHnz4p0XbsTi3GTKTVmGAq8mYzeCBYGPtW5NwbvtVEsWs Cujw== 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=Ni/+u21eIDK1iHkseXGMBkIz9rKlZZDEwPImdIQZsjk=; b=MeoW7F3XqeeF0pISAMTJdybgLnEybhCLaJrmzyBUTrMnbSRqyMWWV9PGAeG/R0yMbx RlccWHDMd5AcnbWyM4KWEB+3T3CvIUOshlEsNq8fxOLHbFUsh/t33F/y/D7k8RRVC9uS LWIqYTsDA289WJrV8gUCcmhnnqQcC2iQkhoM5l1XLt01/4nDHEGdH7wZa1PyEw4FAXzI vgxTV+g8hpaocHe3cByyZEd3WHGVFMi8seTjtETl+YAsr7FP5CHx4qjYAyX5ivfw+RcX cWN1KdqwBEY3e3R77/AyAgbBJEDXFSs1dYh2Kg60b+IVgeNVDz0lAI96GjyFiq2DjE9x R7kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VHQHuBtn; 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 2si1777605pla.156.2019.02.08.01.09.54; Fri, 08 Feb 2019 01:10:10 -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; dkim=pass header.i=@linaro.org header.s=google header.b=VHQHuBtn; 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 S1727496AbfBHJJQ (ORCPT + 99 others); Fri, 8 Feb 2019 04:09:16 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42700 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727473AbfBHJJP (ORCPT ); Fri, 8 Feb 2019 04:09:15 -0500 Received: by mail-pl1-f193.google.com with SMTP id s1so1395091plp.9 for ; Fri, 08 Feb 2019 01:09:15 -0800 (PST) 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=Ni/+u21eIDK1iHkseXGMBkIz9rKlZZDEwPImdIQZsjk=; b=VHQHuBtn9KM2pXGh0XLeEWyfHS2Sz7C/Mpuw4DDzkoVmJWSHK+tYTclfWvbVfm8Wtg plmkq08YYXh34/5bDMoTqcPoG8vXzqIANulZjn8mmwv30mRUdV6dEp/YJbziCDSkFnRU i3ZfpF8tm0qg/TVBS/TrMfmD3TnbIjZUVkFh8Xc+h9VTYDm1LtoIt8FnQQegLKJl8cnS GXx+SLZfOT0LX4xnQg/exNwz/asV5Q1XzWNwPYOm7Zk38S26fNb8IX9vatWOj+XqCKfk Oh64wB5x9iBs8gMPY8ixuqVjWCqMv0F7o97hP258mj3+PORYhNN4haHQV0lhU3vRLYeg AMkw== 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=Ni/+u21eIDK1iHkseXGMBkIz9rKlZZDEwPImdIQZsjk=; b=LxNL5EIxLqmnfuEY4uAzNWjOm7Uhz2ePXcVzmYtftrFySJMmn6Bf42HzLQOHzv07wb Io2rcH3V8jhBTPC/Yt+RYeZrzXCqEJ12ZUjfNFUE6cBQ/vf/jPOE9EyJDnyhAHF6wzwC +dByrO20lvUun6CXIcIIBG8jqeDkOKrvLT2aNMUX5vSr4MzsnLwYS/Xy7Wt1bjq3IyOB cY0puSmERp11X19tRDXA6ln1WnPvs8vrHZBlVcR31EnDwFPhWRYvL6M7Zr0T8qxKVynk dzKjtFw/5gytFN93oZ+TUm6bVolE/fHYuhSK1iWItRNwtNv52XERyvRGTBKnDF9JUlVW Ur/w== X-Gm-Message-State: AHQUAuYCP9MX+j1+FIyZ52A4VQudHK9a9UOhCf1o0CvnjKoygFTGzF/S dTItXO4rRnQ6mcgmGNK4w8tF5Q== X-Received: by 2002:a17:902:820f:: with SMTP id x15mr20910487pln.224.1549616955034; Fri, 08 Feb 2019 01:09:15 -0800 (PST) Received: from localhost ([122.172.102.63]) by smtp.gmail.com with ESMTPSA id d3sm1713413pgl.64.2019.02.08.01.09.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 08 Feb 2019 01:09:14 -0800 (PST) Date: Fri, 8 Feb 2019 14:39:12 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Rafael Wysocki , Greg Kroah-Hartman , Viresh Kumar , Linux PM , Vincent Guittot , Matthias Kaehlcke , Linux Kernel Mailing List Subject: Re: [PATCH 0/3] drivers: Frequency constraint infrastructure Message-ID: <20190208090912.43aao5kny42iirum@vireshk-i7> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180323-120-3dd1ac Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11-01-19, 10:47, Rafael J. Wysocki wrote: > On Fri, Jan 11, 2019 at 10:18 AM Viresh Kumar wrote: > > > > Hi, > > > > This commit introduces the frequency constraint infrastructure, which > > provides a generic interface for parts of the kernel to constraint the > > working frequency range of a device. > > > > The primary users of this are the cpufreq and devfreq frameworks. The > > cpufreq framework already implements such constraints with help of > > notifier chains (for thermal and other constraints) and some local code > > (for user-space constraints). The devfreq framework developers have also > > shown interest [1] in such a framework, which may use it at a later > > point of time. > > > > The idea here is to provide a generic interface and get rid of the > > notifier based mechanism. > > > > Only one constraint is added for now for the cpufreq framework and the > > rest will follow after this stuff is merged. > > > > Matthias Kaehlcke was involved in the preparation of the first draft of > > this work and so I have added him as Co-author to the first patch. > > Thanks Matthias. > > > > FWIW, This doesn't have anything to do with the boot-constraints > > framework [2] I was trying to upstream earlier :) > > This is quite a bit of code to review, so it will take some time. @Rafael: You are going to provide some more feedback here, right ? > One immediate observation is that it seems to do quite a bit of what > is done in the PM QoS framework, so maybe there is an opportunity for > some consolidation in there. -- viresh