drm/amdgpu/gfx80: Add QUICK_PG bit to GFX header and use it.
authorTom St Denis <tom.stdenis@amd.com>
Fri, 3 Jun 2016 18:31:46 +0000 (14:31 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:19 +0000 (14:51 -0400)
Signed-off-by: Tom St Denis <tom.stdenis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
drivers/gpu/drm/amd/include/asic_reg/gca/gfx_8_0_sh_mask.h

index fb656b65b9a65c86616cb58a9357fba44983d380..381d25871a0bae4d9dc55166551a5b58b89752b1 100644 (file)
@@ -5292,9 +5292,9 @@ static void polaris11_enable_gfx_quick_mg_power_gating(struct amdgpu_device *ade
        temp = data = RREG32(mmRLC_PG_CNTL);
        /* Enable quick PG */
        if (enable)
-               data |= 0x100000;
+               data |= RLC_PG_CNTL__QUICK_PG_ENABLE_MASK;
        else
-               data &= ~0x100000;
+               data &= ~RLC_PG_CNTL__QUICK_PG_ENABLE_MASK;
 
        if (temp != data)
                WREG32(mmRLC_PG_CNTL, data);
index 7d722458d9f51a7bb05801040fa32edf68bfdb52..64a1953ebae4eb70b23aaf3116b480523c569795 100644 (file)
 #define RLC_PG_CNTL__SMU_CLK_SLOWDOWN_ON_PD_ENABLE__SHIFT 0x12
 #define RLC_PG_CNTL__SMU_HANDSHAKE_ENABLE_MASK 0x80000
 #define RLC_PG_CNTL__SMU_HANDSHAKE_ENABLE__SHIFT 0x13
-#define RLC_PG_CNTL__RESERVED1_MASK 0xf00000
-#define RLC_PG_CNTL__RESERVED1__SHIFT 0x14
+#define RLC_PG_CNTL__QUICK_PG_ENABLE_MASK 0x100000
+#define RLC_PG_CNTL__QUICK_PG_ENABLE__SHIFT 0x14
+#define RLC_PG_CNTL__RESERVED1_MASK 0xe00000
+#define RLC_PG_CNTL__RESERVED1__SHIFT 0x15
 #define RLC_GPM_THREAD_PRIORITY__THREAD0_PRIORITY_MASK 0xff
 #define RLC_GPM_THREAD_PRIORITY__THREAD0_PRIORITY__SHIFT 0x0
 #define RLC_GPM_THREAD_PRIORITY__THREAD1_PRIORITY_MASK 0xff00