Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3300721pxj; Tue, 1 Jun 2021 02:00:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJovwAoJDhS+nMzpztFB+Z5ZsjBl6CB8PXaL3ivyoWctQJIsogIZ7BQDTalwLvmr70LEXi X-Received: by 2002:a17:906:eca7:: with SMTP id qh7mr11957902ejb.143.1622538019989; Tue, 01 Jun 2021 02:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622538019; cv=none; d=google.com; s=arc-20160816; b=S4u9VUYB9p5ERy8PSCPoT/WifjzOTrDZuq7ZXgLgewB3XFQXX2fZ9dbSPI0zBkWLHo gMMiTM9wj+ZqQCig3dzef1EAA7tnKz7g8yCyJAOlAZGFzssOQGHoIeAB85KW5guoGFaV 1anOwUk+K9KwwP6boihgGhPmX4yyZafnHwFJlKO3BaTqavSKxEjiDLE+ePYFuRB2F0VV f3B8KMU5veMRgeiRDQLI/sxWrYwCmBbkBEVcnb+JCE0SNcP3ZgZ5EzVRODUiDIR/mS3v pVnisTTqZ1dzNU9UCMAaqDjy2IEmPzOdrFiiBAy5QtVX8Ch41v30zYWQbhLDLYQ1LLBv BAVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=mwIElpPwLoi6ULku1GJdBgBEsBDz6lBaoZcuTTv9WEM=; b=UrLbsL3IaFUwoJn+vQym1ebodTbqYtNrst9UPeNlFOYAVhlUEx7BeDZyY1Ujvyy76F fIptfTBGa6oeCYrp6w5MXhNrR4pnxyBSk2MZuboXEU/V29ZiaRmxeVWts0mFaF5pSjFH mgGvprzuoed48DJZVUSXz6o9z39eLA5LWJ2+6VCOkIyQws7Zr8/BEx7DSwLCHgugdZXC 0pJTHMcgn8gtg97sEe8ud+bhbkhPcmd/G7GsEhw8w8almR1QBv7V5oRH/t8jsFNjGAgq EHhSIXoG5dvs4iym5YIIm62x2Xrg2zZWrKCBq4FhHg76VJkODzqtccILmVQ4IkwW0e1a zTnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Q7ulzi7X; 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 r2si7740295edw.385.2021.06.01.01.59.57; Tue, 01 Jun 2021 02:00:19 -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=Q7ulzi7X; 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 S233524AbhFAI6Q (ORCPT + 99 others); Tue, 1 Jun 2021 04:58:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhFAI6M (ORCPT ); Tue, 1 Jun 2021 04:58:12 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2012C061574 for ; Tue, 1 Jun 2021 01:56:31 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id v12so6493027plo.10 for ; Tue, 01 Jun 2021 01:56:31 -0700 (PDT) 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=mwIElpPwLoi6ULku1GJdBgBEsBDz6lBaoZcuTTv9WEM=; b=Q7ulzi7XqzBHwj1dXVShtgNPB0Axt8HPX2RqQga2L2WZKbCrWvsUxT6IYIW2JQSwt+ V7JEfP4NKfiHaYkG0SooSNkm1SmkegphrPBfYn45amz/xnFdEImZzKUOMdZr3D9xzni2 bMlF9eXFINzh4L3b8qIKNCG4cEp1SYb3MEsgjIIn79xjTsDTsGAyM6S2w6vCWELM5AOM Vj8UcsCUt1qzek6fdl04me5T0FQbuxlCbaB7DX6oAx9Z+tGvDFbfg2UxheEE3K3VmF2a CH+InvKDDkTGGCO2yhjWqJ7vyQuMKWyyNJiWLjON4lcCd9xq786+YO11HOFCgMjYSfvn NFsA== 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=mwIElpPwLoi6ULku1GJdBgBEsBDz6lBaoZcuTTv9WEM=; b=YyJ9TyVocUfGwaYpV1fUGKiZ0p+hDgUp3rTQigFpL9hJn4fq0FfmkUD6XknJB9RGBJ O9xUz+EMdL5bFXwPgY++GjeYTgN9Ra/iSfnvBnWWdgLZOOOPGJQYvY6RuRby8Gxo/buV Oa6c7m9TDx64WxZzZGsZ+TAYqNtpC/sfE0rYxk74ZDUjrX0qSXMc3lR1MmDGgX2MG2ZD VsfT+3WTJw/KPs4UwNVI/8pvvamsNJDfvWisF/kOV6C+dBMoVWRUSfczNpAULnWGb/Ih /y55bteYMSb5UwIOIdQwncrCZnAY+PML8mmxYf+xMarqLR8V89QV61HtJ7qRk3vpIw/u tRFg== X-Gm-Message-State: AOAM531ZlMj8EYrFhza124d/f/dciPX252BtafjsDoQ0X0enhSalG12k FZE5BRlzwz5mgzkLWjmlq7Jolw== X-Received: by 2002:a17:902:b10a:b029:f5:6ea5:1e14 with SMTP id q10-20020a170902b10ab02900f56ea51e14mr25215330plr.14.1622537791386; Tue, 01 Jun 2021 01:56:31 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id d18sm13755643pgm.93.2021.06.01.01.56.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 01:56:30 -0700 (PDT) Date: Tue, 1 Jun 2021 14:26:28 +0530 From: Viresh Kumar To: Vincent Donnefort Cc: Peter Zijlstra , rjw@rjwysocki.net, vincent.guittot@linaro.org, qperret@google.com, linux-kernel@vger.kernel.org, ionela.voinescu@arm.com, lukasz.luba@arm.com, dietmar.eggemann@arm.com Subject: Re: [PATCH v2 3/3] PM / EM: Skip inefficient OPPs Message-ID: <20210601085628.75atoc4e34uttqqw@vireshk-i7> References: <1621616064-340235-1-git-send-email-vincent.donnefort@arm.com> <1621616064-340235-4-git-send-email-vincent.donnefort@arm.com> <20210528050934.muji5bv7ed4k4t6j@vireshk-i7> <20210601084725.GA223449@e120877-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210601084725.GA223449@e120877-lin.cambridge.arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-06-21, 09:47, Vincent Donnefort wrote: > Seems like no one has been really convinced about the arguments in favor of > keeping inefficiencies into EM :) Let me then give a shot with marking the OPPs > for the next version. Right, I think this is what you should do: - Add another flag for OPP entries, and mark them inefficient. - Whoever traverses the list to find the next frequency (cpufreq here), checks that flag somehow (or replicates that to its own table) and get the right frequency out. -- viresh