]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: enable GFXOFF for dimgrey_cavefish
authorTao Zhou <tao.zhou1@amd.com>
Tue, 3 Nov 2020 07:36:06 +0000 (15:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 4 Nov 2020 22:08:48 +0000 (17:08 -0500)
GFXOFF has been supported by PMFW, enable it directly in driver for
dimgrey_cavefish.

Signed-off-by: Tao Zhou <tao.zhou1@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@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 7b396b21099e73c517e5a0a358bac090b9206e5b..36d5660a04143237f75e73d119017ccb8f635b90 100644 (file)
@@ -7848,6 +7848,7 @@ static int gfx_v10_0_set_powergating_state(void *handle,
        case CHIP_NAVI12:
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
+       case CHIP_DIMGREY_CAVEFISH:
                amdgpu_gfx_off_ctrl(adev, enable);
                break;
        case CHIP_VANGOGH:
index fff1d252246374f0091e988f058f37b2df93abf5..b6453ee6f8e653001f2208edbadbf5ef96d6d0a8 100644 (file)
@@ -1086,6 +1086,7 @@ int smu_v11_0_gfx_off_control(struct smu_context *smu, bool enable)
        case CHIP_NAVI12:
        case CHIP_SIENNA_CICHLID:
        case CHIP_NAVY_FLOUNDER:
+       case CHIP_DIMGREY_CAVEFISH:
                if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
                        return 0;
                if (enable)