diff options
author | Jack Xiao | 2019-05-28 15:47:05 +0200 |
---|---|---|
committer | Alex Deucher | 2019-06-22 01:59:33 +0200 |
commit | 1768908ec5a80d20da70245c319092db8fce09b8 (patch) | |
tree | 54fe11ef234ba58a4185428e5f2492b334ee6921 /drivers/gpu/drm/amd | |
parent | drm/amd/powerplay: update smu11_driver_if_navi10.h (diff) | |
download | kernel-qcow2-linux-1768908ec5a80d20da70245c319092db8fce09b8.tar.gz kernel-qcow2-linux-1768908ec5a80d20da70245c319092db8fce09b8.tar.xz kernel-qcow2-linux-1768908ec5a80d20da70245c319092db8fce09b8.zip |
drm/amd/powerplay: disable fw dstate when gfxoff is enabled
SMU FW has bug that it would cause hung when both fw dstate and
gfxoff are enabled at the same time.
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com>
Reviewed-by: Kenneth Feng <kenneth.feng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd')
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c index 5b4332392cf5..4310f8621061 100644 --- a/drivers/gpu/drm/amd/powerplay/navi10_ppt.c +++ b/drivers/gpu/drm/amd/powerplay/navi10_ppt.c @@ -336,9 +336,12 @@ navi10_get_allowed_feature_mask(struct smu_context *smu, | FEATURE_MASK(FEATURE_FW_DSTATE_BIT) | FEATURE_MASK(FEATURE_ACDC_BIT); - if (adev->pm.pp_feature & PP_GFXOFF_MASK) + if (adev->pm.pp_feature & PP_GFXOFF_MASK) { *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFX_SS_BIT) | FEATURE_MASK(FEATURE_GFXOFF_BIT); + /* TODO: remove it once fw fix the bug */ + *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT); + } if (smu->adev->pg_flags & AMD_PG_SUPPORT_VCN) *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_VCN_PG_BIT); |