]> 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)
commit8f86cbb4e24eea287136245943cf7f3ed11f0075
treefca0b931a3679b8847a88000066fc9ef8a076683
parent822a04e844571ceec56ef5f8b01e86da1f875598
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