]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/amdgpu: must update page table after gpu reset
authorChunming Zhou <David1.Zhou@amd.com>
Mon, 27 Jun 2016 09:04:23 +0000 (17:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 19:06:03 +0000 (15:06 -0400)
Record the gpu reset count in vmid to identify if gpu reset happened.

Signed-off-by: Chunming Zhou <David1.Zhou@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

index be0941621f4dfb94e6f105f92cae375828923bba..d9553d38b44e9dc6512ec7a3cbe4549fe723e1df 100644 (file)
@@ -312,6 +312,7 @@ int amdgpu_vm_grab_id(struct amdgpu_vm *vm, struct amdgpu_ring *ring,
 
        id->pd_gpu_addr = *vm_pd_addr;
 
+       id->current_gpu_reset_count = atomic_read(&adev->gpu_reset_counter);
        list_move_tail(&id->list, &adev->vm_manager.ids_lru);
        atomic64_set(&id->owner, vm->client_id);
        vm->ids[ring->idx] = id;