drm/amdgpu:fix ring init sequence
authorMonk Liu <Monk.Liu@amd.com>
Tue, 21 Mar 2017 10:48:45 +0000 (18:48 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 03:55:38 +0000 (23:55 -0400)
commite09706f46ebecf3ae39996772c0ece12e91d8c45
treeb73ae389eb1d2dc88cc338aa46d7ad6f80b9edf8
parentb4d6126d1eeee1d5e58c6b17117b778bc7548389
drm/amdgpu:fix ring init sequence

ring->buf_mask need be set prior to ring_clear_ring invoke
and fix ring_clear_ring as well which should use buf_mask
instead of ptr_mask

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h