[PATCH 3/4] soft-wake

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 5 17:28:17 UTC 2018


---
 drivers/gpu/drm/i915/i915_gem.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 5ca50d35b414..31331dd9eafc 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -140,7 +140,10 @@ u32 i915_gem_park(struct drm_i915_private *i915)
 {
 	lockdep_assert_held(&i915->drm.struct_mutex);
 	GEM_BUG_ON(i915->gt.active_requests);
-	GEM_BUG_ON(!i915->gt.awake);
+
+	if (!i915->gt.awake)
+		return 0;
+
 	GEM_BUG_ON(i915->gt.epoch == I915_EPOCH_INVALID);
 
 	/*
-- 
2.16.3



More information about the Intel-gfx-trybot mailing list