drm/amdgpu: Move kfd_mem_attach outside reservation
authorFelix Kuehling <Felix.Kuehling@amd.com>
Sun, 11 Apr 2021 22:50:23 +0000 (18:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:44:03 +0000 (22:44 -0400)
commit9e5d275319e224e01adb62bfe03943b32f540b7d
tree484fb5dedc4eb41870df1a838c435d68ea1dde41
parentb72ed8a2de8e9dfbd61217d60a7da868ac2cfbff
drm/amdgpu: Move kfd_mem_attach outside reservation

This is needed to avoid deadlocks with DMA buf import in the next patch.
Also move PT/PD validation out of kfd_mem_attach, that way the caller
can bo this unconditionally.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Oak Zeng <Oak.Zeng@amd.com>
Acked-by: Ramesh Errabolu <Ramesh.Errabolu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c