Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp621429ybh; Wed, 18 Mar 2020 06:13:24 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvrlBo0S8xiRqtKg8FOiZm+mKmH8e0fz/ib21wJQ84QHkAel337l06YTwgQLcSzg3AcBeYx X-Received: by 2002:a9d:64ca:: with SMTP id n10mr3806869otl.325.1584537204264; Wed, 18 Mar 2020 06:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584537204; cv=none; d=google.com; s=arc-20160816; b=O5n6PYtdz+NTEWxo2urEIhxaIvIj13MPgc78Xg6KaSs17DxzsYk9lDR/BgLQ0t28g6 T7bKWZIR88dOcdUKSkgEl78k3mIEN8iMnYC0vxPY6HU1XRbxJnU0fw7s87+0EAUX00+K U8tDU6qy9pw7rclDhmTmJlSU4ZtTX33baWbnMDpFQ68RneAPCOa2SE0mK9zKYTQNp8Kw WGU1HlELQl4xlMLnJvpEbVi9iAt/Mi6YzGd+JaFAzzlEsHq3JTIqlxEjDTvmZD+nFLXh sYwJ/JlDByGIxfhEy8GQsnDYQq6o3YZ3N1sZU3NNdOpr1szQYRhd2V1bB5qQZ/TMnfhG u9iA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=7Qu1DWG5/UZvt0/dCfhesRE2997HoBAQq5/RXRy0+P4=; b=vrP/UOLwWW5snwrT3iv5oFpLhBb4TmJmV2O5O0mQTEehwqWfYW8rMsgXzJBgP5DeBX 0T+MmZpVWzIQYkeapSsmoaSTt4+K/i+xO0Y9dcI9wy4JLz8hnn0QLh53DtrHb5BN7xfa 3nzAtBYaK0p60P6wyapRkQXkGVFRrz8DzMJQ2LsOjawFAu1I+R95o1dlfds5R2xJdtoM xEAdufb8QpNmooRO//MKWMHf+nh4QwthlHQIeZMKAUmfB4PZG45GyQq8ab73PxdzKE/0 ch1Hc04B8yh3GbMVAGgf15W3HauFhddn8RercXLqusqvZij0zF73NigaHCj5Umo/oVLo coTg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i133si3349085oih.80.2020.03.18.06.13.10; Wed, 18 Mar 2020 06:13:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727011AbgCRNLb (ORCPT + 99 others); Wed, 18 Mar 2020 09:11:31 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:44342 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726796AbgCRNLa (ORCPT ); Wed, 18 Mar 2020 09:11:30 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: alyssa) with ESMTPSA id 1E0CF294B84 Date: Wed, 18 Mar 2020 09:11:14 -0400 From: Alyssa Rosenzweig To: Lukasz Luba Cc: 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, 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, airlied@linux.ie, daniel@ffwll.ch, liviu.dudau@arm.com, lorenzo.pieralisi@arm.com, patrick.bellasi@matbug.net, orjan.eide@arm.com, rdunlap@infradead.org, mka@chromium.org Subject: Re: [PATCH v5 5/5] drm/panfrost: Register devfreq cooling and attempt to add Energy Model Message-ID: <20200318131114.GA1812@kevin> References: <20200318114548.19916-1-lukasz.luba@arm.com> <20200318114548.19916-6-lukasz.luba@arm.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20200318114548.19916-6-lukasz.luba@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Reviewed-by: Alyssa Rosenzweig On Wed, Mar 18, 2020 at 11:45:48AM +0000, Lukasz Luba wrote: > 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. >=20 > Reviewed-by: Steven Price > Signed-off-by: Lukasz Luba > --- > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/dr= m/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 *pfd= ev) > } > pfdev->devfreq.devfreq =3D devfreq; > =20 > - cooling =3D of_devfreq_cooling_register(dev->of_node, devfreq); > + cooling =3D devfreq_cooling_em_register(devfreq, NULL); > if (IS_ERR(cooling)) > DRM_DEV_INFO(dev, "Failed to register cooling device\n"); > else > --=20 > 2.17.1 >=20 --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEQ17gm7CvANAdqvY4/v5QWgr1WA0FAl5yHe0ACgkQ/v5QWgr1 WA3gpxAAhQnRoPbq6S2+0Lb7C5bP7Ta67p3aDFRc/xxNEKsqRl5YcErm72knMqpa ojkyaIkecKFeI6D1QS9UpFtSDzHdq+HsBJSnSBsR8ND6GOlUv3ZQhl7dQAf37exS Kq64qQnpJfy/kcF5zStxtD145VJDXoX1By4AdnSg+kOuYi2HAKQ2SbQvYDd5ffk0 9fe6YagwE/iaz2o5z0c2EO6nBjstSo91/AKx99MwW7IfgJmgMZCGE0Q4UTduryr2 tFSBzWTStKCWxI2lDsrRQcF7KN4mZ2dZWgNFo4UU5tp36/kGHqKQ+Vzyaay8WWGU IHgjKW+vo9TH8QyayRCCljtl/iYUbhrEa9n6APCnmW6sNsxPuO6KbZ3vzMz6WkLJ /W1M+XIchveNFRZB7ku8DG4nLgISikgjMnPCO/F/y0NOQ8YaU7GeyeGj7yRom6LY e4Oz34cToBULP5m6B1b/KGu013TwkRqwAoc2qHAlB5TXBXm/zOdyLqPo1/pgul30 H4+YKSUEl95b5w8URYnoKvf3sS0wocG4GvdC2pY8IOYRUNSmfsxiPW33Y7wcavgj WF9YUFO5mRV1b+2QppuWp2UIwSjC7Uuh2lCTFhK4hod+RptE5h1MoKmQa2jSegr8 3uvfCXtDGQskJ+MDv9aUtGYTX14nPfwXUO3RPidKGgMF8r6W3to= =pczP -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--