Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3308130pxj; Tue, 1 Jun 2021 02:11:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwn74ElLiGH5On2/NoGKU9QZvY+6v0LVUsk0apjk3rn2d5LZBQAuNHqlL7U0ZHMFfVielo X-Received: by 2002:a05:6402:10c9:: with SMTP id p9mr31042008edu.370.1622538665891; Tue, 01 Jun 2021 02:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622538665; cv=none; d=google.com; s=arc-20160816; b=vaj2biHl1JBzYC8D/NYrcjWu7X2QrhNznB/Sv3V1mvODk3NtqpSOspzrO7JUm+DiGN vSoZoqAnjvFikb79Na1d7rmlzL3JV2gLjq7HKBx9FrcvIK8zHK2a5zFnf67iM+ravJZa 7GL883XgGJC9EEy7E6UxDdI+q4P6adSa3DxvHHQ5vTXRJhu9U6nrsXkUoWil/uWOxCKf Ncarjh92w86ryXch6c8mnxRk6WYSguiezKyTkq0zXihWZwZehh2v41QBnb+8IRRLUjZx +sK4Hc52B6n2+9eiJxBFKJC1oci2J4UkD6Y+x4GnGOC1+OyTOLSbMZbIhZVd1IopLMqz A2Xg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zEt3HFPe09o0ckZsYClTr0bQexAxs0o1KqTS66rUt2k=; b=As4XkpIPp1Qf0Zb657NlLcPmqDidqjmP88vrO3b3ay8T5fh+GHG9nK93h9ZiE+jmsn 4pajDRgeVLe2AFtyIA0ASPEfwIIecLeelYgIJITxT8aoRVtZawgQX7CDAiH+AMD4H2ha lWibL1XW5HUiXlau+fgNxu585NPIPWxPYm1fr33ZPc9DRW2bNfEp8neXuODn895IoepC AKfkDTgcQ5O41PldTlJQ16FZrn+pLN/e8XbfsKKoj2T/5RNFvS/JQ/3q5fB4L1UW4UU3 0QKZPLOGqhdNQ+E1wk8dw746/FA41gwU4Ct70n5Xhe+LUErej0dr+uArow5oqGrN06P/ enHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Ms1+vTOL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si19156906ejb.0.2021.06.01.02.10.43; Tue, 01 Jun 2021 02:11:05 -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=@google.com header.s=20161025 header.b=Ms1+vTOL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233336AbhFAJJ3 (ORCPT + 99 others); Tue, 1 Jun 2021 05:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37574 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233193AbhFAJJ2 (ORCPT ); Tue, 1 Jun 2021 05:09:28 -0400 Received: from mail-wm1-x335.google.com (mail-wm1-x335.google.com [IPv6:2a00:1450:4864:20::335]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36D30C061574 for ; Tue, 1 Jun 2021 02:07:46 -0700 (PDT) Received: by mail-wm1-x335.google.com with SMTP id n17-20020a7bc5d10000b0290169edfadac9so1051731wmk.1 for ; Tue, 01 Jun 2021 02:07:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=zEt3HFPe09o0ckZsYClTr0bQexAxs0o1KqTS66rUt2k=; b=Ms1+vTOLxPIDbCVEtqKP/81D25pVmVzkG6ZBvL3jBz5SbnjQXhENBBAe10jUp23Q9L uu+pKMcryhb7fxcqf0YDWjSXz+txEQZQ6ZM3mjSmAlo38fk7ZrkBl6RzPLZwRsdyuo7G hqJG7M17a0W6iCMIgIBR77Bmh7cXLtibBQAutqq8T4Qgsfcl1ib/J0U87R1IsOGl/Xkf 0m6p05hJyssvOju92ku2FYnlAGg70jHuSSQdlHEZTWeLhGjGEOOyyb8e6cXnNgTVZRmI JtCLmDYmAW25+ZOafAknmXWNBgYjqOpcD3dfz3vceqgxGy75nBYfOLANCNhLXIsGEAm6 RE5A== 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; bh=zEt3HFPe09o0ckZsYClTr0bQexAxs0o1KqTS66rUt2k=; b=S5DQeplFF3Ubee6eGLBtnfB0PUnvPQ4RaCRWUWa3MMSCjNKR1X+UKMpUupXuiLy3Qq ymKk5vEzfF/ARIcmRWL/Itos7wqJOmq0J54LLTdCQvFV8T8d1AvH3BQDdMJj81Nngvd1 CpLfILcqTWSeB1NRcXKG5Bt3e+DZAGOJSh8dEM5npNNHgcUGsI4uW/B2ORHKDFnB0MdH ShNYNTdjy9S/qfg2AH7g26SxNGWTwCFpFRN1+rP20pbhDNZBexHyYtKL2KOVIoHijpy7 1Sub90AHB3HK7EyFl3rpHebfNtxHasMc32RQdJCeapm9u5eaeYRLczkMdT6Gi0vdHfgY AG1g== X-Gm-Message-State: AOAM533fflxjkeishQHJxJ3rJEQryo4KefJ4ouKqWzYa1hPvOEwc6Vo6 8GweCausVfUaikqE7EvWG2wbiA== X-Received: by 2002:a1c:e354:: with SMTP id a81mr9583848wmh.98.1622538464647; Tue, 01 Jun 2021 02:07:44 -0700 (PDT) Received: from google.com (105.168.195.35.bc.googleusercontent.com. [35.195.168.105]) by smtp.gmail.com with ESMTPSA id n6sm16726370wmq.34.2021.06.01.02.07.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 02:07:44 -0700 (PDT) Date: Tue, 1 Jun 2021 09:07:41 +0000 From: Quentin Perret To: Viresh Kumar Cc: Vincent Donnefort , Peter Zijlstra , rjw@rjwysocki.net, vincent.guittot@linaro.org, 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: 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> <20210601085628.75atoc4e34uttqqw@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210601085628.75atoc4e34uttqqw@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tuesday 01 Jun 2021 at 14:26:28 (+0530), Viresh Kumar wrote: > 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. Just to reiterate here what was discussed on IRC the other day, I still feel that the choice of an efficient OPP or not is a policy decision, and should be left to the governor. It's not obvious to me that the userspace govenor for instance wants any of this. Same thing with e.g. the powersave governor if the lowest OPPs are inefficient (yes skipping them will not impact energy, but it will impact instantaneous power). So if we're going to move that logic to the cpufreq core, then we'll probably want two separate APIs and make sure to use the effiency-aware one is used only from the places where that makes sense. Thanks, Quentin