drm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm
authorAnshuman Gupta <anshuman.gupta@intel.com>
Thu, 27 Oct 2022 09:22:41 +0000 (14:52 +0530)
committerAnshuman Gupta <anshuman.gupta@intel.com>
Mon, 31 Oct 2022 12:59:17 +0000 (18:29 +0530)
commite66c8dcf997ed54b62f754351e7129e1cc4e3cf9
tree355913ebd60712405e7f197fe3cc095ea8037b8a
parent876e9047a91839ee5be0ba099036d19883e52ca2
drm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm

Runtime pm is not really per GT, therefore it make sense to
move lmem_userfault_list, lmem_userfault_lock and
userfault_wakeref from intel_gt to intel_runtime_pm structure,
which is embedded to i915.

No functional change.

v2:
- Fixes the code comment nit. [Matt Auld]

Signed-off-by: Anshuman Gupta <anshuman.gupta@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221027092242.1476080-2-anshuman.gupta@intel.com
drivers/gpu/drm/i915/gem/i915_gem_mman.c
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/gem/i915_gem_ttm.c
drivers/gpu/drm/i915/gt/intel_gt.c
drivers/gpu/drm/i915/gt/intel_gt_types.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_runtime_pm.c
drivers/gpu/drm/i915/intel_runtime_pm.h