Re: [PATCH 1/1] drm/amdgpu: Reserve shared fence for eviction fence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@xxxxxxx>


On 2019-05-06 4:23 p.m., Kuehling, Felix wrote:
> [CAUTION: External Email]
>
> Need to reserve space for the shared eviction fence when initializing
> a KFD VM.
>
> Signed-off-by: Felix Kuehling <Felix.Kuehling@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> index 20cf8e1e7445..e1cae4a37113 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
> @@ -875,6 +875,9 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info,
>                                   AMDGPU_FENCE_OWNER_KFD, false);
>         if (ret)
>                 goto wait_pd_fail;
> +       ret = reservation_object_reserve_shared(vm->root.base.bo->tbo.resv, 1);
> +       if (ret)
> +               goto reserve_shared_fail;
>         amdgpu_bo_fence(vm->root.base.bo,
>                         &vm->process_info->eviction_fence->base, true);
>         amdgpu_bo_unreserve(vm->root.base.bo);
> @@ -888,6 +891,7 @@ static int init_kfd_vm(struct amdgpu_vm *vm, void **process_info,
>
>         return 0;
>
> +reserve_shared_fail:
>  wait_pd_fail:
>  validate_pd_fail:
>         amdgpu_bo_unreserve(vm->root.base.bo);
> --
> 2.17.1
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux