[PATCH] drm/amd/amdgpu: align the cg and pg settings

Alex Deucher alexdeucher at gmail.com
Fri May 27 13:22:21 UTC 2022


On Fri, May 27, 2022 at 5:46 AM Kenneth Feng <kenneth.feng at amd.com> wrote:
>
> align the cg and pg settings between gc_v11_0 and gc_v11_2
>
> Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/amdgpu/soc21.c | 9 +++++++--
>  1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
> index 5566ddbfd188..26fda7a170da 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc21.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
> @@ -546,12 +546,17 @@ static int soc21_common_early_init(void *handle)
>                 adev->cg_flags =
>                         AMD_CG_SUPPORT_GFX_CGCG |
>                         AMD_CG_SUPPORT_GFX_CGLS |
> +                       AMD_CG_SUPPORT_REPEATER_FGCG |
>                         AMD_CG_SUPPORT_VCN_MGCG |
> -                       AMD_CG_SUPPORT_JPEG_MGCG;
> +                       AMD_CG_SUPPORT_JPEG_MGCG |
> +                       AMD_CG_SUPPORT_ATHUB_MGCG |
> +                       AMD_CG_SUPPORT_ATHUB_LS;
>                 adev->pg_flags =
>                         AMD_PG_SUPPORT_VCN |
>                         AMD_PG_SUPPORT_VCN_DPG |
> -                       AMD_PG_SUPPORT_JPEG;
> +                       AMD_PG_SUPPORT_JPEG |
> +                       AMD_PG_SUPPORT_ATHUB |
> +                       AMD_PG_SUPPORT_MMHUB;
>                 adev->external_rev_id = adev->rev_id + 0x10;
>                 break;
>         default:
> --
> 2.25.1
>


More information about the amd-gfx mailing list