]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drm/amdgpu: Fix VM clean check method
authorTrigger Huang <Trigger.Huang@amd.com>
Tue, 30 Apr 2019 14:00:31 +0000 (22:00 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 6 May 2019 14:36:48 +0000 (09:36 -0500)
commit3680624e32412ced54f5659431c35b26e3e83923
treefaed365e88ea1d0051f93debbf0551d778ef624f
parent74dcfe74b4ef6cd8f219c42c4ea4df0310c78b33
drm/amdgpu: Fix VM clean check method

amdgpu_vm_make_compute is used to turn a GFX VM into a compute VM,
the prerequisite is this VM is clean. Let's check if some page tables
are already filled , while not check if some mapping is already made.

Signed-off-by: Trigger Huang <Trigger.Huang@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