drm/amdgpu: Remove duplicate code in gfx_v9_0.c
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 17 Aug 2018 08:42:35 +0000 (16:42 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:11:42 +0000 (15:11 -0500)
commit841cf911fb9e4abd7b8bac2776943c60da9069f4
tree8fdfeb413f86a62988f9b850f0214eaed96c3148
parenta62a49e5b968a58266ee04d63ddaa81a01510b39
drm/amdgpu: Remove duplicate code in gfx_v9_0.c

There are no any logical changes here.

1. if kcq can be enabled via kiq, we don't need to
   do kiq ring test.
2. amdgpu_ring_test_ring function can be used to
   sync the ring complete, remove the duplicate code.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c