[Intel-gfx] [PATCH] drm/i915: Add locking to i915_gem_evict_vm(), v3.
Maarten Lankhorst
maarten.lankhorst at linux.intel.com
Tue Jan 18 14:50:17 UTC 2022
Op 17-01-2022 om 15:08 schreef Thomas Hellström:
>
> 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
>
>
Fixed and pushed. :)
~Maarten
More information about the Intel-gfx
mailing list