]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove erroneous i915_is_ggtt check for I915_GEM_OBJECT_UNBIND_VM_TRYLOCK
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 29 Apr 2021 12:01:58 +0000 (14:01 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 30 Apr 2021 11:15:23 +0000 (13:15 +0200)
commit73552e008a853f38f02bfb151ae7f8298debe5f8
treee0e9d145e394d49c37da332319fd88f353d1cef2
parentfd5f262db118355590eb123cd5287c461f3ba89c
drm/i915: Remove erroneous i915_is_ggtt check for I915_GEM_OBJECT_UNBIND_VM_TRYLOCK

We changed the locking hierarchy for both ppgtt and ggtt, so both locks
should be trylocked inside i915_gem_object_unbind().

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: bc6f80cce9ae ("drm/i915: Use trylock in shrinker for ggtt on bsw vt-d and bxt, v2.")
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210429120158.1105318-1-maarten.lankhorst@linux.intel.com
Reviewed-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> #irc
drivers/gpu/drm/i915/i915_gem.c