drm/amd/powerplay: added support for new se_cac_idx APIs to cgs
authorEvan Quan <evan.quan@amd.com>
Tue, 4 Jul 2017 01:24:34 +0000 (09:24 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:25 +0000 (11:06 -0400)
Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
drivers/gpu/drm/amd/include/cgs_common.h

index e525de2ecb2d0fe1bd82d93e432b8d4474bcd996..9b589402b58db7585874ba1fa5d931620e2fc98e 100644 (file)
@@ -240,6 +240,8 @@ static uint32_t amdgpu_cgs_read_ind_register(struct cgs_device *cgs_device,
                return RREG32_DIDT(index);
        case CGS_IND_REG_GC_CAC:
                return RREG32_GC_CAC(index);
+       case CGS_IND_REG_SE_CAC:
+               return RREG32_SE_CAC(index);
        case CGS_IND_REG__AUDIO_ENDPT:
                DRM_ERROR("audio endpt register access not implemented.\n");
                return 0;
@@ -266,6 +268,8 @@ static void amdgpu_cgs_write_ind_register(struct cgs_device *cgs_device,
                return WREG32_DIDT(index, value);
        case CGS_IND_REG_GC_CAC:
                return WREG32_GC_CAC(index, value);
+       case CGS_IND_REG_SE_CAC:
+               return WREG32_SE_CAC(index, value);
        case CGS_IND_REG__AUDIO_ENDPT:
                DRM_ERROR("audio endpt register access not implemented.\n");
                return;
index 0a94f749e3c0a24f5d9b98256f19336d73704a09..b46d12df8df033874e4770dae2ac5487eebc7f35 100644 (file)
@@ -50,6 +50,7 @@ enum cgs_ind_reg {
        CGS_IND_REG__UVD_CTX,
        CGS_IND_REG__DIDT,
        CGS_IND_REG_GC_CAC,
+       CGS_IND_REG_SE_CAC,
        CGS_IND_REG__AUDIO_ENDPT
 };