summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2017-10-09 15:04:41 +0200
committerAlex Deucher <alexander.deucher@amd.com>2017-10-19 15:27:03 -0400
commit14e47f93c5cc4a1237dbacc137e174706093b69c (patch)
tree46982028e70998559f7e5905072dce74b2adaa8e /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent396bcb41e035df7b98fb150ca950bf213e70ae7b (diff)
downloadlwn-14e47f93c5cc4a1237dbacc137e174706093b69c.tar.gz
lwn-14e47f93c5cc4a1237dbacc137e174706093b69c.zip
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 76033e2cdba8..aa70f8c045b1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1125,6 +1125,7 @@ struct amdgpu_job {
uint32_t gds_base, gds_size;
uint32_t gws_base, gws_size;
uint32_t oa_base, oa_size;
+ uint32_t vram_lost_counter;
/* user fence handling */
uint64_t uf_addr;