summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_wakeref.c
diff options
context:
space:
mode:
authorJonathan Cavitt <jonathan.cavitt@intel.com>2023-09-26 11:30:28 +0200
committerNirmoy Das <nirmoy.das@intel.com>2023-09-30 12:35:43 +0200
commit0951dce656e2b3c4c9a5096cd2cedb39a5d6e637 (patch)
treeed63d290f3a81058814bbf733ecf070fbbeeda24 /drivers/gpu/drm/i915/intel_wakeref.c
parent37d62359b15e1f8374e5f8ba9e5fe03408faf864 (diff)
downloadlinux-0951dce656e2b3c4c9a5096cd2cedb39a5d6e637.tar.gz
linux-0951dce656e2b3c4c9a5096cd2cedb39a5d6e637.tar.bz2
linux-0951dce656e2b3c4c9a5096cd2cedb39a5d6e637.zip
drm/i915/gem: Make i915_gem_shrinker multi-gt aware
Where applicable, use for_each_gt instead of to_gt in the i915_gem_shrinker functions to make them apply to more than just the primary GT. Specifically, this ensure i915_gem_shrink_all retires all requests across all GTs, and this makes i915_gem_shrinker_vmap unmap VMAs from all GTs. v2: Pass correct GT to intel_gt_retire_requests(Andrzej). v3: Remove unnecessary braces(Andi) v4: Undo v3 to fix build failure. Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com> Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20230926093028.23614-1-nirmoy.das@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_wakeref.c')
0 files changed, 0 insertions, 0 deletions