drm/amdgpu: keep copy of VRAM lost counter in job
authorChristian König <christian.koenig@amd.com>
Mon, 9 Oct 2017 13:04:41 +0000 (15:04 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Oct 2017 19:27:03 +0000 (15:27 -0400)
commit14e47f93c5cc4a1237dbacc137e174706093b69c
tree46982028e70998559f7e5905072dce74b2adaa8e
parent396bcb41e035df7b98fb150ca950bf213e70ae7b
drm/amdgpu: keep copy of VRAM lost counter in job

Instead of reading the current counter from fpriv.

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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c