[Intel-gfx] [PATCH v4 07/61] drm/i915: Move HAS_STRUCT_PAGE to obj->flags
Thomas Hellström
thomas.hellstrom at linux.intel.com
Fri Oct 30 08:31:32 UTC 2020
On 10/16/20 12:43 PM, Maarten Lankhorst wrote:
> We want to remove the changing of ops structure for attaching
> phys pages, so we need to kill off HAS_STRUCT_PAGE from ops->flags,
> and put it in the bo.
>
> This will remove a potential race of dereferencing the wrong obj->ops
> without ww mutex held.
>
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at linux.intel.com>
Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
More information about the Intel-gfx
mailing list