提交 0037f71c 编写于 作者: V Ville Syrjälä 提交者: Daniel Vetter

drm/i915: WARN if primary plane state doesn't match expectations

Signed-off-by: NVille Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: NChris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 d1de00ef
......@@ -1840,6 +1840,8 @@ static void intel_enable_primary_plane(struct drm_i915_private *dev_priv,
/* If the pipe isn't enabled, we can't pump pixels and may hang */
assert_pipe_enabled(dev_priv, pipe);
WARN(!intel_crtc->primary_disabled, "Primary plane already enabled\n");
intel_crtc->primary_disabled = false;
reg = DSPCNTR(plane);
......@@ -1868,6 +1870,8 @@ static void intel_disable_primary_plane(struct drm_i915_private *dev_priv,
int reg;
u32 val;
WARN(intel_crtc->primary_disabled, "Primary plane already disabled\n");
intel_crtc->primary_disabled = true;
reg = DSPCNTR(plane);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册