drm/amdgpu: enable GFX Clock Gating control for GC IP v11.0.1
authorTim Huang <tim.huang@amd.com>
Fri, 29 Jul 2022 07:37:06 +0000 (15:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Aug 2022 19:10:26 +0000 (15:10 -0400)
Enable GFX CG gate/ungate control.

Signed-off-by: Tim Huang <tim.huang@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c

index 6fd71cb..e036188 100644 (file)
@@ -5310,6 +5310,7 @@ static int gfx_v11_0_set_clockgating_state(void *handle,
 
        switch (adev->ip_versions[GC_HWIP][0]) {
        case IP_VERSION(11, 0, 0):
+       case IP_VERSION(11, 0, 1):
        case IP_VERSION(11, 0, 2):
                gfx_v11_0_update_gfx_clock_gating(adev,
                                state ==  AMD_CG_STATE_GATE);