drm/amdgpu: Remove duplicate code in gfx_v8_0.c
authorRex Zhu <Rex.Zhu@amd.com>
Fri, 17 Aug 2018 05:13:12 +0000 (13:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:11:28 +0000 (15:11 -0500)
commit6c10b5cc4eaa31ecedfb98a7f3e1fa5be032e189
treef55afc1b3262a49a2b8a69913b1c4252de64e812
parentf1df06d0f9bc8d2e9f0736a23b78d6db033460dc
drm/amdgpu: Remove duplicate code in gfx_v8_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.

v2: alloc 6 (not 7) dws for unmap_queues

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_v8_0.c