Skip to content

Wrap up ILK-style atomic watermarks, try two

Matt Roper intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915: Convert hsw_compute_linetime_wm to use in-flight statedrivers/gpu/drm/i915/intel_pm.c+10 -60 replies
2/4drm/i915: Add extra paranoia to ILK watermark calculationsdrivers/gpu/drm/i915/intel_pm.c+16 -00 replies
3/4drm/i915: Sanitize watermarks after hardware state readoutdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_pm.c+60 -60 replies
3/4drm/i915: Sanitize watermarks after hardware state readout (v2)drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_pm.c+64 -67 replies
4/4drm/i915: Add two-stage ILK-style watermark programming (v6)drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_atomic.c drivers/gpu/drm/i915/intel_display.c +2 more+232 -560 replies
4/4drm/i915: Add two-stage ILK-style watermark programming (v7)drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_atomic.c drivers/gpu/drm/i915/intel_display.c +2 more+232 -560 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Wrap up ILK-style atomic watermarks, try two

Patches #3 and #4 here are the final two patches from the atomic watermark series that was posted here:

http://lists.freedesktop.org/archives/intel-gfx/2015-September/076634.html

We had to pull those out when Jani reported a BDW boot regression (divide by zero during watermark calculation). Although we never found a smoking gun for that divide by zero, I haven't been able to reproduce the issue on a similar system. There's been a lot of code churn since that time, so I'm hoping that we've either already fixed the issue without realizing it, or that the extra paranoia added in patch #2 here will avoid the crash and highlight the culprit.

The first patch here solves a legitimate bug that could cause a divide-by-zero (just not the one Jani was seeing). The second patch adds extra guards on divide operations to verify our invariants and ensure that bugs elsewhere in the driver can't lead to a fatal divide-by-zero (at least on the ILK codepaths).

Please don't merge #3 or #4 here until we at least get a positive test result from Jani.

Matt Roper (4):
drm/i915: Convert hsw_compute_linetime_wm to use in-flight state drm/i915: Add extra paranoia to ILK watermark calculations drm/i915: Sanitize watermarks after hardware state readout drm/i915: Add two-stage ILK-style watermark programming (v6)

 drivers/gpu/drm/i915/i915_drv.h      |   5 +
 drivers/gpu/drm/i915/intel_atomic.c  |   1 +
 drivers/gpu/drm/i915/intel_display.c | 137 +++++++++++++++++++++++++-
 drivers/gpu/drm/i915/intel_drv.h     |  31 +++++-
 drivers/gpu/drm/i915/intel_pm.c      | 186 +++++++++++++++++++++++++----------
 5 files changed, 305 insertions(+), 55 deletions(-)
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx