[Intel-xe] [PATCH v2 07/31] drm/xe: Only try to lock external BOs in VM bind

Christopher Snowhill kode54 at gmail.com
Mon May 8 01:17:45 UTC 2023


Also, you've typoed your email address as mattthew.brost at intel.com in a few
places here, including the Signed-off-by. It has also ended up in the CC
list for reply-all.

On Mon, May 1, 2023 at 5:17 PM Matthew Brost <matthew.brost at intel.com>
wrote:

> Not needed and causes some issues with bulk LRU moves.
>
> Signed-off-by: Matthew Brost <mattthew.brost at intel.com>
> ---
>  drivers/gpu/drm/xe/xe_vm.c | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
> index 272f0f7f24fe..6c427ff92c44 100644
> --- a/drivers/gpu/drm/xe/xe_vm.c
> +++ b/drivers/gpu/drm/xe/xe_vm.c
> @@ -2064,9 +2064,11 @@ static int vm_bind_ioctl(struct xe_vm *vm, struct
> xe_vma *vma,
>                  */
>                 xe_bo_get(vbo);
>
> -               tv_bo.bo = &vbo->ttm;
> -               tv_bo.num_shared = 1;
> -               list_add(&tv_bo.head, &objs);
> +               if (!vbo->vm) {
> +                       tv_bo.bo = &vbo->ttm;
> +                       tv_bo.num_shared = 1;
> +                       list_add(&tv_bo.head, &objs);
> +               }
>         }
>
>  again:
> --
> 2.34.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-xe/attachments/20230507/a1a134e9/attachment.htm>


More information about the Intel-xe mailing list