drm/amdgpu: add ACLK_CNTL setting for polaris10
authorKen Wang <Qingqing.Wang@amd.com>
Tue, 28 Jun 2016 05:28:50 +0000 (13:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 29 Jun 2016 16:10:31 +0000 (12:10 -0400)
This is a temporary workaround for early boards.

Signed-off-by: Ken Wang <Qingqing.Wang@amd.com>
Reviewed-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

index 1a5cbaff1e34ed23d54aaa5e8131c375e58deb69..b2ebd4fef6cfc12b7bbd746df5f60492ad48d9ba 100644 (file)
@@ -47,6 +47,8 @@
 #include "dce/dce_10_0_d.h"
 #include "dce/dce_10_0_sh_mask.h"
 
+#include "smu/smu_7_1_3_d.h"
+
 #define GFX8_NUM_GFX_RINGS     1
 #define GFX8_NUM_COMPUTE_RINGS 8
 
@@ -693,6 +695,7 @@ static void gfx_v8_0_init_golden_registers(struct amdgpu_device *adev)
                amdgpu_program_register_sequence(adev,
                                                 polaris10_golden_common_all,
                                                 (const u32)ARRAY_SIZE(polaris10_golden_common_all));
+               WREG32_SMC(ixCG_ACLK_CNTL, 0x0000001C);
                break;
        case CHIP_CARRIZO:
                amdgpu_program_register_sequence(adev,