Skip to contentSkip to conversation

drm/i915: fixup messages in pipe_config_compare

PATCH In review Jesse Barnes 2 participants 4 messages Jul 1, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 drm/i915: fixup messages in pipe_config_compare

Print out the flag that failed and fix up a mismatched paren.

---
 drivers/gpu/drm/i915/intel_display.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
index 1dd49e8..f1eaf8e 100644
@@ -8169,7 +8169,7 @@ intel_pipe_config_compare(struct drm_device *dev,
 
 #define PIPE_CONF_CHECK_FLAGS(name, mask)	\
 	if ((current_config->name ^ pipe_config->name) & (mask)) { \
-		DRM_ERROR("mismatch in " #name " " \
+		DRM_ERROR("mismatch in " #name "(" #mask ") "	   \
 			  "(expected %i, found %i)\n", \
 			  current_config->name & (mask), \
 			  pipe_config->name & (mask)); \
@@ -8245,7 +8245,7 @@ intel_pipe_config_compare(struct drm_device *dev,
 
 	if (!IS_HASWELL(dev)) {
 		if (!intel_fuzzy_clock_check(current_config, pipe_config)) {
-			DRM_ERROR("mismatch in clock (expected %d, found %d\n",
+			DRM_ERROR("mismatch in clock (expected %d, found %d)\n",
 				  current_config->adjusted_mode.clock,
 				  pipe_config->adjusted_mode.clock);
 			return false;
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/2 drm/i915: get clock config when checking CRTC state too

We need to get the current hw state so we can compare against the expected state.

References: https://bugs.freedesktop.org/show_bug.cgi?id=66444

---
 drivers/gpu/drm/i915/intel_display.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/i915/intel_display.c +5 -1
index f1eaf8e..6b0013c 100644
@@ -8377,8 +8377,12 @@ check_crtc_state(struct drm_device *dev)
 				    base.head) {
 			if (encoder->base.crtc != &crtc->base)
 				continue;
-			if (encoder->get_config)
+			if (encoder->get_config &&
+			    dev_priv->display.get_clock) {
 				encoder->get_config(encoder, &pipe_config);
+				dev_priv->display.get_clock(crtc,
+							    &pipe_config);
+			}
 		}
 
 		WARN(crtc->active != active,
Signature · 1 line
1.7.9.5
#2 lore raw

Re: [PATCH 2/2] drm/i915: get clock config when checking CRTC state too

Quoted 6 lines · Jesse Barnes

We need to get the current hw state so we can compare against the expected state.

References: https://bugs.freedesktop.org/show_bug.cgi?id=66444

Both patches merged. I'll squash this one here into the original commit to avoid undue amounts of dmesg noise when bisecting.
-Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
#3 lore raw

Re: [PATCH 2/2] drm/i915: get clock config when checking CRTC state too

Quoted 10 lines · On Mon, 1 Jul 2013 19:36:32 +0200 Daniel Vetter <[email protected]> wrote:
Quoted 6 lines · Jesse Barnes

We need to get the current hw state so we can compare against the expected state.

References: https://bugs.freedesktop.org/show_bug.cgi?id=66444

Both patches merged. I'll squash this one here into the original commit to avoid undue amounts of dmesg noise when bisecting.

Ta, you need a jbarnes-owes-me-two-beers branch now.

Signature · 1 line
Jesse Barnes, Intel Open Source Technology Center