[Intel-gfx] [PATCH 01/26] drm/i915: Split out verbose PPGTT dumping

Chris Wilson chris at chris-wilson.co.uk
Thu Mar 20 13:08:00 CET 2014


On Thu, Mar 20, 2014 at 11:57:42AM +0000, Chris Wilson wrote:
>  static void gen6_ppgtt_info(struct seq_file *m, struct drm_device *dev, bool verbose)
> @@ -1838,14 +1841,11 @@ static void gen6_ppgtt_info(struct seq_file *m, struct drm_device *dev, bool ver
>  
>  	list_for_each_entry_reverse(file, &dev->filelist, lhead) {
>  		struct drm_i915_file_private *file_priv = file->driver_priv;
> -		struct i915_hw_ppgtt *pvt_ppgtt;
>  
> -		pvt_ppgtt = ctx_to_ppgtt(file_priv->private_default_ctx);
>  		seq_printf(m, "proc: %s\n",
>  			   get_pid_task(file->pid, PIDTYPE_PID)->comm);

And 
	seq_printf(m, "\nproc: %s\n",
for good measure

> -		print_ppgtt(m, pvt_ppgtt, "Default context");
> -		if (verbose)
> -			idr_for_each(&file_priv->context_idr, per_file_ctx, m);
> +		idr_for_each(&file_priv->context_idr, per_file_ctx,
> +			     (void *)((unsigned long)m | verbose));
>  	}
>  }
>  
> 
> -- 
> Chris Wilson, Intel Open Source Technology Centre
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list