]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit90f7c129db540adc8085e1b71d4389c617b8252d
tree484fb5dedc4eb41870df1a838c435d68ea1dde41
parenta308bda7c7519f52f55186798fbb047ce495121f
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