drm/amdgpu: fix user fence handling
authorChristian König <christian.koenig@amd.com>
Mon, 14 Dec 2015 15:42:31 +0000 (16:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 16 Dec 2015 22:48:59 +0000 (17:48 -0500)
commit91acbeb68ab10c0c0f65f30b5b7fddbde4c97dd2
treefca0b931a3679b8847a88000066fc9ef8a076683
parent4655a12b81edab7cc7b13ca4db4094792fb01b4a
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
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c