OSDN Git Service

drm/amdgpu: remove vm sanity check from amdgpu_vm_make_compute
authorXiaogang Chen <xiaogang.chen@amd.com>
Mon, 19 Jun 2023 21:17:02 +0000 (16:17 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Jun 2023 17:11:35 +0000 (13:11 -0400)
commit1d7776cc148b9f2f3ebaf1181662ba695a29f639
tree33e07c4bb89cead81ec668a4af430b079b9b6476
parent072030b1783056b5de8b0fac5303a5e9dbc6cfde
drm/amdgpu: remove vm sanity check from amdgpu_vm_make_compute

Since we allow kfd and graphic operate on same GPU VM to have interoperation
between them GPU VM may have been used by graphic vm operations before kfd turns
a GPU VM into a compute VM. Remove vm clean checking at amdgpu_vm_make_compute.

Signed-off-by: Xiaogang Chen <xiaogang.chen@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_vm.c