drm/amdgpu: enable GFXOFF for navy_flounder
authorJiansong Chen <Jiansong.Chen@amd.com>
Thu, 30 Jul 2020 10:09:47 +0000 (18:09 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2020 20:45:46 +0000 (16:45 -0400)
Enable GFXOFF for navy_flounder.

Signed-off-by: Jiansong Chen <Jiansong.Chen@amd.com>
Reviewed-by: Likun Gao <Likun.Gao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 43cf3487c98acbb9d82889d20eff87a08f42fbeb..65997ffaed4566ced592e4d828fd13fe34006017 100644 (file)
@@ -7529,6 +7529,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,
        case CHIP_NAVI14:
        case CHIP_NAVI12:
        case CHIP_SIENNA_CICHLID:
+       case CHIP_NAVY_FLOUNDER:
                amdgpu_gfx_off_ctrl(adev, enable);
                break;
        default:
index fd82402065e638504830f8816fb906f2115909d4..7b950a582a28a9922b1f87a877ec1ba35ebd96ca 100644 (file)
@@ -1029,6 +1029,7 @@ int smu_v11_0_gfx_off_control(struct smu_context *smu, bool enable)
        case CHIP_NAVI14:
        case CHIP_NAVI12:
        case CHIP_SIENNA_CICHLID:
+       case CHIP_NAVY_FLOUNDER:
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;
                if (enable)