drm/i915: remove excessive scaler debugging messages
Subsystems (2)
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
@@ -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
@@ -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
Daniel Vetter
AppliedQuoted 4 lines · Jani Nikula
There's so much scaler debugging messages that it makes other debugging hard. Remove them.
Signed-off-by Jani Nikula <[email protected]>
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@@ -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@@ -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
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
Quoted 28 lines · Jani Nikula
There's so much scaler debugging messages that it makes other debugging hard. Remove them.
Signed-off-by Jani Nikula <[email protected]>--- 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@@ -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
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