[PATCH] drm/amdgpu: enable GFXOFF for navy_flounder

Zhou1, Tao Tao.Zhou1 at amd.com
Thu Jul 30 11:15:02 UTC 2020


[AMD Official Use Only - Internal Distribution Only]

Reviewed-by: Tao Zhou <tao.zhou1 at amd.com>

> -----Original Message-----
> From: Jiansong Chen <Jiansong.Chen at amd.com>
> Sent: Thursday, July 30, 2020 6:14 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Zhou1, Tao <Tao.Zhou1 at amd.com>; Chen, Jiansong (Simon)
> <Jiansong.Chen at amd.com>
> Subject: [PATCH] drm/amdgpu: enable GFXOFF for navy_flounder
>
> Enable GFXOFF for navy_flounder.
>
> Signed-off-by: Jiansong Chen <Jiansong.Chen at amd.com>
> Change-Id: Ia49c1ad70e3521447b9db101f5c0eae70b1df665
> ---
>  drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c    | 1 +
>  drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> index ca16f01956d3..fe8ccc9be682 100644
> --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c
> @@ -7529,6 +7529,7 @@ static int gfx_v10_0_set_powergating_state(void
> *handle,
>  case CHIP_NAVI14:
>  case CHIP_NAVI12:
>  case CHIP_SIENNA_CICHLID:
> +case CHIP_NAVY_FLOUNDER:
>  amdgpu_gfx_off_ctrl(adev, enable);
>  break;
>  default:
> diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> index a9453ec01619..7d7de854a826 100644
> --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> @@ -1029,6 +1029,7 @@ int smu_v11_0_gfx_off_control(struct smu_context
> *smu, bool enable)
>  case CHIP_NAVI14:
>  case CHIP_NAVI12:
>  case CHIP_SIENNA_CICHLID:
> +case CHIP_NAVY_FLOUNDER:
>  if (!(adev->pm.pp_feature & PP_GFXOFF_MASK))
>  return 0;
>  if (enable)
> --
> 2.17.1



More information about the amd-gfx mailing list