Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5183796pxj; Wed, 26 May 2021 05:01:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4WapeSmYCkDgjgyUagVISbNm8pc2JdApGh5Yl69lVmGkK67rF16rBSkf+y8NUaMzr+Tuz X-Received: by 2002:a05:600c:4ca7:: with SMTP id g39mr28733605wmp.1.1622030508046; Wed, 26 May 2021 05:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622030508; cv=none; d=google.com; s=arc-20160816; b=qDfP+r3kP9h2QvYVeIhJjs2gaOJhHJRd9GjVeU9PAgbU+kc5eYfkamersqS/MVTgi8 d8cGVONuQpL6MercEm/GcCF6sKN4qiZHWf3sBL0Vcj+v/m9XSfe0RQ4FoWwzz/5/0Ok3 aVIyHm6UD++zQ28XDPKLlvv90UW2Ght9OFc84CyKjLrzA+pEdf3IraCuTnm8O4Z2S1iy 6K28hK9Uky5WsuuYIWgR91zud4rxqYy789l9tPqq65hU53bLg7lFRW4GUD8+JPlR9rX6 ropJ2elS9GqQsrw08yW6bLMSpsge0lqvSVUUvJkbkZc4jZGDUPlXoBL1+PUSPcG8sEdC D5Xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9uWOSQftud1DJflV9fjuyiPvjHy2jiwNCeEVglUKyg8=; b=aBdBGqM1rDhLuqRYhVr/Iknca9gOtxOOKgUDkrpULp7UJPB57igf7E8L7VHn+bqd1w nkI9UK6paNzNUxisZZELzmoRydaEKZnMlwInwuosOc3X9MPSylP9KrGuFSpGMXZS/gbv IX5dZEcevaZ+FSofXNnig5FXDth74nNZwJLiUJNe3Fon5Ka9JT+H0iJGFSzPLX0Cl1Vo VK2j+dX46n4oiS+ou88fPcRkup5ZuKD6cblEWMvbGinUKuJ/XuRmC7yXE3TE/3sKp81S 7gOzvUUDuYQ1In40Mfg2QHs6g91+68TPun/KQH9EBTEbszBnkdAE7yKPtKq6BC4QISwC iREw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si18234898ejo.39.2021.05.26.05.01.20; Wed, 26 May 2021 05:01:47 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233103AbhEZI6Q (ORCPT + 99 others); Wed, 26 May 2021 04:58:16 -0400 Received: from foss.arm.com ([217.140.110.172]:41830 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232808AbhEZI6P (ORCPT ); Wed, 26 May 2021 04:58:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0B9B41516; Wed, 26 May 2021 01:56:44 -0700 (PDT) Received: from [10.57.31.7] (unknown [10.57.31.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D37643F73D; Wed, 26 May 2021 01:56:41 -0700 (PDT) Subject: Re: [PATCH v2 0/3] EM / PM: Inefficient OPPs To: Viresh Kumar Cc: Vincent Donnefort , peterz@infradead.org, rjw@rjwysocki.net, vincent.guittot@linaro.org, qperret@google.com, linux-kernel@vger.kernel.org, ionela.voinescu@arm.com, dietmar.eggemann@arm.com References: <1621616064-340235-1-git-send-email-vincent.donnefort@arm.com> <20210526034751.5fl4kekq73gqy2wq@vireshk-i7> From: Lukasz Luba Message-ID: <068fa9c4-2b55-3d75-adc7-cf5ef2174b12@arm.com> Date: Wed, 26 May 2021 09:56:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20210526034751.5fl4kekq73gqy2wq@vireshk-i7> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Viresh, On 5/26/21 4:47 AM, Viresh Kumar wrote: [snip] > > First of all, sorry about not replying earlier. I have seen this earlier and was > shying away to receive some feedback from Rafael/Peter instead :( > > I think the problem you mention is genuine, I have realized it in the past, > discussed with Vincent Guittot (cc'd) but never was able to get to a proper > solution as the EM model wasn't there then. > > I have seen your approach (from top level) and I feel maybe we can improve upon > the whole idea a bit, lemme know what you think. The problem I see with this > approach is the unnecessary updates to schedutil that this series makes, which > IMHO is the wrong thing to do. Schedutil isn't the only governor and such > changes will end up making the performance delta between ondemand and schedutil > even more (difference based on their core design philosophy is fine, but these > are improvements which each of them should enjoy). And if another governor wants > these smart decisions to be added there, then it is trouble again. > > Since the whole thing depends on EM and OPPs, I think we can actually do this. > > When the cpufreq driver registers with the EM core, lets find all the > Inefficient OPPs and disable them once and for all. Of course, this must be done > on voluntarily basis, a flag from the drivers will do. With this, we won't be > required to update any thing at any of the governors end. > > Will that work ? > No, these OPPs have to stay because they are used in thermal for cooling states. DT cooling devices might have them set as a scope of possible states. We don't want to break existing platforms, don't we? We want to 'avoid' those OPPs when possible (no thermal pressure), but we might have to use them sometimes. Regards, Lukasz