OSDN Git Service

drm/i915: Factor out i915_ggtt_suspend_vm/i915_ggtt_resume_vm()
authorImre Deak <imre.deak@intel.com>
Mon, 1 Nov 2021 18:35:50 +0000 (20:35 +0200)
committerImre Deak <imre.deak@intel.com>
Wed, 3 Nov 2021 09:07:07 +0000 (11:07 +0200)
commit8d2f683f1c49b3a3c56ab92437722eda7e85bac2
tree9076756a48f62be8b7acfd530a1dde6d02d44153
parente6d6f689435aaebc2e407026d9fdfc2d89bd7902
drm/i915: Factor out i915_ggtt_suspend_vm/i915_ggtt_resume_vm()

Factor out functions that are needed by the next patch to suspend/resume
the memory mappings for DPT FBs.

No functional change, except reordering during suspend the
ggtt->invalidate(ggtt) call wrt. atomic_set(&ggtt->vm.open, open) and
mutex_unlock(&ggtt->vm.mutex). This shouldn't matter due to the i915
suspend sequence being single threaded.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211101183551.3580546-1-imre.deak@intel.com
drivers/gpu/drm/i915/gt/intel_ggtt.c
drivers/gpu/drm/i915/gt/intel_gtt.h