]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Lift i915_vma_parked() onto the gt
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Oct 2019 18:32:35 +0000 (19:32 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 21 Oct 2019 20:07:56 +0000 (21:07 +0100)
commit5dd5d6f698451a23757f787b6db6b1e9b4723fdd
tree0c266002a59f97d78318ce9d341f47a13e8793b9
parent35e50c969e19372c9a56e10d5ad8e92bb4fcdfa8
drm/i915: Lift i915_vma_parked() onto the gt

Currently even though i915_vma_parked() operates on a per-gt struct, it
is called from a global pm notify. This oddity was only because the long
term plan is to decouple the vma cache from the pm notification, but
right now the oddity stands out like a sore thumb!

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021183236.21790-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_pm.c
drivers/gpu/drm/i915/gt/intel_gt_pm.c
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/i915_vma.h