[Intel-gfx] [PATCH 1/1] drm/i915: Print forcewake domain wake counts before reading register
Sagar Arun Kamble
sagar.a.kamble at intel.com
Thu Dec 15 10:38:57 UTC 2016
Since wake count is released asynchronously, *drpc_info output indicates
blitter wake count to be 1. Print these wake counts before reading
registers in *drpc_info.
Acked-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Sagar Arun Kamble <sagar.a.kamble at intel.com>
---
drivers/gpu/drm/i915/i915_debugfs.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 7fca6b9..3493c20 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1442,6 +1442,8 @@ static int vlv_drpc_info(struct seq_file *m)
struct drm_i915_private *dev_priv = node_to_i915(m->private);
u32 rpmodectl1, rcctl1, pw_status;
+ i915_forcewake_domains(m, NULL);
+
intel_runtime_pm_get(dev_priv);
pw_status = I915_READ(VLV_GTLC_PW_STATUS);
@@ -1472,7 +1474,7 @@ static int vlv_drpc_info(struct seq_file *m)
seq_printf(m, "Media RC6 residency since boot: %u\n",
I915_READ(VLV_GT_MEDIA_RC6));
- return i915_forcewake_domains(m, NULL);
+ return 0;
}
static int gen6_drpc_info(struct seq_file *m)
@@ -1484,6 +1486,8 @@ static int gen6_drpc_info(struct seq_file *m)
unsigned forcewake_count;
int count = 0, ret;
+ i915_forcewake_domains(m, NULL);
+
ret = mutex_lock_interruptible(&dev->struct_mutex);
if (ret)
return ret;
@@ -1589,7 +1593,7 @@ static int gen6_drpc_info(struct seq_file *m)
GEN6_DECODE_RC6_VID(((rc6vids >> 8) & 0xff)));
seq_printf(m, "RC6++ voltage: %dmV\n",
GEN6_DECODE_RC6_VID(((rc6vids >> 16) & 0xff)));
- return i915_forcewake_domains(m, NULL);
+ return 0;
}
static int i915_drpc_info(struct seq_file *m, void *unused)
--
1.9.1
More information about the Intel-gfx
mailing list