[PATCH 49/53] drm/amd/powerplay: disable gfxoff for navi14

Alex Deucher alexdeucher at gmail.com
Tue Jul 2 20:28:40 UTC 2019


From: Xiaojie Yuan <xiaojie.yuan at amd.com>

gfxoff doesn't work on navi14 yet, so disable it for now

Signed-off-by: Xiaojie Yuan <xiaojie.yuan at amd.com>
Reviewed-by: Jack Xiao <Jack.Xiao at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
index a6c2027cb27f..af593453dfc5 100644
--- a/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/powerplay/amdgpu_smu.c
@@ -536,6 +536,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);
 }
 
-- 
2.20.1



More information about the amd-gfx mailing list