Skip to contentSkip to conversation

drm/i915: remove excessive scaler debugging messages

PATCH Applied Jani Nikula 4 participants 4 messages Aug 14, 2015 – Sep 7, 2015

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

PATCH 1/1 drm/i915: remove excessive scaler debugging messages

There's so much scaler debugging messages that it makes other debugging hard. Remove them.

---
 drivers/gpu/drm/i915/intel_atomic.c  | 3 ---
 drivers/gpu/drm/i915/intel_display.c | 2 --
 2 files changed, 5 deletions(-)
drivers/gpu/drm/i915/intel_atomic.c +0 -3
index e2531cf59266..9336e8030980 100644
@@ -149,9 +149,6 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
 	int i, j;
 
 	num_scalers_need = hweight32(scaler_state->scaler_users);
-	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users = 0x%x\n",
-		crtc_state, num_scalers_need, intel_crtc->num_scalers,
-		scaler_state->scaler_users);
 
 	/*
 	 * High level flow:
drivers/gpu/drm/i915/intel_display.c +0 -2
index 21aa745caed1..52720ff9f769 100644
@@ -2935,8 +2935,6 @@ static void skl_detach_scaler(struct intel_crtc *intel_crtc, int id)
 	I915_WRITE(SKL_PS_CTRL(intel_crtc->pipe, id), 0);
 	I915_WRITE(SKL_PS_WIN_POS(intel_crtc->pipe, id), 0);
 	I915_WRITE(SKL_PS_WIN_SZ(intel_crtc->pipe, id), 0);
-	DRM_DEBUG_KMS("CRTC:%d Disabled scaler id %u.%u\n",
-		intel_crtc->base.base.id, intel_crtc->pipe, id);
 }
 
 /*
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
#1 lore raw
Quoted 4 lines · Jani Nikula

There's so much scaler debugging messages that it makes other debugging hard. Remove them.

Queued for -next, thanks for the patch.
-Daniel

Quoted 39 lines
---
 drivers/gpu/drm/i915/intel_atomic.c  | 3 ---
 drivers/gpu/drm/i915/intel_display.c | 2 --
 2 files changed, 5 deletions(-)
drivers/gpu/drm/i915/intel_atomic.c +0 -3
index e2531cf59266..9336e8030980 100644
@@ -149,9 +149,6 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
 	int i, j;
 
 	num_scalers_need = hweight32(scaler_state->scaler_users);
-	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users = 0x%x\n",
-		crtc_state, num_scalers_need, intel_crtc->num_scalers,
-		scaler_state->scaler_users);
 
 	/*
 	 * High level flow:
drivers/gpu/drm/i915/intel_display.c +0 -2
index 21aa745caed1..52720ff9f769 100644
@@ -2935,8 +2935,6 @@ static void skl_detach_scaler(struct intel_crtc *intel_crtc, int id)
 	I915_WRITE(SKL_PS_CTRL(intel_crtc->pipe, id), 0);
 	I915_WRITE(SKL_PS_WIN_POS(intel_crtc->pipe, id), 0);
 	I915_WRITE(SKL_PS_WIN_SZ(intel_crtc->pipe, id), 0);
-	DRM_DEBUG_KMS("CRTC:%d Disabled scaler id %u.%u\n",
-		intel_crtc->base.base.id, intel_crtc->pipe, id);
 }
 
 /*
Signature · 6 lines
2.1.4

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 7 lines
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Tested-by on v1 1/1
#2 lore raw
In reply to Jani Nikula

Task id: 7202 -------------------------------------Summary-------------------------------------
Platform Delta drm-intel-nightly Series Applied
ILK -2 302/302 300/302

SNB                                  315/315              315/315
IVB                                  336/336              336/336
BYT                                  283/283              283/283
HSW                                  378/378              378/378

-------------------------------------Detailed-------------------------------------
Platform Test drm-intel-nightly Series Applied
*ILK igt@kms_flip@flip-vs-dpms-interruptible PASS(1) DMESG_WARN(1)
*ILK igt@kms_flip@wf_vblank-vs-modeset-interruptible PASS(1) DMESG_WARN(1)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

#3 lore raw
In reply to Jani Nikula
Quoted 28 lines · Jani Nikula

There's so much scaler debugging messages that it makes other debugging hard. Remove them.

---
  drivers/gpu/drm/i915/intel_atomic.c  | 3 ---
  drivers/gpu/drm/i915/intel_display.c | 2 --
  2 files changed, 5 deletions(-)
drivers/gpu/drm/i915/intel_atomic.c +0 -3
index e2531cf59266..9336e8030980 100644
@@ -149,9 +149,6 @@ int intel_atomic_setup_scalers(struct drm_device *dev,
  	int i, j;
 
  	num_scalers_need = hweight32(scaler_state->scaler_users);
-	DRM_DEBUG_KMS("crtc_state = %p need = %d avail = %d scaler_users = 0x%x\n",
-		crtc_state, num_scalers_need, intel_crtc->num_scalers,
-		scaler_state->scaler_users);
 
  	/*
  	 * High level flow:
drivers/gpu/drm/i915/intel_display.c +0 -0
index 21aa745caed1..52720ff9f769 100644

drivers/gpu/drm/i915/intel_display.c static void skl_detach_scaler(struct intel_crtc *intel_crtc, int id) · line 2938

Quoted 6 lines
drivers/gpu/drm/i915/intel_display.c +0 -2
@@ -2935,8 +2935,6 @@ static void skl_detach_scaler(struct intel_crtc *intel_crtc, int id)
  	I915_WRITE(SKL_PS_CTRL(intel_crtc->pipe, id), 0);
  	I915_WRITE(SKL_PS_WIN_POS(intel_crtc->pipe, id), 0);
  	I915_WRITE(SKL_PS_WIN_SZ(intel_crtc->pipe, id), 0);
-	DRM_DEBUG_KMS("CRTC:%d Disabled scaler id %u.%u\n",
-		intel_crtc->base.base.id, intel_crtc->pipe, id);
  }

I had some patches for this, especially "[PATCH] drm/i915/skl: Only disable scalers once" which I couldn't test properly due lack of hardware. And "[PATCH] drm/i915/skl: Bypass debug message if scalers are not requested", which only silences the case when scalers are not in use, so yours may even be better.

But for the former, I think someone who knows this code should look at my patch. To me it looks warranted to skip disabling scalers if they are already disabled, rather than just kill the debug message.

Regards,

Tvrtko

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx