[Intel-gfx] [PATCH 2/2] i915/drrs/debugfs: module param and psr status

Ramalingam C ramalingam.c at intel.com
Tue Oct 31 09:20:43 UTC 2017


From: "C, Ramalingam" <ramalingam.c at intel.com>

When DRRS is disabled, i915_drrs_status is updated with the runtime
disable state of drrs due to
	i915_modparams.enable_drrs - module parameters
	psr.enabled -	psr active status

Signed-off-by: C, Ramalingam <ramalingam.c at intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 5b58d2b897c7..0a0ae22fc9c2 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -3569,7 +3569,16 @@ static void drrs_status_per_crtc(struct seq_file *m,
 
 		/* disable_drrs() will make drrs->dp NULL */
 		if (!drrs->dp) {
-			seq_puts(m, "Idleness DRRS: Disabled");
+			seq_puts(m, "Idleness DRRS: Disabled\n");
+
+			if (!i915_modparams.enable_drrs)
+				seq_puts(m,
+				"\tModule parameter enable_drrs is disabled\n");
+
+			if (dev_priv->psr.enabled)
+				seq_puts(m,
+				"\tAs PSR is enabled, DRRS is not enabled\n");
+
 			mutex_unlock(&drrs->mutex);
 			return;
 		}
-- 
2.7.4



More information about the Intel-gfx mailing list