]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd87965b401d7bec38801628d37e1c7edb34d32f6
treef55afc1b3262a49a2b8a69913b1c4252de64e812
parent686f0b08b88f435ccf71545ca29845a4e1cbf6f2
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