drm/amdgpu: Change kiq initialize/reset sequence on gfx8
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 22 Aug 2018 09:58:31 +0000 (17:58 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:11:56 +0000 (15:11 -0500)
commit36859cd5354b9cb418c28930936a8a6fce18a1d7
treea765e7d0bd739139b5790a15ac57c9c3c12dbbff
parentffabea84c55b1c6446b2245b87cdf6827b22e366
drm/amdgpu: Change kiq initialize/reset sequence on gfx8

1. initialize kiq before initialize gfx ring.
2. set kiq ring ready immediately when kiq initialize
   successfully.
3. split function gfx_v8_0_kiq_resume into two functions.
   gfx_v8_0_kiq_resume is for kiq initialize.
   gfx_v8_0_kcq_resume is for kcq initialize.

Reviewed-by: Alex Deucher <alexander.deucher@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