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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "C, Ramalingam" <ramalingam.c@xxxxxxxxx>

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@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux