aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu.h
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2015-12-14 10:42:31 -0500
committerAlex Deucher <alexander.deucher@amd.com>2015-12-16 17:48:59 -0500
commit91acbeb68ab10c0c0f65f30b5b7fddbde4c97dd2 (patch)
treefca0b931a3679b8847a88000066fc9ef8a076683 /drivers/gpu/drm/amd/amdgpu/amdgpu.h
parent4655a12b81edab7cc7b13ca4db4094792fb01b4a (diff)
drm/amdgpu: fix user fence handling
This fixes a random corruption under memory pressure. We need to fence the BO for the user fence as well, otherwise it might be swapped out and the GPU could write the fence value to an undesired location. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index 5a5f04d0902d..048cfe073dae 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -1264,7 +1264,8 @@ struct amdgpu_cs_parser {
1264 struct ww_acquire_ctx ticket; 1264 struct ww_acquire_ctx ticket;
1265 1265
1266 /* user fence */ 1266 /* user fence */
1267 struct amdgpu_user_fence uf; 1267 struct amdgpu_user_fence uf;
1268 struct amdgpu_bo_list_entry uf_entry;
1268}; 1269};
1269 1270
1270struct amdgpu_job { 1271struct amdgpu_job {