drm/amdgpu/sdma3: set wptr shadow atomically
authorXiangliang.Yu <Xiangliang.Yu@amd.com>
Wed, 13 Sep 2017 02:58:19 +0000 (10:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 19:14:02 +0000 (15:14 -0400)
commit3e4b0bd96092bbf9c5a538916a61faa5eca8e9cb
tree73721971719c15832f932a8d4b6811af29508fde
parente33dac39bcf9978061df95f1510b2ec6bfab07fc
drm/amdgpu/sdma3: set wptr shadow atomically

Port it from sdma4 for wptr polling usage.

Signed-off-by: Xiangliang.Yu <Xiangliang.Yu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c