drm/amd/amdgpu: Enable gfxoff for beige_goby
authorChengming Gui <Jack.Gui@amd.com>
Tue, 30 Mar 2021 08:26:49 +0000 (16:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 20 May 2021 02:41:50 +0000 (22:41 -0400)
Enable gfxoff in driver side based on SMC#73.3

v2: fix typo 'Eanble' --> 'Enable'

Signed-off-by: Chengming Gui <Jack.Gui@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c

index 80d9f3143f9e65215fa6081aabc228b6dc192d0b..8345a26cc2c782822bd57ab59e7379aa6262c77b 100644 (file)
@@ -8064,6 +8064,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
        case CHIP_DIMGREY_CAVEFISH:
+       case CHIP_BEIGE_GOBY:
                amdgpu_gfx_off_ctrl(adev, enable);
                break;
        case CHIP_VANGOGH:
index a532b79b2301c656b8709b0c366c3037f9c92875..362696208fd87afb985cd983a6d880f51e32835a 100644 (file)
@@ -1128,6 +1128,7 @@ int smu_v11_0_gfx_off_control(struct smu_context *smu, bool enable)
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
        case CHIP_DIMGREY_CAVEFISH:
+       case CHIP_BEIGE_GOBY:
        case CHIP_VANGOGH:
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;