Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Quirk the pipe A quirk in the modeset state checker
@ 2013-05-29  7:28 Daniel Vetter
  2013-05-29  7:54 ` [Intel-gfx] " Chris Wilson
  2013-05-29  8:41 ` Daniel Vetter
  0 siblings, 2 replies; 7+ messages in thread
From: Daniel Vetter @ 2013-05-29  7:28 UTC (permalink / raw)
  To: Intel Graphics Development; +Cc: Daniel Vetter, stable

If we always force the pipe A to on we can't use the hw state to
decide whether it should be on. Hence quirk the quirk.

Note that in the hw state readout we don't really care since we have a
big hack to force-enable pipe A anyway.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64764
Cc: stable@vger.kernel.org
Reported-and-Tested-by: mlsemon35@gmail.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 drivers/gpu/drm/i915/intel_display.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index d63bb3fa..5f2b289 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -8099,6 +8099,11 @@ intel_modeset_check_state(struct drm_device *dev)
 		pipe_config.cpu_transcoder = crtc->config.cpu_transcoder;
 		active = dev_priv->display.get_pipe_config(crtc,
 							   &pipe_config);
+
+		/* hw state is unreliable with the pipe A quirk */
+		if (dev_priv->quirks & QUIRK_PIPEA_FORCE)
+			active = crtc->active;
+
 		WARN(crtc->active != active,
 		     "crtc active state doesn't match with hw state "
 		     "(expected %i, found %i)\n", crtc->active, active);
-- 
1.7.10.4

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

end of thread, other threads:[~2013-05-29  9:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-29  7:28 [PATCH] drm/i915: Quirk the pipe A quirk in the modeset state checker Daniel Vetter
2013-05-29  7:54 ` [Intel-gfx] " Chris Wilson
2013-05-29  8:09   ` Daniel Vetter
2013-05-29  8:17     ` Chris Wilson
2013-05-29  8:41 ` Daniel Vetter
2013-05-29  9:06   ` Chris Wilson
2013-05-29  9:17     ` [Intel-gfx] " Daniel Vetter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox