[Intel-gfx] [PATCH 4/9] drm/i915: Dump pipe config after initial FB is reconstructed

Maarten Lankhorst maarten.lankhorst at linux.intel.com
Thu Dec 3 04:29:01 PST 2015


Op 25-11-15 om 17:48 schreef Matt Roper:
> We dump during HW state readout, but that's too early to reflect how the
> primary plane is actually configured.
>
> In the future it would be nice if we could just read out HW state and
> reconstruct FB's at the same point, but at the moment we don't have GEM
> initialized sufficiently during hardware readout.
>
> Signed-off-by: Matt Roper <matthew.d.roper 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 e5c522b..73e9bf9 100644
> --- a/drivers/gpu/drm/i915/intel_display.c
> +++ b/drivers/gpu/drm/i915/intel_display.c
> @@ -15228,6 +15228,9 @@ void intel_modeset_init(struct drm_device *dev)
>  		 * just get the first one.
>  		 */
>  		intel_find_initial_plane_obj(crtc, &plane_config);
> +
> +		intel_dump_pipe_config(crtc, crtc->config,
> +				       "[state after init fb reconstruction]");
>  	}
>  }
>  
If you want to dump pipe_config for this, use a different function for dumping plane state..

~Maarten


More information about the Intel-gfx mailing list