Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp542747ybh; Wed, 18 Mar 2020 04:48:16 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvDaTp+CMkssM22hcfSTID6GEZDDk92FKrMlpvS7NeMHXcLdzK0TNje/Ln0hPYPZJRNcAmc X-Received: by 2002:aca:4d49:: with SMTP id a70mr2907752oib.152.1584532096712; Wed, 18 Mar 2020 04:48:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584532096; cv=none; d=google.com; s=arc-20160816; b=dRmWq/G/CnKpRyQpBoYLEE74WFxJTulb7ecaJurorM4ioKtivWvAyfD2iZRKT5mC79 imuh85MqmdA5Eatjgmhjrjb3k6dTUxpU8hOk8B0fJgN/08ZuHyMIbZKevThriiuRzavT lVs1n1qNBFSifiihZgrfU10YZrvKTXTas/GhqBQpqSi4jawUOmhZTqAMI0CtVJu0x1eV rbbBsWnZYbOwDXmrgOGu9JWnqkANWaG03qx92mxN7mvCKpOLN8UE7FJv3F+Ar/zvDBEI oNcHemy6KXjWcq8BnLnpifHrsFQmc4ZRx+vmHYonVQqbPE+0ptBgsMPTwOc6+W5ds3+8 NWLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=yMNI1x+AcyYezKEgQs8UnLcJVY98mYsKSWUHDMW7wok=; b=0xGZ+klCnzBJtI3t/0LhgfCnsR20LinDgaASERz9sDzCyCPCP1IudD0nWN87FyH4Wf JkhCDg5FgVWT1m2hwdQbU/aDnvynaahALmPpiidz4U25xSIfB1zdAkvTDBqHt/Nr58vA Kznk+ZbuU1dTPc8JW0PmvwIrAJZUnmRHOt4yxAc6l1bihHBfhtNrjjm4nKuGFLDmSihx urPD/0jINZyLV//YkphVGo9qczT9t/B0ZXLShDkTiczII8GDk1S+/dp9xXs68D5+qcRJ 8za42HdBa5+n8Jj2344uOgePP9+fUuJiYQTZzeCyq/XQYBZ5QNLKDZZTd2dkjq1wk7xE e/Ig== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l17si3205238otj.14.2020.03.18.04.48.04; Wed, 18 Mar 2020 04:48:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727356AbgCRLrS (ORCPT + 99 others); Wed, 18 Mar 2020 07:47:18 -0400 Received: from foss.arm.com ([217.140.110.172]:49132 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726586AbgCRLrR (ORCPT ); Wed, 18 Mar 2020 07:47:17 -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 DB5B51FB; Wed, 18 Mar 2020 04:47:16 -0700 (PDT) Received: from e123648.arm.com (unknown [10.37.12.57]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 378DB3F534; Wed, 18 Mar 2020 04:47:06 -0700 (PDT) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-omap@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-imx@nxp.com Cc: Morten.Rasmussen@arm.com, Dietmar.Eggemann@arm.com, javi.merino@arm.com, cw00.choi@samsung.com, b.zolnierkie@samsung.com, rjw@rjwysocki.net, sudeep.holla@arm.com, viresh.kumar@linaro.org, nm@ti.com, sboyd@kernel.org, rui.zhang@intel.com, amit.kucheria@verdurent.com, daniel.lezcano@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, rostedt@goodmis.org, qperret@google.com, bsegall@google.com, mgorman@suse.de, shawnguo@kernel.org, s.hauer@pengutronix.de, festevam@gmail.com, kernel@pengutronix.de, khilman@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, robh@kernel.org, matthias.bgg@gmail.com, steven.price@arm.com, tomeu.vizoso@collabora.com, alyssa.rosenzweig@collabora.com, airlied@linux.ie, daniel@ffwll.ch, liviu.dudau@arm.com, lorenzo.pieralisi@arm.com, lukasz.luba@arm.com, patrick.bellasi@matbug.net, orjan.eide@arm.com, rdunlap@infradead.org, mka@chromium.org Subject: [PATCH v5 5/5] drm/panfrost: Register devfreq cooling and attempt to add Energy Model Date: Wed, 18 Mar 2020 11:45:48 +0000 Message-Id: <20200318114548.19916-6-lukasz.luba@arm.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200318114548.19916-1-lukasz.luba@arm.com> References: <20200318114548.19916-1-lukasz.luba@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Register devfreq cooling device and attempt to register Energy Model. This will add the devfreq device to the Energy Model framework. It will create a dedicated and unified data structures used i.e. in thermal framework. The last NULL parameter indicates that the power model is simplified and created based on DT 'dynamic-power-coefficient', voltage and frequency. Reviewed-by: Steven Price Signed-off-by: Lukasz Luba --- drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c index 413987038fbf..8759a73db153 100644 --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c @@ -105,7 +105,7 @@ int panfrost_devfreq_init(struct panfrost_device *pfdev) } pfdev->devfreq.devfreq = devfreq; - cooling = of_devfreq_cooling_register(dev->of_node, devfreq); + cooling = devfreq_cooling_em_register(devfreq, NULL); if (IS_ERR(cooling)) DRM_DEV_INFO(dev, "Failed to register cooling device\n"); else -- 2.17.1