[PATCH] drm/i915: Add locking to i915_gem_evict_vm(), v3.

Thomas Hellström thomas.hellstrom at linux.intel.com
Mon Jan 17 14:08:23 UTC 2022


On 1/17/22 08:56, Maarten Lankhorst wrote:
> i915_gem_evict_vm will need to be able to evict objects that are
> locked by the current ctx. By testing if the current context already
> locked the object, we can do this correctly. This allows us to
> evict the entire vm even if we already hold some objects' locks.
>
> Previously, this was spread over several commits, but it makes
> more sense to commit the changes to i915_gem_evict_vm separately
> from the changes to i915_gem_evict_something() and
> i915_gem_evict_for_node().
>
> Changes since v1:
> - Handle evicting dead objects better.
> Changes since v2:
> - Use for_i915_gem_ww in igt_evict_vm. (Thomas)
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>

Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>

(Please note the series checkpatch- and DOC warnings before commiting!)

Thanks,

Thomas




More information about the dri-devel mailing list