drm/amdgpu/sdma4: add clockgating support for vega12
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 1 Sep 2017 20:50:28 +0000 (16:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Mar 2018 19:36:48 +0000 (14:36 -0500)
Same as vega10 for now.

Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c

index 4eddd850b72d56ed939f29fd4ad201fc742dcac2..3d059ecd875867a506a3959ce616e48ae823f039 100644 (file)
@@ -1497,6 +1497,7 @@ static int sdma_v4_0_set_clockgating_state(void *handle,
 
        switch (adev->asic_type) {
        case CHIP_VEGA10:
+       case CHIP_VEGA12:
        case CHIP_RAVEN:
                sdma_v4_0_update_medium_grain_clock_gating(adev,
                                state == AMD_CG_STATE_GATE ? true : false);