Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1148223pxb; Tue, 8 Feb 2022 10:18:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJzACPiZ02kvnn18vwQq6JBJWm0S5jyX/rK4unypJbY79N3ge/KMrVXTJPq8/Em5jyEkAEo/ X-Received: by 2002:a17:90b:100e:: with SMTP id gm14mr2718022pjb.155.1644344308347; Tue, 08 Feb 2022 10:18:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644344308; cv=none; d=google.com; s=arc-20160816; b=GhY/TcRtdMH9g3mlp/z6ffeWuQ91V7IVJppC4dTBBOM8QSAluP3QCF+gMXkpdnCrYe dyTXs7bu3X6hrTq4wwCra//kMmT7wyf2mN88LkItbG8/69hBbLIjXa5Q4XJHZ/kN8VSS rcAUPby3ixtxceydVghuse7wzegeQdvnmsLepuKJ6F5bD48VJ/9FtOgTDpIgELplXwrO UGYJ2cjEFX3axQhz6/7IGM84HzKZ2ntA0nksh1OiHAbyl/d/9gGNMZVz21vyy0IMeEY7 Be4SgTZU+Lno0LEC/k0/xbmpKwLlqudBwWtCxagpsy35dBp3PaM3LLdbVwAxMCdiTYTA 8Okg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=4I1j28QygrlHD4XjMJTQj3Rnoqu49x1hDmw5G/rbcq8=; b=MSNwnJ9phLIYxhFrwnQRSB3jG/jj08jCXf7oLeIeBMaQOzoNbRVsspDPg0nAaJo54Z QRmKpxplH6qfcptQq41EVG4wR3pfjRzKaCiTwfCjHYOzcIpZyp7NTDEjLwurwLi7uJ7u Oy44AOgcGTyCW4GfYS32jzwYOhwOVj74GkpW9zX1v+OeZim+5WYcwo7wIbAfYfTGCDoj HxtcqLWnLFCMRrt9bX0zUnnHdaQvXxSX1W6oH/9inW1cNfDEnd0MYYlkle/cpIDWuUiR Gz54N+g1qvva7yd6JTYobxav/vCkXgzVI1C79jG+4z2VuZuUnx803f62bUV+YSzFabfZ ONyw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d5si13871970plr.451.2022.02.08.10.18.15; Tue, 08 Feb 2022 10:18:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234590AbiBGHnf (ORCPT + 99 others); Mon, 7 Feb 2022 02:43:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244580AbiBGHie (ORCPT ); Mon, 7 Feb 2022 02:38:34 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C42D7C043185; Sun, 6 Feb 2022 23:38:33 -0800 (PST) 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 54CBFD6E; Sun, 6 Feb 2022 23:30:47 -0800 (PST) Received: from e123648.arm.com (unknown [10.57.15.201]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 49E2B3F73B; Sun, 6 Feb 2022 23:30:45 -0800 (PST) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com, dietmar.eggemann@arm.com, lukasz.luba@arm.com, Pierre.Gondois@arm.com Subject: [PATCH 0/2] Ignore Energy Model with abstract scale in IPA and DTPM Date: Mon, 7 Feb 2022 07:30:34 +0000 Message-Id: <20220207073036.14901-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi all, The Energy Model supports abstract scale power values. This might cause issues for some mechanisms like thermal governor IPA or DTPM, which expect that all devices provide sane power values. This patch set prevents from registering such devices for IPA and DTPM. Regards, Lukasz Lukasz Luba (2): thermal: cooling: Check Energy Model type in cpufreq_cooling and devfreq_cooling powercap: DTPM: Check Energy Model type for power values scale drivers/powercap/dtpm_cpu.c | 2 +- drivers/thermal/cpufreq_cooling.c | 2 +- drivers/thermal/devfreq_cooling.c | 16 +++++++++++++--- 3 files changed, 15 insertions(+), 5 deletions(-) -- 2.17.1