[Intel-gfx] [PATCH] drm/i915/psr: Add PSR mode/revision to debugfs

Dhinakaran Pandiyan dhinakaran.pandiyan at intel.com
Thu Aug 9 21:44:40 UTC 2018


On Wed, 2018-08-08 at 12:16 -0700, Azhar Shaikh wrote:
> Log the PSR mode/revision (PSR1 or PSR2) in the debugfs file
		   This is not the revision.
> i915_edp_psr_status.
> 
> Suggested-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>
> Signed-off-by: Azhar Shaikh <azhar.shaikh at intel.com>
> ---
>  drivers/gpu/drm/i915/i915_debugfs.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/i915/i915_debugfs.c
> b/drivers/gpu/drm/i915/i915_debugfs.c
> index f9ce35da4123..d6e3830fc513 100644
> --- a/drivers/gpu/drm/i915/i915_debugfs.c
> +++ b/drivers/gpu/drm/i915/i915_debugfs.c
> @@ -2708,6 +2708,8 @@ static int i915_edp_psr_status(struct seq_file
> *m, void *data)
>  	intel_runtime_pm_get(dev_priv);
>  
>  	mutex_lock(&dev_priv->psr.lock);
> +	seq_printf(m, "PSR mode: %s\n",
> +		       dev_priv->psr.psr2_enabled ? "PSR2" :
> "PSR1");
			^With alignment fixed,
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan at intel.com>

>  	seq_printf(m, "Enabled: %s\n", yesno((bool)dev_priv-
> >psr.enabled));
>  	seq_printf(m, "Busy frontbuffer bits: 0x%03x\n",
>  		   dev_priv->psr.busy_frontbuffer_bits);


More information about the Intel-gfx mailing list