[Intel-gfx] [PATCH] drm/i915: remove excessive scaler debugging messages

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Mon Sep 7 03:17:01 PDT 2015


On 08/14/2015 01:59 PM, Jani Nikula wrote:
> There's so much scaler debugging messages that it makes other debugging
> hard. Remove them.
>
> Signed-off-by: Jani Nikula <jani.nikula at intel.com>
> ---
>   drivers/gpu/drm/i915/intel_atomic.c  | 3 ---
>   drivers/gpu/drm/i915/intel_display.c | 2 --
>   2 files changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/i915/intel_atomic.c b/drivers/gpu/drm/i915/intel_atomic.c
> index e2531cf59266..9336e8030980 100644
> --- a/drivers/gpu/drm/i915/intel_atomic.c
> +++ b/drivers/gpu/drm/i915/intel_atomic.c
> @@ -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:
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index 21aa745caed1..52720ff9f769 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -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



More information about the Intel-gfx mailing list