[Intel-gfx] [PATCH 43/43] drm/i915: HACK: force plane enable at plane update time

Chris Wilson chris at chris-wilson.co.uk
Fri May 25 14:33:22 CEST 2012


From: Jesse Barnes <jbarnes at virtuousgeek.org>

If the BIOS was in VGA mode, the planes may have been disabled, so we
need to enable them when the first update_plane call comes in.

Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
---
 drivers/gpu/drm/i915/intel_display.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 9a29604..7ef55d7 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1841,6 +1841,7 @@ static int i9xx_update_plane(struct drm_crtc *crtc, struct drm_framebuffer *fb,
 
 	reg = DSPCNTR(plane);
 	dspcntr = I915_READ(reg);
+	dspcntr |= DISPLAY_PLANE_ENABLE;
 	/* Mask out pixel format bits in case we change it */
 	dspcntr &= ~DISPPLANE_PIXFORMAT_MASK;
 	switch (fb->bits_per_pixel) {
-- 
1.7.10




More information about the Intel-gfx mailing list