mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-29 07:34:06 +08:00
drm/i915: WARN if primary plane state doesn't match expectations
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
d1de00efcb
commit
0037f71c4b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user