All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/guc: GuC suspend path cleanup
@ 2019-03-21 17:14 Sujaritha Sundaresan
  2019-03-21 17:49 ` Daniele Ceraolo Spurio
                   ` (4 more replies)
  0 siblings, 5 replies; 16+ messages in thread
From: Sujaritha Sundaresan @ 2019-03-21 17:14 UTC (permalink / raw)
  To: intel-gfx; +Cc: Sujaritha Sundaresan

Adding a call to intel_uc_suspend in i915_gem_suspend, which
is a common point for the suspend/resume and hibernate paths.
This fixes an unbalanced call that causes issues with the CTB
register/deregister.

Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Signed-off-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 1a684b7e8c09..980855ebdeda 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -4371,6 +4371,9 @@ void i915_gem_suspend(struct drm_i915_private *i915)
 	 */
 	switch_to_kernel_context_sync(i915, i915->gt.active_engines);
 
+	if (!__i915_wedged(&i915->gpu_error))
+		intel_uc_suspend(i915);
+
 	mutex_unlock(&i915->drm.struct_mutex);
 	i915_reset_flush(i915);
 
-- 
2.20.1

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

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

end of thread, other threads:[~2019-03-22 18:12 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-21 17:14 [PATCH] drm/i915/guc: GuC suspend path cleanup Sujaritha Sundaresan
2019-03-21 17:49 ` Daniele Ceraolo Spurio
2019-03-21 17:54   ` Chris Wilson
2019-03-21 19:46     ` Sujaritha
2019-03-21 19:26 ` ✗ Fi.CI.BAT: failure for " Patchwork
2019-03-21 19:37   ` Chris Wilson
2019-03-21 19:41     ` Sujaritha
2019-03-21 20:08       ` Chris Wilson
2019-03-21 20:02         ` Sujaritha
2019-03-21 20:23           ` Chris Wilson
2019-03-21 20:28             ` Sujaritha
2019-03-21 20:38 ` [PATCH v2] " Sujaritha Sundaresan
2019-03-22  8:57   ` Chris Wilson
2019-03-22  9:39     ` Chris Wilson
2019-03-22  0:28 ` ✓ Fi.CI.BAT: success for drm/i915/guc: GuC suspend path cleanup (rev2) Patchwork
2019-03-22 18:12 ` ✓ Fi.CI.IGT: " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.