Skip to content

Commit 555e39f

Browse files
Lijo Lazaralexdeucher
authored andcommitted
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 <[email protected]> Reviewed-by: Hawking Zhang <[email protected]> Acked-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 8157750 commit 555e39f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/amdgpu/hdp_v4_0.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@ static void hdp_v4_0_get_clockgating_state(struct amdgpu_device *adev,
129129
{
130130
int data;
131131

132+
if (amdgpu_ip_version(adev, HDP_HWIP, 0) == IP_VERSION(4, 4, 2)) {
133+
/* Default enabled */
134+
*flags |= AMD_CG_SUPPORT_HDP_MGCG;
135+
return;
136+
}
132137
/* AMD_CG_SUPPORT_HDP_LS */
133138
data = RREG32(SOC15_REG_OFFSET(HDP, 0, mmHDP_MEM_POWER_LS));
134139
if (data & HDP_MEM_POWER_LS__LS_ENABLE_MASK)

0 commit comments

Comments
 (0)