From: Sonny Jiang Date: Mon, 16 Oct 2023 20:49:53 +0000 (-0400) Subject: drm/amdgpu/jpeg5: enable power gating X-Git-Tag: v6.11-rc1~141^2~25^2~393 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f19cfce87d9416d050399ae56a00f2060eab85f4;p=thirdparty%2Flinux.git drm/amdgpu/jpeg5: enable power gating Enable PG on JPEG5 Signed-off-by: Sonny Jiang Reviewed-by: Leo Liu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc24.c b/drivers/gpu/drm/amd/amdgpu/soc24.c index c8cb255b6cf68..9c14f81c88a7f 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc24.c +++ b/drivers/gpu/drm/amd/amdgpu/soc24.c @@ -359,7 +359,8 @@ static int soc24_common_early_init(void *handle) break; case IP_VERSION(12, 0, 1): adev->cg_flags = 0; - adev->pg_flags = AMD_PG_SUPPORT_VCN; + adev->pg_flags = AMD_PG_SUPPORT_VCN | + AMD_PG_SUPPORT_JPEG; adev->external_rev_id = adev->rev_id + 0x50; adev->cg_flags = AMD_CG_SUPPORT_GFX_CGCG | AMD_CG_SUPPORT_GFX_CGLS;