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_job.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_job.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c index a8357885776e..0cfc68db575b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_job.c | |||
@@ -61,11 +61,11 @@ int amdgpu_job_alloc(struct amdgpu_device *adev, unsigned num_ibs, | |||
61 | (*job)->vm = vm; | 61 | (*job)->vm = vm; |
62 | (*job)->ibs = (void *)&(*job)[1]; | 62 | (*job)->ibs = (void *)&(*job)[1]; |
63 | (*job)->num_ibs = num_ibs; | 63 | (*job)->num_ibs = num_ibs; |
64 | (*job)->vram_lost_counter = atomic_read(&adev->vram_lost_counter); | ||
65 | 64 | ||
66 | amdgpu_sync_create(&(*job)->sync); | 65 | amdgpu_sync_create(&(*job)->sync); |
67 | amdgpu_sync_create(&(*job)->dep_sync); | 66 | amdgpu_sync_create(&(*job)->dep_sync); |
68 | amdgpu_sync_create(&(*job)->sched_sync); | 67 | amdgpu_sync_create(&(*job)->sched_sync); |
68 | (*job)->vram_lost_counter = atomic_read(&adev->vram_lost_counter); | ||
69 | 69 | ||
70 | return 0; | 70 | return 0; |
71 | } | 71 | } |