diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2023-11-30 15:58:21 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-12-06 16:05:32 -0500 |
commit | 555e39f0270b1a1c51224044be9922b4c3a4c27f (patch) | |
tree | fc5ba282cabe5aefe824e13f7d76b03d322c70ee /drivers/gpu | |
parent | 81577503efb49f4ad76af22f9941d72900ef4aab (diff) | |
download | lwn-555e39f0270b1a1c51224044be9922b4c3a4c27f.tar.gz lwn-555e39f0270b1a1c51224044be9922b4c3a4c27f.zip |
drm/amdgpu: Update HDP 4.4.2 clock gating flags
HDP 4.4.2 clockgating is enabled by default, update the flags
accordingly.
Signed-off-by: Lijo Lazar <lijo.lazar@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c b/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c index 49e934975719..4db6bb73ead4 100644 --- a/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c +++ b/drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c @@ -129,6 +129,11 @@ static void hdp_v4_0_get_clockgating_state(struct amdgpu_device *adev, { int data; + if (amdgpu_ip_version(adev, HDP_HWIP, 0) == IP_VERSION(4, 4, 2)) { + /* Default enabled */ + *flags |= AMD_CG_SUPPORT_HDP_MGCG; + return; + } /* AMD_CG_SUPPORT_HDP_LS */ data = RREG32(SOC15_REG_OFFSET(HDP, 0, mmHDP_MEM_POWER_LS)); if (data & HDP_MEM_POWER_LS__LS_ENABLE_MASK) |