]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17a38fd112c839ece44be33a9272c9135ede94c6
tree07ba717035c84ee33a922f7eb54efd510f16b8a6
parent75c380c5e90f028c1b478417f6fa03fc951fa92d
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