intel-gfx.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set
@ 2015-12-14 17:14 Mika Kuoppala
  2015-12-14 17:14 ` [PATCH 2/6] drm/i915: Get runtime pm ref when setting min/max freqs Mika Kuoppala
                   ` (6 more replies)
  0 siblings, 7 replies; 12+ messages in thread
From: Mika Kuoppala @ 2015-12-14 17:14 UTC (permalink / raw)
  To: intel-gfx; +Cc: miku

When we drop caches, this debugfs entry does hardware access later in
the chain, when fences are updated, so it needs a runtime pm ref.

Dropping caches is used by some igt/bat tests, so this fixes
some unclaimed register access traces.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 drivers/gpu/drm/i915/i915_debugfs.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 24318b7..bd8ba7e 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -4839,6 +4839,8 @@ i915_drop_caches_set(void *data, u64 val)
 	if (ret)
 		return ret;
 
+	intel_runtime_pm_get(dev_priv);
+
 	if (val & DROP_ACTIVE) {
 		ret = i915_gpu_idle(dev);
 		if (ret)
@@ -4855,6 +4857,7 @@ i915_drop_caches_set(void *data, u64 val)
 		i915_gem_shrink(dev_priv, LONG_MAX, I915_SHRINK_UNBOUND);
 
 unlock:
+	intel_runtime_pm_put(dev_priv);
 	mutex_unlock(&dev->struct_mutex);
 
 	return ret;
-- 
2.5.0

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-12-16 11:03 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-14 17:14 [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set Mika Kuoppala
2015-12-14 17:14 ` [PATCH 2/6] drm/i915: Get runtime pm ref when setting min/max freqs Mika Kuoppala
2015-12-14 17:14 ` [PATCH 3/6] drm/i915: Get runtime pm ref on i915_fbc_fc_set Mika Kuoppala
2015-12-14 17:14 ` [PATCH 4/6] drm/i915: Get runtime pm ref on i915_emon_status Mika Kuoppala
2015-12-14 17:14 ` [PATCH 5/6] drm/i915: Get runtime pm ref on i915_guc_load_status_info Mika Kuoppala
2015-12-14 17:14 ` [PATCH 6/6] drm/i915: Get runtime pm ref on i915_sseu_status Mika Kuoppala
2015-12-14 21:46 ` [PATCH 1/6] drm/i915: Get runtime pm ref on i915_drop_caches_set Chris Wilson
2015-12-15 11:36   ` Mika Kuoppala
2015-12-16 10:42     ` Daniel Vetter
2015-12-16 11:03       ` Imre Deak
2015-12-15 11:35 ` [PATCH] " Mika Kuoppala
2015-12-15 11:46   ` Joonas Lahtinen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).