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>
This commit is contained in:
Christian König
2017-10-09 15:04:41 +02:00
committed by Alex Deucher
parent 396bcb41e0
commit 14e47f93c5
3 changed files with 10 additions and 6 deletions

View File

@@ -172,6 +172,8 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data)
if (ret)
goto free_all_kdata;
p->job->vram_lost_counter = fpriv->vram_lost_counter;
if (p->uf_entry.robj)
p->job->uf_addr = uf_offset;
kfree(chunk_array);