]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73f3d578f843adcdf9e8190cca2786dab41e09ee
treefca0b931a3679b8847a88000066fc9ef8a076683
parent037436cca3e5d35c572af4c30203d71609203f10
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