drm/i915: check that we are in an RPM atomic section in GGTT PTE updaters
authorImre Deak <imre.deak@intel.com>
Tue, 15 Dec 2015 18:10:38 +0000 (20:10 +0200)
committerImre Deak <imre.deak@intel.com>
Thu, 17 Dec 2015 14:37:44 +0000 (16:37 +0200)
commitbe69459a8027787b63e7541d53d1ee86ec9c5056
tree07ba717035c84ee33a922f7eb54efd510f16b8a6
parent2b19efebf175bb2120c5ae00b8e79febe73d225a
drm/i915: check that we are in an RPM atomic section in GGTT PTE updaters

The device should be on for the whole duration of the update, so check
for this.

v2:
- use the existing dev_priv directly everywhere (Ville)
v3:
- check also that we are in an RPM atomic section (Chris)
- add the assert to i915_ggtt_insert_entries/clear_range too (Chris)

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1450203038-5150-11-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c