drm/amdgpu/sdma3: correct wptr initialization for sdma
authorYintian Tao <yttao@amd.com>
Fri, 12 May 2017 06:55:56 +0000 (14:55 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 22:18:15 +0000 (18:18 -0400)
commit78cb9083d91b5183b06809c3fc491932a89ba41f
treeceada7cd8f588db9984ba9e5815d57642f6ad42a
parent05ec3eda8b213ccc7df9645119c06f4d34a6fe2c
drm/amdgpu/sdma3: correct wptr initialization for sdma

If doorbell is used for wptr update, we also need to use it
to initialize wptr to 0.

Signed-off-by: Yintian Tao <yttao@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c