* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
@ 2018-03-23 14:31 ` bugzilla-daemon
2018-03-23 18:39 ` bugzilla-daemon
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 14:31 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #1 from Chris Wilson <chris@chris-wilson.co.uk> ---
Please try drm-tip as the interface intel-gpu-overlay uses has finally been
upstreamed, hopefully it's just that.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1126 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
2018-03-23 14:31 ` bugzilla-daemon
@ 2018-03-23 18:39 ` bugzilla-daemon
2018-03-23 20:56 ` bugzilla-daemon
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 18:39 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 421 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #2 from leozinho29_eu@hotmail.com ---
I suppose drm-tip is this: https://cgit.freedesktop.org/drm-tip
I have tried to use that kernel but intel-gpu-overlay is still showing the
super high values. Both older versions of intel-gpu-overlay and turbostat show
sane values.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1271 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
2018-03-23 14:31 ` bugzilla-daemon
2018-03-23 18:39 ` bugzilla-daemon
@ 2018-03-23 20:56 ` bugzilla-daemon
2018-03-23 21:09 ` bugzilla-daemon
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 20:56 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 725 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #3 from Chris Wilson <chris@chris-wilson.co.uk> ---
Ok, try changing intel-gpu-tools:
diff --git a/overlay/power.c b/overlay/power.c
index 9ac90fde..e02edec8 100644
--- a/overlay/power.c
+++ b/overlay/power.c
@@ -116,7 +116,8 @@ int power_init(struct power *power)
memset(power, 0, sizeof(*power));
- power->fd = igt_perf_open(rapl_type_id(), rapl_gpu_power());
+ power->fd = -1;
+ //power->fd = igt_perf_open(rapl_type_id(), rapl_gpu_power());
if (power->fd >= 0) {
power->rapl_scale = rapl_gpu_power_scale();
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1571 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (2 preceding siblings ...)
2018-03-23 20:56 ` bugzilla-daemon
@ 2018-03-23 21:09 ` bugzilla-daemon
2018-03-23 21:18 ` bugzilla-daemon
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 21:09 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 277 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #4 from leozinho29_eu@hotmail.com ---
With this change it is showing the values as expected, 350 mW instead of
3500000000000 mW.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1076 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (3 preceding siblings ...)
2018-03-23 21:09 ` bugzilla-daemon
@ 2018-03-23 21:18 ` bugzilla-daemon
2018-03-23 22:30 ` bugzilla-daemon
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 21:18 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1069 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #5 from Chris Wilson <chris@chris-wilson.co.uk> ---
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 = igt_perf_open(rapl_type_id(), rapl_gpu_power());
+ fprintf(stderr, "rapl_type_id()=%"PRIx64",
rapl_gpu_power()=%"PRIx64"\n",
+ rapl_type_id(), rapl_gpu_power());
if (power->fd >= 0) {
power->rapl_scale = rapl_gpu_power_scale();
+ fprintf(stderr, "rapl_gpu_power_scale()=%f\n",
+ rapl_gpu_power_scale());
if (power->rapl_scale != NAN) {
power->rapl_scale *= 1e3; /* from nano to micro */
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.
[-- Attachment #1.2: Type: text/html, Size: 1955 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply related [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (4 preceding siblings ...)
2018-03-23 21:18 ` bugzilla-daemon
@ 2018-03-23 22:30 ` bugzilla-daemon
2018-03-24 2:08 ` bugzilla-daemon
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23 22:30 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 717 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #6 from leozinho29_eu@hotmail.com ---
The lines
fprintf(stderr, "rapl_type_id()=%"PRIx64",
rapl_gpu_power()=%"PRIx64"\n",
rapl_type_id(), rapl_gpu_power());
made the overlay fail to build. I have changed that to (using lx is not
perfect, but PRIx64 made it fail to build):
fprintf(stderr, "rapl_type_id()=%lx\n",rapl_type_id());
fprintf(stderr, "rapl_gpu_power()=%lx\n",rapl_gpu_power());
which should result in the intended output. It was:
rapl_type_id()=d
rapl_gpu_power()=4
rapl_gpu_power_scale()=2,000000
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1566 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (5 preceding siblings ...)
2018-03-23 22:30 ` bugzilla-daemon
@ 2018-03-24 2:08 ` bugzilla-daemon
2018-03-24 2:55 ` bugzilla-daemon
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-24 2:08 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #7 from Chris Wilson <chris@chris-wilson.co.uk> ---
And for completeness: cat /sys/devices/power/events/energy-gpu.scale
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1081 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (6 preceding siblings ...)
2018-03-24 2:08 ` bugzilla-daemon
@ 2018-03-24 2:55 ` bugzilla-daemon
2018-03-27 14:33 ` bugzilla-daemon
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-24 2:55 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 269 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #8 from leozinho29_eu@hotmail.com ---
$ sudo cat /sys/devices/power/events/energy-gpu.scale
2.3283064365386962890625e-10
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1068 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (7 preceding siblings ...)
2018-03-24 2:55 ` bugzilla-daemon
@ 2018-03-27 14:33 ` bugzilla-daemon
2018-03-27 18:30 ` bugzilla-daemon
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-27 14:33 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 366 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #9 from Chris Wilson <chris@chris-wilson.co.uk> ---
Created attachment 138378
--> https://bugs.freedesktop.org/attachment.cgi?id=138378&action=edit
Use setlocale("C") around strtod
Please try the attached patch.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1450 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (8 preceding siblings ...)
2018-03-27 14:33 ` bugzilla-daemon
@ 2018-03-27 18:30 ` bugzilla-daemon
2018-03-27 20:00 ` bugzilla-daemon
2018-10-11 19:52 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-27 18:30 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 245 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
--- Comment #10 from leozinho29_eu@hotmail.com ---
With this patch, the power consumption is shown correctly.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1045 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (9 preceding siblings ...)
2018-03-27 18:30 ` bugzilla-daemon
@ 2018-03-27 20:00 ` bugzilla-daemon
2018-10-11 19:52 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-27 20:00 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1307 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
Chris Wilson <chris@chris-wilson.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #11 from Chris Wilson <chris@chris-wilson.co.uk> ---
Thank you for the bug report and the invaluable testing.
commit 3fa0b027304ec28cd24b314349d3731b55dfcc0a (HEAD, upstream/master)
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date: Tue Mar 27 15:20:51 2018 +0100
overlay: Call setlocale around strtod
strtod() is locale-dependent. The decimal conversion depends on the radix
character ('.' for some of us like myself) varies by locale. As the
kernel reports its values using the "C" locale, we need to switch to
that when parsing; and switch back before reporting to the user.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105712
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3298 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts
2018-03-23 14:25 [Bug 105712] intel-gpu-overlay is showing insane power consumption amounts bugzilla-daemon
` (10 preceding siblings ...)
2018-03-27 20:00 ` bugzilla-daemon
@ 2018-10-11 19:52 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-10-11 19:52 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 493 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=105712
Lakshmi <lakshminarayana.vudum@intel.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #12 from Lakshmi <lakshminarayana.vudum@intel.com> ---
Closing this bug, as it was resolved/fixed.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1924 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread