intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Use the correct maximum in skl_compute_plane_wm
@ 2018-01-30 13:54 Maarten Lankhorst
  2018-01-30 14:06 ` Ville Syrjälä
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Maarten Lankhorst @ 2018-01-30 13:54 UTC (permalink / raw)
  To: intel-gfx

According to bspec, result_lines > 31 is only a maximum for latency
level 1 through 7, so correctly apply the check there.

This is required to make NV12 work.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 26132fa6ebce..f19a3fc2466e 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -4805,7 +4805,7 @@ static int skl_compute_plane_wm(const struct drm_i915_private *dev_priv,
 			res_blocks = result_prev->plane_res_b;
 	}
 
-	if (res_blocks >= ddb_allocation || res_lines > 31) {
+	if (res_blocks >= ddb_allocation || (level >= 1 && level <= 7 && res_lines > 31)) {
 		result->plane_en = false;
 
 		/*
-- 
2.15.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-01-31 13:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-30 13:54 [PATCH] drm/i915: Use the correct maximum in skl_compute_plane_wm Maarten Lankhorst
2018-01-30 14:06 ` Ville Syrjälä
2018-01-30 15:05   ` [PATCH] drm/i915: Ignore minimum lines for level 0 " Maarten Lankhorst
2018-01-30 15:16     ` Ville Syrjälä
2018-01-31  9:46       ` [(rebase for CI) PATCH] " Maarten Lankhorst
2018-01-30 18:28 ` ✗ Fi.CI.BAT: failure for drm/i915: Use the correct maximum in skl_compute_plane_wm (rev2) Patchwork
2018-01-31 10:20 ` ✓ Fi.CI.BAT: success for drm/i915: Use the correct maximum in skl_compute_plane_wm (rev3) Patchwork
2018-01-31 13:01 ` ✓ Fi.CI.IGT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).