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)
commit7ef6b7f8441f5744ac3fa5e2067b25940ee1ff63
tree8c22cca966ecb9cef03e88f3c37b4657c8869ef4
parenta6283010e2907a5576f96b839e1a1c82659f137c
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