drm/i915/gt: Drop false assertion on user_forcewake
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 3 Nov 2019 09:50:38 +0000 (09:50 +0000)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 5 Nov 2019 14:06:02 +0000 (16:06 +0200)
The counter is removed from the pm wakeref count, but it remains intact
so that we can restore it upon resume. Ergo inside suspend, it may have
a value.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191104090158.2959-1-chris@chris-wilson.co.uk
(cherry picked from commit 83c55ee82f3ac5a1c36dab9f7150554c4da773a8)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_gt_pm.c

index 6374744..060a27d 100644 (file)
@@ -251,7 +251,6 @@ static void wait_for_suspend(struct intel_gt *gt)
                intel_gt_set_wedged(gt);
        }
 
-       GEM_BUG_ON(atomic_read(&gt->user_wakeref));
        intel_gt_pm_wait_for_idle(gt);
 }