]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/amdgpu: fix VM clearing in amdgpu_gem_object_close
authorChristian König <christian.koenig@amd.com>
Fri, 21 Apr 2017 08:05:56 +0000 (10:05 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:53 +0000 (17:32 -0400)
commit5a0f3b5f6d798637b0af5d6d3ab3eb02063e0317
tree2a29ee6cca3dba2c18bf421bc2456a563e1a3cd9
parent05a72a2864c2b27471e9f5365448563c78f9b114
drm/amdgpu: fix VM clearing in amdgpu_gem_object_close

We need to check if the VM is swapped out before trying to update it.

Fixes: 23e0563e48f7 ("drm/amdgpu: clear freed mappings immediately when BO may be freed")
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c