On Sun, Jul 29, 2018 at 7:12 AM, Rex Zhu <[email protected]> wrote:
> so driver can powergate acp block after asic initialized
> to save power.
>
> Signed-off-by: Rex Zhu <[email protected]>

Series is:
Reviewed-by: Alex Deucher <[email protected]>

> ---
>  drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c 
> b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
> index b5b66c3..297a549 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
> @@ -514,6 +514,12 @@ static int acp_set_clockgating_state(void *handle,
>  static int acp_set_powergating_state(void *handle,
>                                      enum amd_powergating_state state)
>  {
> +       struct amdgpu_device *adev = (struct amdgpu_device *)handle;
> +       bool enable = state == AMD_PG_STATE_GATE ? true : false;
> +
> +       if (adev->powerplay.pp_funcs->set_powergating_by_smu)
> +               amdgpu_dpm_set_powergating_by_smu(adev, 
> AMD_IP_BLOCK_TYPE_ACP, enable);
> +
>         return 0;
>  }
>
> --
> 1.9.1
>
> _______________________________________________
> amd-gfx mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to