Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1594827ybz; Thu, 30 Apr 2020 02:04:20 -0700 (PDT) X-Google-Smtp-Source: APiQypKvy7JQJ/1ojfxMVaVlPFUrKcTFK1ZdQ3MDaM3/yjm7Lewl7b6koUDofxNr5CAWQ6og7zDW X-Received: by 2002:a17:906:f90d:: with SMTP id lc13mr1642313ejb.367.1588237460154; Thu, 30 Apr 2020 02:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588237460; cv=none; d=google.com; s=arc-20160816; b=Of6vioXmlwgRWIYjXZncobSIUB7gqMnIbTucABWDDC0zP3S9ax8j7BR852qlHBX3Zm z0hVlxCYS/bhPOC7EgFhSgZuYvplgWUh9QBn5hNBDZeW4VoNBYNaEj3AGtzbChW7JQ3u iFIYtMvWNu0zaRdPasqkigZhUP0CN0+0skVpkMamV1C00Z0ivQ70KLV2Hlifk0tiaz3U yZuOJiy2LSynAuAHH7duqT9PVFMXSELfpsNCzD/eRsgrGnAaq9M85mwxmBCcLXLO+FXf tHNITnNCNXzFv9YBoY+SIjBLRJpOVGqe9gSVeANmWNHXbMR3KENykrvWG8/JshiLhsDW PJ5A== 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=6KQACPLN/GZpi+FYGmYG62Ze5DkTEi4wV710+OZY2aQ=; b=JO/KO8LoPrhyTJ+GOkzg9kzbSxtUGBvkPrgOvLE+m2KVF4jp4BA8RIx58Rj6RUiJZE k97R0XyFMQ5UkETz4dZNdD6Yr3ghvP/MB25ah2IZ7Eg5Lf3lulglJBfEjOx1RUwPFqyH i1SUox/PBF3t+F7bbmURI453f679SiHV5McrLordhElvZFS+dV/4IvdkrymaWQv8jieO 0ghg0whiGRDDR9NmT9f0Gs/F43POIJEWv7BAbBLYMDnT2hODYjT+ghMsbYzpkBeOVkj4 3K1YzuUmrHCf/fR5g6J9wOsc5JoYDWYQgjUY0P9BqHJkdc81ce/kVp+kbO4XqOu88+1O Nw4w== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q12si5263948ejm.358.2020.04.30.02.03.55; Thu, 30 Apr 2020 02:04:20 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726755AbgD3JAU (ORCPT + 99 others); Thu, 30 Apr 2020 05:00:20 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:33853 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726420AbgD3JAS (ORCPT ); Thu, 30 Apr 2020 05:00:18 -0400 Received: by mail-ot1-f67.google.com with SMTP id 72so4306278otu.1; Thu, 30 Apr 2020 02:00:18 -0700 (PDT) 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=6KQACPLN/GZpi+FYGmYG62Ze5DkTEi4wV710+OZY2aQ=; b=H3Jrnez4+57h4GGsGlUKjBUCzgCWRyEy6JDWuCmKOCUwez6SKQkM17Y0T4lZYkM+3/ U4vZQnqImo3eBrs+Ia2oUL/dju4W8ziszY+cnBNYNA47hbTjvd9X0eS6zcQFYB4QTHF0 o+msu24phfMWs/i/Rb9SoKhf1O/TMa12x79vd1Msgn42LseBhvKVz+TbJaJu8uNgpFSL AoZiHg7TzuKitI1VP7RIjEtRs7qV5Y5iQjbDxYfF3Cu/mXxUsL2wzB5TFO/AtqcoWRPG Gv2InbBZN8+ZURT3Kek0CDOPH7tpWuSYn8S9AhwB8MaZg33w6ypVtCqokvlSp4qLKRMP 25EQ== X-Gm-Message-State: AGi0PuZ/6WYvKDfchk5YdRNXQF+OKEYiYpF+ah6eQ9rFZ3kCPO0QYV0r ENSw71cjgK1fJsovF8cELACBs1r5AYHNIpCuL0qQDA== X-Received: by 2002:a9d:112:: with SMTP id 18mr1274967otu.167.1588237217674; Thu, 30 Apr 2020 02:00:17 -0700 (PDT) MIME-Version: 1.0 References: <20200424114058.21199-1-benjamin.gaignard@st.com> <7657495.QyJl4BcWH5@kreacher> In-Reply-To: From: "Rafael J. Wysocki" Date: Thu, 30 Apr 2020 11:00:05 +0200 Message-ID: Subject: Re: [RFC 0/3] Introduce cpufreq minimum load QoS To: Vincent Guittot Cc: "Rafael J. Wysocki" , Benjamin Gaignard , Viresh Kumar , hugues.fruchet@st.com, Mauro Carvalho Chehab , 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, Apr 29, 2020 at 7:08 PM Vincent Guittot wrote: > > 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 ? It can. The problem here is that imposing a global minimum frequency limit generally causes the power draw of the system to increase regardless of what is going on, including the CPUs that are not involved in the handling of the interrupt in question. That seems a bit excessive ...