Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp833748ybz; Wed, 29 Apr 2020 10:11:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIA0ZhRKBOYXKI7RobCsx/RclUAqjkCdKFrXaPn4j7MC+5Ya0P29e16kDisRK66SOJdWVWI X-Received: by 2002:a05:6402:221b:: with SMTP id cq27mr3577777edb.65.1588180274771; Wed, 29 Apr 2020 10:11:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588180274; cv=none; d=google.com; s=arc-20160816; b=V/yaFjHo8n6gZK2m36mbWdw3dPnAJmtDf2WxC/I4iD6fSawL1DlQf1Sme+C9X5gpxB grrdw14HCyqPa0hEx3i2al+EpAuL7gQYEcE45CNcRdEbFJkVeCQ2J9qF/gxGKwdvsbOX NhyHAoXL0Z8eJBxjT2OIu5btPKf6hYM9bgUDPYyNsXiP/tBIw8NXzIAECadjj025pXcE oZ2PL6PrzwSoCIl93zDVu5Xxxs6MN/dXNBFcj+rdPTt886gJbWFUdq0sYZUffdsBUCyG +bgnv6ZsbyxgGmAG1pqelI0cfaq0dEPtJbGm9ZeGJgBajxdlTMCU/hZMCB/Oe8h7QUjq rBEg== 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:dkim-signature; bh=2F/GGX+E0c0+b/vD1LG0X0Imv+S43d6dDOK/FkPT3g8=; b=hUJ2TVFp2GiSIa7eWLgd0Jb1ea9UQHp6FLRNLSbv6Snj0pW3yzX3JyJ9VfCjLPGLU2 bI3BDSBZayEyZO4ZERPNo9a5H4J8b5YDV76sandIG3M8yo6fV5TXZHE48bP5JJlRgK6Q OfLQBzAXvlRMk8DekZ42ZmJswhkMQYxKhYQby/wELHqy5jH7H+Fb2BG4Ynfk0wItZ//8 pIw2/C4FQ+KZN7iYt6eR9rz6AtZKwZyUUT/edZx6p/DzOnIzhUwb+WIh6Nk1lFDJYcGl b9UBlkTdhmoatisHxzVSApYYtI9HyXGh3t4qbtugDk9xRT1c91mCj2ZgdpxpZ7u02MyL DT+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jNkYpc6S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id y7si4189116ede.225.2020.04.29.10.10.45; Wed, 29 Apr 2020 10:11:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jNkYpc6S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726914AbgD2RI2 (ORCPT + 99 others); Wed, 29 Apr 2020 13:08:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726423AbgD2RI2 (ORCPT ); Wed, 29 Apr 2020 13:08:28 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F00CEC03C1AE for ; Wed, 29 Apr 2020 10:08:27 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id l19so3397523lje.10 for ; Wed, 29 Apr 2020 10:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2F/GGX+E0c0+b/vD1LG0X0Imv+S43d6dDOK/FkPT3g8=; b=jNkYpc6S0ZAt1d7I3WBLADvu8AvAoumyVfy15MqXYeffwC+o4Cob9YDhPtMZ8QWvH+ NIwdCDYO3Ztb8zQ3NlSssEXDT66TreFG8fQZFp2Sf/GUZvt3pdbYSGtLKGnxRX+tQTcQ zb1kabUEdqdEgPGAX3PG8+MATiYMctEl87v0wIV8vw6cs9cJg5IaVwlKG6Zfiv5akn75 jDsY1e2YbK6YsNoc8BmOCB3Kw7UeY8zYQ1iUdKYUGLuug2TQemrSwaCGKE4Xe4nS9V9P WBX0kvYhtVFlazgSsG0wd6v0mt1vwy7k9/83/pCmG6nJkn1eoGUkQmSC02Cnl2AeuK8+ nCzw== 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=2F/GGX+E0c0+b/vD1LG0X0Imv+S43d6dDOK/FkPT3g8=; b=S+/6DUohDU5pkTrOwPMnLmsBCOfvktnLSuWpZIzR+mu4PHMz1bHsCBKskVlIq2sruQ VAZz+9oikQAHU1tNy6PmuPuQAFvir+4euhAW3wqmqlvdoEOQbn9NUeH9v1pD4Fta8W+0 wFvP/TFqCuE3PPYHoyhDqJ5iLV6GiUo4o2fCs54QUicVRlBwdgrsaQrBvx4c/KvAsJ8K D95kbRjL3MDgVi9Iiu1pauxZcB73dv9JDaYk3aGWEX5XDaxlnWvnbrIczuiLisGM7/nn UCD3mHEkI7TYFoY1Raq/8zIswJYUo0kjcKLxb0dI5Is4TH3kKCUB1xvjeZgzdnA4LS64 Kn6A== X-Gm-Message-State: AGi0PuaZITbpohwcdRXUDtqD/i+LV6Mob79CcqyiAE7hMAhfN3GtlXOJ xqOhRSRILFBIhyBsu1u5VVlsl5+UNchmC+2bdjPFiA== X-Received: by 2002:a2e:8046:: with SMTP id p6mr20607906ljg.21.1588180106288; Wed, 29 Apr 2020 10:08:26 -0700 (PDT) MIME-Version: 1.0 References: <20200424114058.21199-1-benjamin.gaignard@st.com> <7657495.QyJl4BcWH5@kreacher> In-Reply-To: <7657495.QyJl4BcWH5@kreacher> From: Vincent Guittot Date: Wed, 29 Apr 2020 19:08:14 +0200 Message-ID: Subject: Re: [RFC 0/3] Introduce cpufreq minimum load QoS To: "Rafael J. Wysocki" Cc: Benjamin Gaignard , Viresh Kumar , hugues.fruchet@st.com, mchehab@kernel.org, Maxime Coquelin , Alexandre TORGUE , Pavel Machek , Len Brown , "open list:THERMAL" , linux-kernel , linux-media@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, LAK , Patrick Bellasi 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 Wed, 29 Apr 2020 at 17:50, Rafael J. Wysocki wrote: > > On Friday, April 24, 2020 1:40:55 PM CEST Benjamin Gaignard wrote: > > When start streaming from the sensor the CPU load could remain very low > > because almost all the capture pipeline is done in hardware (i.e. without > > using the CPU) and let believe to cpufreq governor that it could use lower > > frequencies. If the governor decides to use a too low frequency that > > becomes a problem when we need to acknowledge the interrupt during the > > blanking time. > > The delay to ack the interrupt and perform all the other actions before > > the next frame is very short and doesn't allow to the cpufreq governor to > > provide the required burst of power. That led to drop the half of the frames. > > > > To avoid this problem, DCMI driver informs the cpufreq governors by adding > > a cpufreq minimum load QoS resquest. > > This seems to be addressing a use case that can be addressed with the help of > utilization clamps with less power overhead. Can't freq_qos_update_request() be also used if you don't have cgroup enabled on your system ? > > Thanks! > > >