drm/i915/gvt: Add runtime pm around fences
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Oct 2016 10:11:37 +0000 (11:11 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:18:39 +0000 (17:18 +0800)
commit75ea10da063f96d81828316cc25a896ae523c826
tree0bf662bdf9e2df494e9c0c43afa45ff02b7ef24a
parent22681c7bc79aefbb8e1c459474ac668a9493b577
drm/i915/gvt: Add runtime pm around fences

Manipulating the fence_list requires the runtime wakelock, as does
writing to the fence registers. Acquire a wakelock for the former, and
assert that the device is awake for the latter.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/aperture_gm.c