* [PATCH] drm/i915: fix i915_interrupt_info on BDW
@ 2014-08-08 20:45 Paulo Zanoni
0 siblings, 0 replies; only message in thread
From: Paulo Zanoni @ 2014-08-08 20:45 UTC (permalink / raw)
To: intel-gfx; +Cc: Paulo Zanoni, rodrigo.vivi
From: Paulo Zanoni <paulo.r.zanoni@intel.com>
Currently, if the machine is runtime suspended an you read the file,
you will get an "Unclaimed register" error message.
Testcase: igt/pm_rpm/debugfs-read
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
---
drivers/gpu/drm/i915/i915_debugfs.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 0748960..c3bf3d5 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -703,6 +703,12 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
}
for_each_pipe(pipe) {
+ if (!intel_display_power_enabled(dev_priv,
+ POWER_DOMAIN_PIPE(pipe))) {
+ seq_printf(m, "Pipe %c power disabled\n",
+ pipe_name(pipe));
+ continue;
+ }
seq_printf(m, "Pipe %c IMR:\t%08x\n",
pipe_name(pipe),
I915_READ(GEN8_DE_PIPE_IMR(pipe)));
--
2.0.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-08 20:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-08 20:45 [PATCH] drm/i915: fix i915_interrupt_info on BDW Paulo Zanoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox