Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f60481a9 authored by Le Ma's avatar Le Ma Committed by Alex Deucher
Browse files

drm/amdgpu: add gfx clock gating for Arcturus



Add ARCTURUS case in gfx set clockgating function. No 3d clock on Arcturus.

Signed-off-by: default avatarLe Ma <le.ma@amd.com>
Reviewed-by: default avatarKenneth Feng <kenneth.feng@amd.com>
Reviewed-by: default avatarFeifei Xu <Feifei.Xu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 145b03eb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4622,6 +4622,9 @@ static void gfx_v9_0_update_3d_clock_gating(struct amdgpu_device *adev,
{
	uint32_t data, def;

	if (adev->asic_type == CHIP_ARCTURUS)
		return;

	amdgpu_gfx_rlc_enter_safe_mode(adev);

	/* Enable 3D CGCG/CGLS */
@@ -4814,6 +4817,7 @@ static int gfx_v9_0_set_clockgating_state(void *handle,
	case CHIP_VEGA12:
	case CHIP_VEGA20:
	case CHIP_RAVEN:
	case CHIP_ARCTURUS:
		gfx_v9_0_update_gfx_clock_gating(adev,
						 state == AMD_CG_STATE_GATE ? true : false);
		break;