diff options
| author | Evan Quan <[email protected]> | 2022-04-15 06:38:02 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2022-05-05 20:51:11 +0000 |
| commit | c649ed054ad7d2ffe4d4ae175e7b1420fb59fc06 (patch) | |
| tree | 63973129df2fcf2b5e27eafa2a89e862877cb68c /drivers/gpu/drm/amd/amdgpu/athub_v3_0.c | |
| parent | drm/amd/pm: enable more dpm features to pair with PMFW 78.31.0 (diff) | |
| download | kernel-c649ed054ad7d2ffe4d4ae175e7b1420fb59fc06.tar.gz kernel-c649ed054ad7d2ffe4d4ae175e7b1420fb59fc06.zip | |
drm/amdgpu: enable MGCG and LS for ATHUB 3.0
Enable ATHUB 3.0 MGCG and LS features.
Signed-off-by: Evan Quan <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/athub_v3_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/athub_v3_0.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/athub_v3_0.c b/drivers/gpu/drm/amd/amdgpu/athub_v3_0.c index 20ff228a8b4a..eda07cfe92bb 100644 --- a/drivers/gpu/drm/amd/amdgpu/athub_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/athub_v3_0.c @@ -36,7 +36,7 @@ athub_v3_0_update_medium_grain_clock_gating(struct amdgpu_device *adev, def = data = RREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL); - if (enable && (adev->cg_flags & AMD_CG_SUPPORT_MC_MGCG)) + if (enable && (adev->cg_flags & AMD_CG_SUPPORT_ATHUB_MGCG)) data |= ATHUB_MISC_CNTL__CG_ENABLE_MASK; else data &= ~ATHUB_MISC_CNTL__CG_ENABLE_MASK; @@ -53,8 +53,7 @@ athub_v3_0_update_medium_grain_light_sleep(struct amdgpu_device *adev, def = data = RREG32_SOC15(ATHUB, 0, regATHUB_MISC_CNTL); - if (enable && (adev->cg_flags & AMD_CG_SUPPORT_MC_LS) && - (adev->cg_flags & AMD_CG_SUPPORT_HDP_LS)) + if (enable && (adev->cg_flags & AMD_CG_SUPPORT_ATHUB_LS)) data |= ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK; else data &= ~ATHUB_MISC_CNTL__CG_MEM_LS_ENABLE_MASK; |
