From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts Date: Fri, 23 Mar 2018 21:18:54 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1609974743==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id B21AB6E2A6 for ; Fri, 23 Mar 2018 21:18:53 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1609974743== Content-Type: multipart/alternative; boundary="15218399330.4aB3A.15566" Content-Transfer-Encoding: 7bit --15218399330.4aB3A.15566 Date: Fri, 23 Mar 2018 21:18:53 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D105712 --- Comment #5 from Chris Wilson --- Add a couple of printfs, diff --git a/overlay/power.c b/overlay/power.c index 9ac90fde..e6ac728a 100644 --- a/overlay/power.c +++ b/overlay/power.c @@ -117,8 +117,12 @@ int power_init(struct power *power) memset(power, 0, sizeof(*power)); power->fd =3D igt_perf_open(rapl_type_id(), rapl_gpu_power()); + fprintf(stderr, "rapl_type_id()=3D%"PRIx64", rapl_gpu_power()=3D%"PRIx64"\n", + rapl_type_id(), rapl_gpu_power()); if (power->fd >=3D 0) { power->rapl_scale =3D rapl_gpu_power_scale(); + fprintf(stderr, "rapl_gpu_power_scale()=3D%f\n", + rapl_gpu_power_scale()); if (power->rapl_scale !=3D NAN) { power->rapl_scale *=3D 1e3; /* from nano to micro */ and run with -f (so that it doesn't detach and we can see the output). --=20 You are receiving this mail because: You are the assignee for the bug.= --15218399330.4aB3A.15566 Date: Fri, 23 Mar 2018 21:18:53 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 5 on bug 10571= 2 from Chris Wilson
Add a couple of printfs,

diff --git a/overlay/power.c b/overlay/power.c
index 9ac90fde..e6ac728a 100644
--- a/overlay/power.c
+++ b/overlay/power.c
@@ -117,8 +117,12 @@ int power_init(struct power *power)
        memset(power, 0, sizeof(*power));

        power->fd =3D igt_perf_open(rapl_type_id(), rapl_gpu_power());
+       fprintf(stderr, "rapl_type_id()=3D%"PRIx64",
rapl_gpu_power()=3D%"PRIx64"\n",
+               rapl_type_id(), rapl_gpu_power());
        if (power->fd >=3D 0) {
                power->rapl_scale =3D rapl_gpu_power_scale();
+               fprintf(stderr, "rapl_gpu_power_scale()=3D%f\n",
+                       rapl_gpu_power_scale());

                if (power->rapl_scale !=3D NAN) {
                        power->rapl_scale *=3D 1e3; /* from nano to micr=
o */

and run with -f (so that it doesn't detach and we can see the output).


You are receiving this mail because:
  • You are the assignee for the bug.
= --15218399330.4aB3A.15566-- --===============1609974743== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1609974743==--