[PATCH 3/3] drm/amdgpu: Avoid querying DRM MGCG status

Deucher, Alexander Alexander.Deucher at amd.com
Fri Dec 1 15:15:25 UTC 2023


[AMD Official Use Only - General]

For the series.
________________________________
From: Alex Deucher <alexdeucher at gmail.com>
Sent: Friday, December 1, 2023 9:00 AM
To: Lazar, Lijo <Lijo.Lazar at amd.com>
Cc: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher at amd.com>; Zhang, Hawking <Hawking.Zhang at amd.com>
Subject: Re: [PATCH 3/3] drm/amdgpu: Avoid querying DRM MGCG status

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

On Fri, Dec 1, 2023 at 3:32 AM Lijo Lazar <lijo.lazar at amd.com> wrote:
>
> MP0 v13.0.6 SOCs don't support DRM MGCG.
>
> Signed-off-by: Lijo Lazar <lijo.lazar at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/soc15.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c
> index 9043ebf1e161..15033efec2ba 100644
> --- a/drivers/gpu/drm/amd/amdgpu/soc15.c
> +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c
> @@ -1430,7 +1430,8 @@ static void soc15_common_get_clockgating_state(void *handle, u64 *flags)
>         if (adev->hdp.funcs && adev->hdp.funcs->get_clock_gating_state)
>                 adev->hdp.funcs->get_clock_gating_state(adev, flags);
>
> -       if (amdgpu_ip_version(adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 2)) {
> +       if ((amdgpu_ip_version(adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 2)) &&
> +           (amdgpu_ip_version(adev, MP0_HWIP, 0) != IP_VERSION(13, 0, 6))) {
>                 /* AMD_CG_SUPPORT_DRM_MGCG */
>                 data = RREG32(SOC15_REG_OFFSET(MP0, 0, mmMP0_MISC_CGTT_CTRL0));
>                 if (!(data & 0x01000000))
> --
> 2.25.1
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20231201/3a8c75cc/attachment-0001.htm>


More information about the amd-gfx mailing list