]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915/psr: Add PSR mode/revision to debugfs
authorAzhar Shaikh <azhar.shaikh@intel.com>
Wed, 22 Aug 2018 17:23:48 +0000 (10:23 -0700)
committerDhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Wed, 22 Aug 2018 22:39:26 +0000 (15:39 -0700)
Log the PSR mode/revision (PSR1 or PSR2) in the debugfs file
i915_edp_psr_status.

Suggested-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Azhar Shaikh <azhar.shaikh@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1534958628-193724-1-git-send-email-azhar.shaikh@intel.com
drivers/gpu/drm/i915/i915_debugfs.c

index 374b550d9a4fb5154ec93a446f31399990132efd..a5265c236a335b5708761810036225f88f41ba3a 100644 (file)
@@ -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");
        seq_printf(m, "Enabled: %s\n", yesno(dev_priv->psr.enabled));
        seq_printf(m, "Busy frontbuffer bits: 0x%03x\n",
                   dev_priv->psr.busy_frontbuffer_bits);