Revert "drm/amdgpu: remove vm sanity check from amdgpu_vm_make_compute" for Raven
authorJesse Zhang <Jesse.Zhang@amd.com>
Thu, 29 Feb 2024 06:00:14 +0000 (14:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Mar 2024 20:58:45 +0000 (15:58 -0500)
commitfeb13f52c8547a8198045077d6aa9c3f2400ba11
tree6538b84a3b952b0f9f4bb53bf5b409fcd787df96
parentb07395d5d5e74e3a7e2e436fc0eced2b0f332074
Revert "drm/amdgpu: remove vm sanity check from amdgpu_vm_make_compute" for Raven

fix the issue:
"amdgpu: Failed to create process VM object".

[Why]when amdgpu initialized, seq64 do mampping and update bo mapping in vm page table.
But when clifo run. It also initializes a vm for a process device through the function kfd_process_device_init_vm and ensure the root PD is clean through the function amdgpu_vm_pt_is_root_clean.
So they have a conflict, and clinfo  always failed.

v1:
  - remove all the pte_supports_ats stuff from the amdgpu_vm code (Felix)

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c