On Sun, Jul 29, 2018 at 7:12 AM, Rex Zhu <rex.zhu at amd.com> wrote: > so driver can powergate acp block after asic initialized > to save power. > > Signed-off-by: Rex Zhu <Rex.Zhu at amd.com> Series is: Reviewed-by: Alex Deucher <alexander.deucher at amd.com> > --- > 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 > amd-gfx at lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/amd-gfx