All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Use pipe_config's cpu_transcoder for reading dp_mst hw state
@ 2015-01-30  9:50 Ander Conselvan de Oliveira
  2015-01-30 10:15 ` Jani Nikula
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Ander Conselvan de Oliveira @ 2015-01-30  9:50 UTC (permalink / raw)
  To: intel-gfx; +Cc: Ander Conselvan de Oliveira

On the hardware state readout path, using crtc->config happens to work
since the proper value is written to it before encoder->get_config() is
called. However, in the check_crtc() path, the state will be read from
the cpu_transcoder in the software tracking, instead of the one just
read out from hw. Using the field in the supplied intel_crtc_state
should do the right thing in both cases.

Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
---

I noticed this while reading the code. Patch is only compiled tested.

---
 drivers/gpu/drm/i915/intel_dp_mst.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/intel_dp_mst.c b/drivers/gpu/drm/i915/intel_dp_mst.c
index 2856b0b..9f67a37 100644
--- a/drivers/gpu/drm/i915/intel_dp_mst.c
+++ b/drivers/gpu/drm/i915/intel_dp_mst.c
@@ -226,7 +226,7 @@ static void intel_dp_mst_enc_get_config(struct intel_encoder *encoder,
 	struct intel_crtc *crtc = to_intel_crtc(encoder->base.crtc);
 	struct drm_device *dev = encoder->base.dev;
 	struct drm_i915_private *dev_priv = dev->dev_private;
-	enum transcoder cpu_transcoder = crtc->config->cpu_transcoder;
+	enum transcoder cpu_transcoder = pipe_config->cpu_transcoder;
 	u32 temp, flags = 0;
 
 	pipe_config->has_dp_encoder = true;
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2015-02-01 20:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-30  9:50 [PATCH] drm/i915: Use pipe_config's cpu_transcoder for reading dp_mst hw state Ander Conselvan de Oliveira
2015-01-30 10:15 ` Jani Nikula
2015-01-30 10:23   ` Ander Conselvan De Oliveira
2015-01-30 10:17 ` [PATCH v2] drm/i915: Use pipe_config's cpu_transcoder for reading encoder " Ander Conselvan de Oliveira
2015-01-30 16:38   ` Daniel Vetter
2015-02-01 20:45   ` shuang.he
2015-02-01  6:12 ` [PATCH] drm/i915: Use pipe_config's cpu_transcoder for reading dp_mst " shuang.he

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.