drm/i915: Enable runtime pm
Subsystems (2)
PATCH 1/1 drm/i915: Enable runtime pm
Now that we have CI, and that pm_rpm fully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.
Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
v2: Completely new commit message, a few years passed since v1 ...
--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_runtime_pm.c +3 -1
@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;struct device *kdev = &pdev->dev; -pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );pm_runtime_mark_last_busy (kdev);/*
@@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)pm_runtime_use_autosuspend (kdev); } +pm_runtime_allow (kdev); +/* * The core calls the driver load handler with an RPM reference held. * We drop that here and will reacquire it during unloading in
Signature · 6 lines
2.15.0.rc2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: failure for drm/i915: Enable runtime pm
== Series Details ==
== Series Details ==
Series: drm/i915: Enable runtime pm
URL : https://patchwork.freedesktop.org/series/33359/
State : failure
== Summary ==
Series 33359v1 drm/i915: Enable runtime pm
https://patchwork.freedesktop.org/api/1.0/series/33359/revisions/1/mbox/
Test chamelium:
Subgroup dp-crc-fast:
pass -> DMESG-WARN (fi-kbl-7500u) fdo#102514
Test gem_exec_nop:
Subgroup basic-series:
pass -> DMESG-FAIL (fi-glk-dsi)
Test gem_exec_parallel:
Subgroup basic:
pass -> SKIP (fi-glk-dsi)
Test gem_exec_reloc:
Subgroup basic-cpu:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-gtt:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-cpu:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-read:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-read:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-cpu:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-gtt:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-read:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-gtt-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-cpu-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-read-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-read-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-cpu-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-gtt-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-read-noreloc:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-gtt-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-cpu-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-cpu-read-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-gtt-read-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-cpu-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-gtt-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-write-read-active:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-softpin:
pass -> SKIP (fi-glk-dsi)
Test gem_exec_store:
Subgroup basic-all:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-blt:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-bsd:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-default:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-render:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-vebox:
pass -> SKIP (fi-glk-dsi)
Test gem_exec_suspend:
Subgroup basic:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-s3:
pass -> SKIP (fi-glk-dsi)
Subgroup basic-s4-devices:
pass -> SKIP (fi-glk-dsi)
Test gem_linear_blits:
Subgroup basic:
pass -> SKIP (fi-glk-dsi)
Test gem_render_linear_blits:
Subgroup basic:
pass -> SKIP (fi-glk-dsi)
Test gem_render_tiled_blits:
Subgroup basic:
pass -> SKIP (fi-glk-dsi)Test gem_ringfill:
Subgroup basic-default:
WARNING: Long output truncated
eb031b266f224a2b9ded3b0b5c425991fea8f8c5 drm-tip: 2017y-11m-07d-14h-27m-25s UTC integration manifest 0b80ad6c25c1 drm/i915: Enable runtime pm
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_6996/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Jani Nikula
maintainerQuoted 10 lines · Daniel Vetter
Now that we have CI, and that
pm_rpmfully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
v2: Completely new commit message, a few years passed since v1 ...
I suppose this is something that could use more than a single round of IGT CI before merging...?
BR,
Jani.
Quoted 35 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +3
-1@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;struct device *kdev = &pdev->dev; -pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );pm_runtime_mark_last_busy (kdev);/* @@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)pm_runtime_use_autosuspend (kdev); } +pm_runtime_allow (kdev); +/* * The core calls the driver load handler with an RPM reference held. * We drop that here and will reacquire it during unloading in
Signature · 5 lines
Jani Nikula, Intel Open Source Technology Center _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 10 lines · Jani Nikula
Quoted 9 lines · Daniel Vetter
Now that we have CI, and that
pm_rpmfully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
Quoted 4 lines
Quoted 1 line
v2: Completely new commit message, a few years passed since v1 ...
I suppose this is something that could use more than a single round of IGT CI before merging...?
The dedicated pm_rpm tests explicitly enable this (with a timeout of 0) on all machines we run in shards. It's been green for a long time. So this just tests for accidental fallout everywhere else (timing shifts essentially), which I think is fairly low priority.
Hence I'm not terribly worried about this one here.
Quoted 26 lines
BR,
Jani.Quoted 21 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +0
-0@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;struct device *kdev = &pdev->dev;
Quoted 2 lines
drivers/gpu/drm/i915/intel_runtime_pm.c void intel_runtime_pm_enable(struct drm_i915_private *dev_priv) · line 3235
Quoted 2 lines
drivers/gpu/drm/i915/intel_runtime_pm.c +1
-1-pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );
Wrt the data requested for this here. On bxt (probably the slowest box we have), from the pm_rpm tests, looking at dmesg I get the following values:
- device suspend: 3-4ms
- device resume: 10-11ms
So grand total is 15ms for a transition.
On top the display will keep us out of runtime pm, as will even a mildly busy gt. I think the 100ms value isn't aggressive at all given that. -Daniel
Quoted 15 lines
Quoted 12 lines
drivers/gpu/drm/i915/intel_runtime_pm.c +2
-0pm_runtime_mark_last_busy (kdev);/* @@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)pm_runtime_use_autosuspend (kdev); } +pm_runtime_allow (kdev); +/* * The core calls the driver load handler with an RPM reference held. * We drop that here and will reacquire it during unloading in Signature · 1 line
Jani Nikula, Intel Open Source Technology Center
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Fi.CI.BAT: warning for drm/i915: Enable runtime pm
In reply to Daniel Vetter== Series Details ==
== Series Details ==
Series: drm/i915: Enable runtime pm
URL : https://patchwork.freedesktop.org/series/33359/
State : warning
== Summary ==
Series 33359v1 drm/i915: Enable runtime pm
https://patchwork.freedesktop.org/api/1.0/series/33359/revisions/1/mbox/
Test chamelium:
Subgroup dp-crc-fast:
pass -> DMESG-WARN (fi-kbl-7500u) fdo#102514
Test kms_pipe_crc_basic:
Subgroup read-crc-pipe-b:
skip -> PASS (fi-hsw-4770r)
Subgroup read-crc-pipe-c-frame-sequence:
pass -> SKIP (fi-hsw-4770r)fdo#102514 https://bugs.freedesktop.org/show_bug.cgi?id=102514
fi-bdw-5557u total:289 pass:268 dwarn:0 dfail:0 fail:0 skip:21 time:444s fi-bdw-gvtdvm total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:456s fi-blb-e6850 total:289 pass:223 dwarn:1 dfail:0 fail:0 skip:65 time:379s fi-bsw-n3050 total:289 pass:243 dwarn:0 dfail:0 fail:0 skip:46 time:547s fi-bwr-2160 total:289 pass:183 dwarn:0 dfail:0 fail:0 skip:106 time:275s fi-bxt-dsi total:289 pass:259 dwarn:0 dfail:0 fail:0 skip:30 time:508s fi-bxt-j4205 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:504s fi-byt-j1900 total:289 pass:253 dwarn:1 dfail:0 fail:0 skip:35 time:505s fi-byt-n2820 total:289 pass:249 dwarn:1 dfail:0 fail:0 skip:39 time:485s fi-cfl-s total:289 pass:254 dwarn:3 dfail:0 fail:0 skip:32 time:550s fi-elk-e7500 total:289 pass:229 dwarn:0 dfail:0 fail:0 skip:60 time:428s fi-gdg-551 total:289 pass:178 dwarn:1 dfail:0 fail:1 skip:109 time:264s fi-glk-1 total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:587s fi-hsw-4770 total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:449s fi-hsw-4770r total:289 pass:261 dwarn:0 dfail:0 fail:0 skip:28 time:432s fi-ilk-650 total:289 pass:228 dwarn:0 dfail:0 fail:0 skip:61 time:430s fi-ivb-3520m total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:503s fi-ivb-3770 total:289 pass:260 dwarn:0 dfail:0 fail:0 skip:29 time:458s fi-kbl-7500u total:289 pass:263 dwarn:2 dfail:0 fail:0 skip:24 time:489s fi-kbl-7560u total:289 pass:270 dwarn:0 dfail:0 fail:0 skip:19 time:575s fi-kbl-7567u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:476s fi-kbl-r total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:590s fi-pnv-d510 total:289 pass:222 dwarn:1 dfail:0 fail:0 skip:66 time:575s fi-skl-6260u total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:460s fi-skl-6600u total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:596s fi-skl-6700hq total:289 pass:263 dwarn:0 dfail:0 fail:0 skip:26 time:651s fi-skl-6700k total:289 pass:265 dwarn:0 dfail:0 fail:0 skip:24 time:521s fi-skl-6770hq total:289 pass:269 dwarn:0 dfail:0 fail:0 skip:20 time:505s fi-skl-gvtdvm total:289 pass:266 dwarn:0 dfail:0 fail:0 skip:23 time:460s fi-snb-2520m total:289 pass:250 dwarn:0 dfail:0 fail:0 skip:39 time:574s fi-snb-2600 total:289 pass:249 dwarn:0 dfail:0 fail:0 skip:40 time:418s Blacklisted hosts: fi-cnl-y total:289 pass:262 dwarn:0 dfail:0 fail:0 skip:27 time:597s fi-glk-dsi total:289 pass:191 dwarn:1 dfail:4 fail:0 skip:93 time:426s
eb031b266f224a2b9ded3b0b5c425991fea8f8c5 drm-tip: 2017y-11m-07d-14h-27m-25s UTC integration manifest 0b80ad6c25c1 drm/i915: Enable runtime pm
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/Patchwork_6996/
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 11 lines · Daniel Vetter
Now that we have CI, and that
pm_rpmfully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
v2: Completely new commit message, a few years passed since v1 ...
Quoted 8 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
lgtm,
Quoted 33 lines
--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +3
-1@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;struct device *kdev = &pdev->dev; -pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );pm_runtime_mark_last_busy (kdev);/* @@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)pm_runtime_use_autosuspend (kdev); } +pm_runtime_allow (kdev); +/* * The core calls the driver load handler with an RPM reference held. * We drop that here and will reacquire it during unloading in Signature · 6 lines
2.15.0.rc2 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 21 lines · David Weinehall
Quoted 11 lines · Daniel Vetter
Now that we have CI, and that
pm_rpmfully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
v2: Completely new commit message, a few years passed since v1 ...
Quoted 8 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>
Quoted 3 lines
lgtm,
Reviewed-by David Weinehall <[email protected]>
Been testing a bit; test results are a bit discouraging when it comes to idle power consumption.
Our nightly test suite logs idle power consumption before running any tests, after running all tests, and then finally after running powertop --auto-tune.
The before and after cases are similar with and without patch, but not so for the auto-tune case.
Without this patch, powertop --auto-tune yields a massive improvement (on NUC6i5 the power consumption drops with more than a factor of 3), while with this patch the power consumption just drops with 10% or so.
Judging by the powertop output it seems as though we're getting a lot of interrupts from i915.
* * * Top 10 Power Consumers * * *
With patch:
Usage;Events/s;Category;Description
0,5%; 75,1;Interrupt;[124] i915
0,3%; 48,4;Process;/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch 0,1%; 42,8;Timer;hrtimer_wakeup
0,0%; 34,9;Timer;tick_sched_timer
4,2%; 1,1;kWork;i915_hpd_poll_init_work
0,1%; 14,0;Process;python2 /opt/scripts/dut/dutlaunch/launch2.py --workspace=/opt/jenkins/workspace/Custom_test --iterations=1 idlepower_before un 0,0%; 13,3;Process;[rcu_preempt]
0,8%; 1,7;Process;python /opt/scripts/dut/perf-meter.py --avgskip 1 --name perf-meter --infofile /tmp/testname GLBenchmark testfw_app synmark2 he 0,0%; 3,0;Process;compiz
0,7%; 0,11;kWork;output_poll_execute
Without the patch:
Usage;Events/s;Category;Description
0,0%; 29,1;Timer;tick_sched_timer
0,1%; 19,9;Process;python2 /opt/scripts/dut/dutlaunch/launch.py --workspace=/opt/jenkins/workspace/Nightly_kernel_test/kernel/1510773665/SKL_6260U 0,0%; 13,2;Process;[rcu_preempt]
0,8%; 1,6;Process;python /opt/scripts/dut/perf-meter.py --avgskip 1 --name perf-meter --infofile /tmp/testname GLBenchmark testfw_app synmark2 he 0,0%; 2,5;Process;compiz 0,0%; 1,5;Process;java -jar slave.jar 0,0%; 1,2;Interrupt;[3] net_rx(softirq) 0,0%; 1,0;kWork;pci_pme_list_scan 0,0%; 0,9;Interrupt;[121] xhci_hcd 0,1%; 0,5;Process;perf-meter
As can be seen the i915 driver doesn't even show up without the patch, while it's the main culprit with the patch.
Just to eliminate DMC issues I'm going to do another run, but with DMC v1.27 instead of v1.26.
Kind regards, David
Quoted 30 lines
Quoted 30 lines
--- drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +3
-1@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)struct pci_dev *pdev = dev_priv->drm.pdev;struct device *kdev = &pdev->dev; -pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );pm_runtime_mark_last_busy (kdev);/* @@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)pm_runtime_use_autosuspend (kdev); } +pm_runtime_allow (kdev); +/* * The core calls the driver load handler with an RPM reference held. * We drop that here and will reacquire it during unloading in Signature · 1 line
2.15.0.rc2
Quoted 8 lines
Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Em Qui, 2017-11-16 às 20:24 +0200, David Weinehall escreveu:
Quoted 38 lines · David Weinehall
Quoted 25 lines · Daniel Vetter
Quoted 15 lines
Now that we have CI, and that
pm_rpmfully passes (I guess the audio
folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support,
instead of tons of different codes with every user/customer tuning it
differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.v2: Completely new commit message, a few years passed since v1
...Quoted 8 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Quoted 3 lines
lgtm,
Reviewed-by David Weinehall <[email protected]>Been testing a bit; test results are a bit discouraging when it comes to
idle power consumption.Our nightly test suite logs idle power consumption before running any tests, after running all tests, and then finally after running powertop --auto-tune.
Quoted 7 lines
The before and after cases are similar with and without patch, but not so for the auto-tune case.
Without this patch, powertop --auto-tune yields a massive improvement (on NUC6i5 the power consumption drops with more than a factor of 3), while with this patch the power consumption just drops with 10% or so.
What happens if you keep the autosuspend delay to 10000?
Quoted 48 lines
Judging by the powertop output it seems as though we're getting a lot of
interrupts from i915.* * * Top 10 Power Consumers * * *
With patch:
Usage;Events/s;Category;Description
0,5%; 75,1;Interrupt;[124] i915
0,3%; 48,4;Process;/usr/lib/xorg/Xorg -core :0 -seat seat0 -auth/var/run/lightdm/root/:0-nolisten tcp vt7 -novtswitch 0,1%; 42,8;Timer;hrtimer_wakeup
0,0%; 34,9;Timer;tick_sched_timer
4,2%; 1,1;kWork;i915_hpd_poll_init_work
0,1%; 14,0;Process;python2/opt/scripts/dut/dutlaunch/launch2.py-- workspace=/opt/jenkins/workspace/Custom_test --iterations=1idlepower_beforeun
0,0%; 13,3;Process;[rcu_preempt]
0,8%; 1,7;Process;python/opt/scripts/dut/perf-meter.py--avgskip 1 --name perf-meter --infofile/tmp/testnameGLBenchmarktestfw_appsynmark2 he
0,0%; 3,0;Process;compiz
0,7%; 0,11;kWork;output_poll_executeWithout the patch:
Usage;Events/s;Category;Description
0,0%; 29,1;Timer;tick_sched_timer
0,1%; 19,9;Process;python2/opt/scripts/dut/dutlaunch/launch.py-- workspace=/opt/jenkins/workspace/Nightly_kernel_test/kernel/151077366 5/SKL_6260U
0,0%; 13,2;Process;[rcu_preempt]
0,8%; 1,6;Process;python/opt/scripts/dut/perf-meter.py--avgskip 1 --name perf-meter --infofile/tmp/testnameGLBenchmarktestfw_appsynmark2 he
0,0%; 2,5;Process;compiz
0,0%; 1,5;Process;java -jar slave.jar
0,0%; 1,2;Interrupt;[3]net_rx(softirq)
0,0%; 1,0;kWork;pci_pme_list_scan
0,0%; 0,9;Interrupt;[121]xhci_hcd
0,1%; 0,5;Process;perf-meterAs can be seen the i915 driver doesn't even show up without the patch,
while it's the main culprit with the patch.
Quoted 51 lines
Just to eliminate DMC issues I'm going to do another run, but with DMC
v1.27 instead of v1.26.Kind regards, David
Quoted 44 lines
Quoted 35 lines
---
drivers/gpu/drm/i915/intel_runtime_pm.c | 4 +++-1 file changed, 3 insertions(+), 1 deletion(-)drivers/gpu/drm/i915/intel_runtime_pm.c +0
-0@@ -3232,7 +3232,7 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv) struct pci_dev *pdev = dev_priv->drm.pdev; struct device *kdev = &pdev->dev;drivers/gpu/drm/i915/intel_runtime_pm.c +1
-1-pm_runtime_set_autosuspend_delay (kdev,10000 );/* 10s */ +pm_runtime_set_autosuspend_delay (kdev,100 );
pm_runtime_mark_last_busy(kdev);
/*drivers/gpu/drm/i915/intel_runtime_pm.c +0
-0@@ -3251,6 +3251,8 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv) pm_runtime_use_autosuspend(kdev); }drivers/gpu/drm/i915/intel_runtime_pm.c +2
-0+pm_runtime_allow (kdev); +/*
* The core calls the driver load handler with an RPM reference held.
* We drop that here and will reacquire it during unloading in
--
2.15.0.rc2Quoted 4 lines
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoting Paulo Zanoni (2017-11-16 20:45:26)
Quoted 42 lines
Em Qui, 2017-11-16 às 20:24 +0200, David Weinehall escreveu:
Quoted 41 lines · David Weinehall
Quoted 25 lines · Daniel Vetter
Quoted 15 lines
Now that we have CI, and that
pm_rpmfully passes (I guess the audio
folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support,
instead of tons of different codes with every user/customer tuning it
differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.v2: Completely new commit message, a few years passed since v1
...Quoted 8 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Quoted 3 lines
lgtm,
Reviewed-by David Weinehall <[email protected]>Been testing a bit; test results are a bit discouraging when it comes to
idle power consumption.Our nightly test suite logs idle power consumption before running any tests, after running all tests, and then finally after running powertop --auto-tune.
The before and after cases are similar with and without patch, but not so for the auto-tune case.
Quoted 6 lines
Quoted 4 lines
Without this patch, powertop --auto-tune yields a massive improvement (on NUC6i5 the power consumption drops with more than a factor of 3), while with this patch the power consumption just drops with 10% or so.
What happens if you keep the autosuspend delay to 10000?
The problem with the extra hpd triggering a render and flip still remains, but less frequent.
Remove compiz + desktop manager from the picture and see if that cures it. Then obviously you have to try each of the main desktop managers / display servers to see which have good/bad behaviour (if my hunch is correct). And if it does, we can't proceed with an aggressive default, but will have to recommend that the display managers set it according to their needs.
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 33 lines · David Weinehall
Quoted 21 lines · David Weinehall
Quoted 11 lines · Daniel Vetter
Now that we have CI, and that
pm_rpmfully passes (I guess the audio folks have implemented proper runtime pm for snd-hda, hooray, pls confirm) it's time to enable this again by default.Real goal here is to have 1 configuration only that we fully support, instead of tons of different codes with every user/customer tuning it differently. And really, power stuff should work by default, and should be enabled by everywhere where it is save to do so.
v2: Completely new commit message, a few years passed since v1 ...
Quoted 8 lines
Cc Takashi Iwai <[email protected]>Cc Liam Girdwood <[email protected]>Cc "Yang, Libin" <[email protected]>Cc "Lin, Mengdong" <[email protected]>Cc "Li, Jocelyn" <[email protected]>Cc "Kaskinen, Tanu" <[email protected]>Cc "Zanoni, Paulo R" <[email protected]>Signed-off-by Daniel Vetter <[email protected]>Quoted 3 lines
lgtm,
Reviewed-by David Weinehall <[email protected]>Been testing a bit; test results are a bit discouraging when it comes to idle power consumption.
Our nightly test suite logs idle power consumption before running any tests, after running all tests, and then finally after running powertop --auto-tune.
Quoted 6 lines
The before and after cases are similar with and without patch, but not so for the auto-tune case.
Without this patch, powertop --auto-tune yields a massive improvement (on NUC6i5 the power consumption drops with more than a factor of 3), while with this patch the power consumption just drops with 10% or so.
With the 10s => 0.1s bit of the patch reverted there's no longer any --auto-tune regression.
Kind regards, David
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx