]> 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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 15 Aug 2018 20:41:08 +0000 (13:41 -0700)
commit21fbd69322f9e1d86992f58bf6d154149281a279
tree53b897712e4f4231ddc8c3c21cf914f47c73ddbf
parente5272c3899570eed34c862a65dc1896fa923e8a3
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: 10f016dcdf3f ("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
(cherry picked from commit 7b5ee80a5da3ea44c5abff48e3621135ae9d8177)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/selftests/i915_gem_object.c