drm/amdgpu: init CSIB regardless of rlc version and pg status
authorEvan Quan <evan.quan@amd.com>
Thu, 5 Jul 2018 03:17:48 +0000 (11:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:44:25 +0000 (14:44 -0500)
CSIB init has no relation with rlc version and pg status. It should be
needed regardless of them.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c

index 82f457a061fe75fe530960be4d91ab553473b459..e4ae92618b62fd9ad94a435d52484d79a367a9cd 100644 (file)
@@ -2182,6 +2182,8 @@ static void gfx_v9_0_enable_gfx_dynamic_mg_power_gating(struct amdgpu_device *ad
 
 static void gfx_v9_0_init_pg(struct amdgpu_device *adev)
 {
+       gfx_v9_0_init_csb(adev);
+
        if (!adev->gfx.rlc.is_rlc_v2_1)
                return;
 
@@ -2191,7 +2193,6 @@ static void gfx_v9_0_init_pg(struct amdgpu_device *adev)
                              AMD_PG_SUPPORT_CP |
                              AMD_PG_SUPPORT_GDS |
                              AMD_PG_SUPPORT_RLC_SMU_HS)) {
-               gfx_v9_0_init_csb(adev);
                gfx_v9_1_init_rlc_save_restore_list(adev);
                gfx_v9_0_enable_save_restore_machine(adev);