All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Don't write DSPSURF for old chips
@ 2012-02-27 11:39 Takashi Iwai
  2012-02-27 12:17 ` Chris Wilson
  0 siblings, 1 reply; 6+ messages in thread
From: Takashi Iwai @ 2012-02-27 11:39 UTC (permalink / raw)
  To: intel-gfx

It seems that writing DSPSURF in intel_flush_display_plane() causes
the blank screen on some old laptops like Dell D630 with 965GM.
Since this operation is needed only for ILK+, make it conditional.

Cc: <stable@kernel.org> [v3.1+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>

---
 drivers/gpu/drm/i915/intel_display.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1379,7 +1379,8 @@ static void intel_flush_display_plane(st
 				      enum plane plane)
 {
 	I915_WRITE(DSPADDR(plane), I915_READ(DSPADDR(plane)));
-	I915_WRITE(DSPSURF(plane), I915_READ(DSPSURF(plane)));
+	if (dev_priv->info->gen >= 5)
+		I915_WRITE(DSPSURF(plane), I915_READ(DSPSURF(plane)));
 }
 
 /**

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

end of thread, other threads:[~2012-03-01  6:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-27 11:39 [PATCH] drm/i915: Don't write DSPSURF for old chips Takashi Iwai
2012-02-27 12:17 ` Chris Wilson
2012-02-27 13:08   ` Takashi Iwai
2012-02-28  6:43     ` Takashi Iwai
2012-02-29 23:54       ` Chris Wilson
2012-03-01  6:37         ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.