[Intel-gfx] [PATCH 16/16] drm/i915: Improve PSR debugfs output

Chris Wilson chris at chris-wilson.co.uk
Wed Jun 18 16:51:01 CEST 2014


On Wed, Jun 18, 2014 at 01:59:17PM +0200, Daniel Vetter wrote:
> Add busy_frontbuffer_bits and locking.
> 
> Signed-off-by: Daniel Vetter <daniel.vetter at ffwll.ch>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
> index 4818aff9e6d6..6c0413fd3d37 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -1971,10 +1971,15 @@ static int i915_edp_psr_status(struct seq_file *m, void *data)
>  
>  	intel_runtime_pm_get(dev_priv);
>  
> +	mutex_lock(&dev_priv->psr.lock);

It's debugfs. Play nice and let the user interrupt us, just in case.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list