[Intel-gfx] [PATCH] drm/i915/skl: Do not error out when total_data_rate is 0

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Mon Aug 15 10:09:15 UTC 2016


This can happen when doing a modeset with only the cursor plane active.

Testcase: kms_atomic_transition
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index 651277b0c917..550d9f0688ae 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -3115,8 +3115,6 @@ skl_get_total_relative_data_rate(struct intel_crtc_state *intel_cstate)
 		total_data_rate += intel_cstate->wm.skl.plane_y_data_rate[id];
 	}
 
-	WARN_ON(cstate->plane_mask && total_data_rate == 0);
-
 	return total_data_rate;
 }
 
-- 
2.7.4



More information about the Intel-gfx mailing list