[PATCH 1/4] drm/amd/pm: drop dead code

Alex Deucher alexdeucher at gmail.com
Tue Sep 15 18:37:36 UTC 2020


On Mon, Sep 7, 2020 at 5:01 AM Evan Quan <evan.quan at amd.com> wrote:
>
> Raven never goes to swsmu path. So "adev->smu.ppt_funcs" will be
> always false.
>
> Change-Id: Ia55ad97bcf9ecf135a9bd795f36a5b521d718b20
> Signed-off-by: Evan Quan <evan.quan at amd.com>
> Tested-by: Changfeng Zhu <Changfeng.Zhu at amd.com>

Patches 1, 2:
Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> index c5f2216e59c4..99ccabcc135e 100644
> --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_pp_smu.c
> @@ -592,9 +592,6 @@ void pp_rv_set_wm_ranges(struct pp_smu *pp,
>         if (pp_funcs && pp_funcs->set_watermarks_for_clocks_ranges)
>                 pp_funcs->set_watermarks_for_clocks_ranges(pp_handle,
>                                                            &wm_with_clock_ranges);
> -       else if (adev->smu.ppt_funcs)
> -               smu_set_watermarks_for_clock_ranges(&adev->smu,
> -                               &wm_with_clock_ranges);
>  }
>
>  void pp_rv_set_pme_wa_enable(struct pp_smu *pp)
> --
> 2.28.0
>
> _______________________________________________
> amd-gfx mailing list
> amd-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx


More information about the amd-gfx mailing list