Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3310652pxj; Tue, 1 Jun 2021 02:14:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIc7zZDwSYJuVJ2QqJYxvElgJbGe5dmRP14dDejrZreZEBKRCGxv9fk30Z5eNX9Ea+0YUM X-Received: by 2002:a02:5289:: with SMTP id d131mr24977912jab.121.1622538878372; Tue, 01 Jun 2021 02:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622538878; cv=none; d=google.com; s=arc-20160816; b=O5i2YN54dwBTWDb9ka+74Blgpc4/j9N4yjYMSenOCsWj6IWh2mmiNLaU4fhP5UasKD oawcW4q3TNazTISxPSK/FlnDrhf2ABbFmKdsFUKy6eCyJ09uqH7t1ZsSH353WsGyG2nM X21d/K0OoaneO00eP8sM9H6JMtlKxAY5uvEumhnGSS5gllp5izWyUrYyG4na93VmHZa/ qX+hrjm9bVQjifkQZkX5bIfAr85HnR0fOgt3+NV0Tn46tZ87f2dDYdZAWYvSjdb/JQpD I3EmZ27LH2lFY6TGOYXIq51W9H9bwHFxwVge+DnsI7Hl2DsyAeDzln7GwL5S7Q34LYlC YTcA== 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=Blkz6MwWzhLd82jPxQi8FhWdjjdnUZ/dGYCljF9EbEc=; b=xmDFVjMU8y5uVMi7ZAZmwtUaKrPMhDGOr8ZIiZy2b9jAGCk78VsuwQqorqEyoMF+tV r/VNfuxxJoUQ/jDYzZj+AgVsQ3L1mm2XoJzbVj+36UXWPQ74+8rNZvoqIuNIqPkaYNn8 OHbtOUw7pL42R3vyfNB2RLwsj8Jvd+yEHTRLr0KksTeIgFxc3iRtfj+00WJ7LX2nagG8 +FOFiyiyJTSKMXfWes5ES+X4cvuvuTACfwa1nNr7VMzjq3cb1FDzSbLOiYqPIn1SbhgG XCUIu6o4zPpnDMgCZtdIAbgMrnNKArcjEY3lzKhlRKe9O4PlzMD5JQgXEWxSM6yWYCes QNbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=bhde+OHq; 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 b26si17294720jap.85.2021.06.01.02.14.25; Tue, 01 Jun 2021 02:14:38 -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=bhde+OHq; 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 S233160AbhFAJPh (ORCPT + 99 others); Tue, 1 Jun 2021 05:15:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231139AbhFAJPg (ORCPT ); Tue, 1 Jun 2021 05:15:36 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93232C061574 for ; Tue, 1 Jun 2021 02:13:55 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id x73so3685210pfc.8 for ; Tue, 01 Jun 2021 02:13:55 -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=Blkz6MwWzhLd82jPxQi8FhWdjjdnUZ/dGYCljF9EbEc=; b=bhde+OHqnT0v64c17V3Jd0pDnluYjeBi1qoqnycKMFl+I+fqaVVWYK/eLNd14WrsdK Czawj7dmWGvMqmoVNWJ0+++qDsnmN2bhVkMXtABcKWOqk53KBHlNcV97gD/y7AUCJG+V g6npT2APgp1GjcmFuv4sG6FxMq0Ls4hCYuhVMVB5F5Pbu1Ysx7zksGvT1yF5lVHi3jS2 8LXUHdQvrdaSi9Vq5rRkYtwKhCqWCP5vlLXlSowSd3xnOPPvcX+g5jt6XPT5zmZ0vEgz ZokyeFm9zpEx8qqQb68eTetLkd3Oa7LjlaHf+Z+dWx3WP74viKWJrIH2cGMqjpFGU9HJ KEFQ== 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=Blkz6MwWzhLd82jPxQi8FhWdjjdnUZ/dGYCljF9EbEc=; b=ctJNN9+sY9jrSARXAZ3KUxWr1Mm7RB0ODlx8xr/cOmlXu3amR8Hylv3o5OPF78R2Tm 8oHzGYHBKZKI4qkNqV3IJWyVUwIVOe6isIDvQVpkTwVHkfZhDxB77TkqsTmoBMchbovd s5spVjg6F2U06BWrTf28cWdjDCN8lKuBOLhMfx7YeCLw/G7ADH5dbTeI2qwCPEqcAJVg L3lqkCIUqE/Gq4HJDUNJ/TS4eideXvbimBXwAMrtnorIl+bBL6Qv1QWyAjxQHdhTPdEa XUwz2TQmWr5LkqzfFJaf9/OjZUL3Hnq7gSiMbViZ+u5WgLdpQeWUdJEN1zFb25imfWSQ mebg== X-Gm-Message-State: AOAM532Y4U3tKpo+a5XXInrXi+BiJejkJvfiZixu3WbIZcXATrJmEGuQ 4+Kdb02okOtx1JFNOgFfoldR7A== X-Received: by 2002:a62:5483:0:b029:2e9:ff82:95e3 with SMTP id i125-20020a6254830000b02902e9ff8295e3mr2427343pfb.29.1622538835175; Tue, 01 Jun 2021 02:13:55 -0700 (PDT) Received: from localhost ([136.185.154.93]) by smtp.gmail.com with ESMTPSA id hk15sm1581632pjb.53.2021.06.01.02.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Jun 2021 02:13:54 -0700 (PDT) Date: Tue, 1 Jun 2021 14:43:52 +0530 From: Viresh Kumar To: Quentin Perret 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: <20210601091352.7tthvv6hygtisprm@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> <20210601085628.75atoc4e34uttqqw@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01-06-21, 09:07, Quentin Perret wrote: > 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. I agree. cpufreq core shouldn't always do this. > 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). Yes, these governors shouldn't end up using the efficient only stuff. > 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. Yeah, we need another API or parameter "bool efficient" or something. -- viresh