diff options
author | Monk Liu <Monk.Liu@amd.com> | 2017-10-16 08:02:08 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2017-10-19 15:27:17 -0400 |
commit | c70b78a71e9a283240f72dfdfff8fd2388db51da (patch) | |
tree | 3d667f3b52be80a9e778ecf516fe2941301f1625 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
parent | 896a664c969307a4954cd8c7754fd5d4e5358396 (diff) |
drm/amdgpu:fix duplicated setting job's vram_lost
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 52dd78ee8fd0..32cf83e2f2d9 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -172,7 +172,6 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, void *data) | |||
172 | if (ret) | 172 | if (ret) |
173 | goto free_all_kdata; | 173 | goto free_all_kdata; |
174 | 174 | ||
175 | p->job->vram_lost_counter = atomic_read(&p->adev->vram_lost_counter); | ||
176 | if (p->ctx->vram_lost_counter != p->job->vram_lost_counter) { | 175 | if (p->ctx->vram_lost_counter != p->job->vram_lost_counter) { |
177 | ret = -ECANCELED; | 176 | ret = -ECANCELED; |
178 | goto free_all_kdata; | 177 | goto free_all_kdata; |