]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Make sure to reserve BOs before adding or removing
authorKent Russell <kent.russell@amd.com>
Fri, 29 Oct 2021 17:28:57 +0000 (13:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:11:05 +0000 (14:11 -0400)
commitdc60369976cc34035a9a6a2c11028714a2a8da35
tree8c22cca966ecb9cef03e88f3c37b4657c8869ef4
parent920e86439e285eb58bf9ec5d32b36c038f9e1f93
drm/amdgpu: Make sure to reserve BOs before adding or removing

BOs need to be reserved before they are added or removed, so ensure that
they are reserved during kfd_mem_attach and kfd_mem_detach

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c