Skip to content

eDP panel power sequencing optimizations

Paulo Zanoni intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 27 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/i915: init the DP panel power seq variables earlierdrivers/gpu/drm/i915/intel_dp.c+8 -71 reply
2/6drm/i915: save some time when waiting the eDP timingsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h+56 -37 replies
2/6drm/i915: save some time when waiting the eDP timingsdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h+54 -30 replies
3/6drm/i915: reset eDP timestamps on resumedrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c +2 more+38 -01 reply
3/6drm/i915: reset eDP timestamps on resumedrivers/gpu/drm/i915/i915_drv.c drivers/gpu/drm/i915/intel_ddi.c drivers/gpu/drm/i915/intel_display.c +2 more+39 -03 replies
3/6drm/i915: reset eDP timestamps on resumedrivers/gpu/drm/i915/intel_dp.c+22 -06 replies
4/6drm/i915: remove a column of zeros from the eDP wait definitionsdrivers/gpu/drm/i915/intel_dp.c+6 -61 reply
5/6drm/i915: don't wait for power cycle when waiting for power offdrivers/gpu/drm/i915/intel_dp.c+2 -22 replies
6/6drm/i915: set the backlight panel delays registers to 1drivers/gpu/drm/i915/intel_dp.c+10 -36 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchJesse BarnesJani Nikula
1/6R-b R-b
2/6R-b R-b
2/6R-b R-b
3/6R-b
3/6R-b
3/6R-b
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] eDP panel power sequencing optimizations

From: Paulo Zanoni <[email protected]>

Hi

These patches save a lot of time on our eDP panel power sequencing times. We were doing a lot of needless waits, so now our load times should be much shorter.

This series should improve a little bit our driver load time, and it should greatly improve our suspend time. The most relevant thing is that when we were waiting for the "panel off" timeout (50ms on my machine), we were not just waiting for it, but also waiting for the "backlight off" timeout (200ms) and the "panel power cycle" timeout (500ms). QA did some measurements of a branch containing these 6 patches + two patches removing the "wait for vblank timeout" problems we have on Haswell, and the results are reported here:
https://bugs.freedesktop.org/show_bug.cgi?id=72211.

One of my worries about this series is that, due to the extremely smaller wait times, we may get regression reports saying "my panel is now black!" due to broken VBT/BIOS/panel/whatever. If this happens, IMHO instead of just reverting the current patches, we should add some extra msleep() calls surrounded by FIXME comments explicitly saying why we are waiting more than we should, because the current code was silently hiding the fact that we were waiting more than we should.

Thanks,
Paulo

Paulo Zanoni (6):
drm/i915: init the DP panel power seq variables earlier drm/i915: save some time when waiting the eDP timings drm/i915: reset eDP timestamps on resume
drm/i915: remove a column of zeros from the eDP wait definitions drm/i915: don't wait for power cycle when waiting for power off drm/i915: set the backlight panel delays registers to 1

 drivers/gpu/drm/i915/i915_drv.c      |  2 +
 drivers/gpu/drm/i915/i915_drv.h      | 29 ++++++++++++
 drivers/gpu/drm/i915/intel_ddi.c     |  1 +
 drivers/gpu/drm/i915/intel_display.c | 11 +++++
 drivers/gpu/drm/i915/intel_dp.c      | 88 ++++++++++++++++++++++++++++--------
 drivers/gpu/drm/i915/intel_drv.h     |  6 +++
 6 files changed, 118 insertions(+), 19 deletions(-)
Signature · 1 line
1.8.3.1