Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp758409ybz; Wed, 29 Apr 2020 08:52:40 -0700 (PDT) X-Google-Smtp-Source: APiQypJ/xWUH9e+8OS8k/5tGTrsoxf4hh4Bv+wE0vn8aee4RWETtoi+97EMFv1/AFibnsdnPf8By X-Received: by 2002:a17:906:534b:: with SMTP id j11mr3144282ejo.142.1588175560066; Wed, 29 Apr 2020 08:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588175560; cv=none; d=google.com; s=arc-20160816; b=RI4KK1ISQkXq3nYG+nQdJQJEjOhwQgizfp+Rn1d+C5v0WUzQCLfm/9OrLw5lm3Cxjz /ZiBwTe+RQHUxpVkGJzL0Qk7VFob0nB0E18CTv0N+D3STYC01/F0jT44V0CHdHEeLOM9 6z0vpkLF4lcPmpjJ266/41GPXFT8X++zD1TvL/KFAjtsB620qIdh11reNAqaR0YD5UiQ o3p8BkuHks2iZwgnSwSi5adePXG5MTc3x3ljEWcGEVY1Nq4cB42J1sjHK6GGIIuAQKIG /TYcNSBNv4XZ2lo7eObxsVrdiw9SUq5xHfbg0HuKQxfPUBOky6/JE1z6HetOEG6cr3d3 qYRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iJ1RAzAnxjlyTb81XHhJ+I2iVQ0J8wG2Jc44sSdnnCk=; b=RqI1pDNdRx0GGD6nqdFq7S2kvymfj41x9ZeUH5Rk7vjIW7eLlUpEEJNLG+El0aAZjs QgP3kK3KjUwBH8a1537OOYJY/1h4CZrZ4EEfJXpX0gYqCdXM9o0Nlfj/KK6b8s5920oj bkOFitzwo69SVFzh/S27ePsUe6JILdChuPOyonYSmngXLNmlvsmu8SFsVX1P/rX6nDYj jg+vEHevhOG5wO1iXKGedHrKEy81uVVBBfz/4OXEARIUj6jbkK/f1JdmYSMfZ4HCnRY3 kiR61g6Swpo7xW08UyGCuqF/1bi/uH0wWssEG6QmYB+gblwse4KEhcPUFolwMhLk7frQ jDew== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q28si3822149edb.518.2020.04.29.08.52.15; Wed, 29 Apr 2020 08:52:40 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726780AbgD2PuI (ORCPT + 99 others); Wed, 29 Apr 2020 11:50:08 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:44078 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726511AbgD2PuH (ORCPT ); Wed, 29 Apr 2020 11:50:07 -0400 Received: from 185.80.35.16 (185.80.35.16) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id bb23fa4412e3993e; Wed, 29 Apr 2020 17:50:04 +0200 From: "Rafael J. Wysocki" To: Benjamin Gaignard Cc: viresh.kumar@linaro.org, hugues.fruchet@st.com, mchehab@kernel.org, mcoquelin.stm32@gmail.com, alexandre.torgue@st.com, pavel@ucw.cz, len.brown@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, Patrick Bellasi Subject: Re: [RFC 0/3] Introduce cpufreq minimum load QoS Date: Wed, 29 Apr 2020 17:50:04 +0200 Message-ID: <7657495.QyJl4BcWH5@kreacher> In-Reply-To: <20200424114058.21199-1-benjamin.gaignard@st.com> References: <20200424114058.21199-1-benjamin.gaignard@st.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Thanks!