[Intel-gfx] [PATCH v2 2/2] i915/drrs/debugfs: crtc id and psr status
Ramalingam C
ramalingam.c at intel.com
Tue Nov 7 18:40:08 UTC 2017
From: "C, Ramalingam" <ramalingam.c at intel.com>
Existing debugfs entry i915_drrs_status is updated with crtc id and
if PSR is cause for DRRS disabled state.
[v2]: Dropped the module parameter details as ctl moved from module
parameter to debugfs. [Rodrigo]
Signed-off-by: C, Ramalingam <ramalingam.c at intel.com>
---
drivers/gpu/drm/i915/i915_debugfs.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 0c1501fe4c9f..6c2e8346b9a7 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -3567,7 +3567,10 @@ 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 (dev_priv->psr.enabled)
+ seq_puts(m,
+ "\tAs PSR is enabled, DRRS is not enabled\n");
mutex_unlock(&drrs->mutex);
return;
}
@@ -3611,7 +3614,7 @@ static int i915_drrs_status(struct seq_file *m, void *unused)
for_each_intel_crtc(dev, intel_crtc) {
if (intel_crtc->base.state->active) {
active_crtc_cnt++;
- seq_printf(m, "\nCRTC %d: ", active_crtc_cnt);
+ seq_printf(m, "\nCRTC %d: ", intel_crtc->base.base.id);
drrs_status_per_crtc(m, dev, intel_crtc);
}
--
2.7.4
More information about the Intel-gfx
mailing list