drm/amdgpu: Change kiq ring initialize sequence on gfx9
authorRex Zhu <Rex.Zhu@amd.com>
Wed, 22 Aug 2018 10:54:45 +0000 (18:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 20:12:03 +0000 (15:12 -0500)
commita9a8a788e5e946a9835a1365256fc4ce9e96ba2c
tree6be7308b28fb4629d724205500dcb922ed15851f
parent36859cd5354b9cb418c28930936a8a6fce18a1d7
drm/amdgpu: Change kiq ring initialize sequence on gfx9

1. initialize kiq before initialize gfx ring.
2. set kiq ring ready immediately when kiq initialize
   successfully.
3. split function gfx_v9_0_kiq_resume into two functions.
     gfx_v9_0_kiq_resume is for kiq initialize.
     gfx_v9_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_v9_0.c