drm/amdgpu: reuse sdma v4 MGCG and LS function for raven
authorHuang Rui <ray.huang@amd.com>
Tue, 17 Jan 2017 07:09:37 +0000 (15:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:41:12 +0000 (17:41 -0400)
Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index 645be900159883dcdb8cc68f349fb2a14b4703ff..2afcadbb1730a55567eafa96e7d825b6b0a10dbb 100644 (file)
@@ -1441,13 +1441,12 @@ static int sdma_v4_0_set_clockgating_state(void *handle,
 
        switch (adev->asic_type) {
        case CHIP_VEGA10:
+       case CHIP_RAVEN:
                sdma_v4_0_update_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE ? true : false);
                sdma_v4_0_update_medium_grain_light_sleep(adev,
                                state == AMD_CG_STATE_GATE ? true : false);
                break;
-       case CHIP_RAVEN:
-               break;
        default:
                break;
        }