[Intel-gfx] [PATCH 26/66] drm/i915: Add an implementation for i915_gem_ww_ctx locking, v2.

Thomas Hellström (Intel) thomas_os at shipmail.org
Fri Jul 31 10:07:11 UTC 2020


On 7/15/20 1:51 PM, Chris Wilson wrote:
> From: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
>
> i915_gem_ww_ctx is used to lock all gem bo's for pinning and memory
> eviction. We don't use it yet, but lets start adding the definition
> first.
>
> To use it, we have to pass a non-NULL ww to gem_object_lock, and don't
> unlock directly. It is done in i915_gem_ww_ctx_fini.
>
> Changes since v1:
> - Change ww_ctx and obj order in locking functions (Jonas Lahtinen)
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom at intel.com>



More information about the Intel-gfx mailing list