drm/amd/powerplay: disable gfxoff for navi14
authorXiaojie Yuan <xiaojie.yuan@amd.com>
Mon, 13 May 2019 09:02:12 +0000 (17:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 18 Jul 2019 19:18:01 +0000 (14:18 -0500)
gfxoff doesn't work on navi14 yet, so disable it for now

Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c

index d977d68320c977c7a3786c670f8f5622dce08aab..1ac9db3aa5bc6048397add4bf1e11b439f11487e 100644 (file)
@@ -559,6 +559,9 @@ static int smu_early_init(void *handle)
        smu->pm_enabled = !!amdgpu_dpm;
        mutex_init(&smu->mutex);
 
+       if (adev->asic_type == CHIP_NAVI14)
+               adev->pm.pp_feature &= ~PP_GFXOFF_MASK;
+
        return smu_set_funcs(adev);
 }