]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: preserve pipe A quirk in i9xx_set_pipeconf
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Sep 2013 09:46:14 +0000 (11:46 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 24 Sep 2013 18:39:00 +0000 (20:39 +0200)
commit4e8d3dfd9441f9f6968147cd0789e7953437e865
treea16e4487640a3901ea27166ca0cce3d689adc5eb
parent5c67e3e46aebc2afb23b37cd13457bd7f76ff8a1
drm/i915: preserve pipe A quirk in i9xx_set_pipeconf

This regression has been introduced in

commit dbe9c77a47b516deb9737b2a2e41c994a12657e1
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Thu Jun 13 00:54:58 2013 +0200

    drm/i915: set up PIPECONF explicitly for i9xx/vlv platforms

Ville brough up the idea that this is just the pipe A quirk gone
wrong.

Note that after resume the bios might or might not have enabled pipe A
already.  We have a bit of magic to make sure that on resume we set up
a decent mode for pipe A, but I fear if I just smash pipe A to always
on we'd enable it in a bogus state and hang the hw. Hence the
readback.

v2: Clarify the logic a bit as suggested by Chris. Also amend the
commit message to clarify why we don't unconditionally enable the
pipe.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=66462
References: https://lkml.org/lkml/2013/8/26/238
Cc: Meelis Roos <mroos@ut.ee>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
[danvet: Use |= instead of = as suggested by Chris.]
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c