[Intel-gfx] [PATCH] drm/i915: Print the changes required for modeset

Paulo Zanoni przanoni at gmail.com
Tue Aug 13 20:00:59 CEST 2013


2013/8/13 Chris Wilson <chris at chris-wilson.co.uk>:
> After computing the stage changes for the set_config, record those in
> the debug log.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>

I've already written different versions of this patch when debugging
things in the past. Definitely useful.

Reviewed-by: Paulo Zanoni <paulo.r.zanoni at intel.com>

> ---
>  drivers/gpu/drm/i915/intel_display.c |    3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> index a21f935..4f9c3d8 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -8884,6 +8884,9 @@ intel_set_config_compute_mode_changes(struct drm_mode_set *set,
>                 drm_mode_debug_printmodeline(set->mode);
>                 config->mode_changed = true;
>         }
> +
> +       DRM_DEBUG_KMS("computed changes for [CRTC:%d], mode_changed=%d, fb_changed=%d\n",
> +                       set->crtc->base.id, config->mode_changed, config->fb_changed);
>  }
>
>  static int
> --
> 1.7.9.5
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx



-- 
Paulo Zanoni



More information about the Intel-gfx mailing list