[Intel-xe] [PATCH 4/4] drm/xe/vm: Fix ASID XA usage

Matthew Auld matthew.william.auld at gmail.com
Wed Nov 22 12:35:50 UTC 2023


On Wed, 22 Nov 2023 at 11:04, Thomas Hellström
<thomas.hellstrom at linux.intel.com> wrote:
>
> xa_alloc_cyclic() returns 1 on successful allocation, if wrapping occurs,
> but the code incorrectly treats that as an error. Fix that.
> Also, xa_alloc_cyclic() requires xa_init_flags(..., XA_FLAGS_ALLOC), so
> fix that, and assuming we don't want a zero ASID, instead of using
> XA_FLAGS_ALLOC1, adjust the xa limits at alloc_cyclic time.
>
> Suggested-by: Ohad Sharabi <osharabi at habana.ai>
> Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/946
> Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-xe mailing list