Commit 9ac4b0d9 authored by Huang Rui's avatar Huang Rui Committed by Alex Deucher
Browse files

drm/amdgpu: set CGPG if gfxoff is enabled for raven

parent 151b5d7f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -682,6 +682,11 @@ static int soc15_common_early_init(void *handle)
			AMD_CG_SUPPORT_SDMA_LS;
		adev->pg_flags = AMD_PG_SUPPORT_SDMA;

		if (adev->powerplay.pp_feature & PP_GFXOFF_MASK)
			adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
				AMD_PG_SUPPORT_CP |
				AMD_PG_SUPPORT_RLC_SMU_HS;

		adev->external_rev_id = 0x1;
		break;
	default: