drm/amdgpu: add gfxoff support for smu 13.0.5
authorYifan Zhang <yifan1.zhang@amd.com>
Tue, 8 Feb 2022 04:54:50 +0000 (12:54 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 25 Feb 2022 16:51:18 +0000 (11:51 -0500)
this patch adds gfxoff support for smu 13.0.5

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index 261a3749c0890c1851741f0c06345b86cfb8e1b7..4e557f4f7c4d20c151fed3cbfd7c7f0b877c3602 100644 (file)
@@ -751,6 +751,7 @@ int smu_v13_0_gfx_off_control(struct smu_context *smu, bool enable)
        switch (adev->ip_versions[MP1_HWIP][0]) {
        case IP_VERSION(13, 0, 1):
        case IP_VERSION(13, 0, 3):
+       case IP_VERSION(13, 0, 5):
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;
                if (enable)