]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Hold rpm for unparking
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Aug 2018 06:34:49 +0000 (07:34 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Aug 2018 13:48:55 +0000 (14:48 +0100)
commit6e677c168052b15fff4c73223fec96f5f7668330
treec99615b6836a208eca14b8c9f877af1c8bd4ceb5
parentcbf424c417dad07c0e18725413536887e4862a3a
drm/i915/selftests: Hold rpm for unparking

The call to i915_gem_unpark() checks that we hold a rpm wakeref before
taking a long term wakeref for i915->gt.awake. We should therefore make
sure we do hold the wakeref when directly calling unpark to disable
the retire worker.

Fixes: ef98b8b899fc ("drm/i915/selftests: Prevent background reaping of active objects")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180809063449.4474-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_object.c