[PATCH v2] drm/amd/pm: enable LCLK DS

Alex Deucher alexdeucher at gmail.com
Mon Feb 8 14:10:23 UTC 2021


On Sat, Feb 6, 2021 at 10:16 PM Kenneth Feng <kenneth.feng at amd.com> wrote:
>
> v1:
> Enable LCLK deep sleep and it works if we enable ASPM:
> modprobe amdgpu aspm=1
>
> v2:
> Add the amdgpu_aspm flag check
>
> Signed-off-by: Kenneth Feng <kenneth.feng at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> index b9e47f3b0231..af73e1430af5 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
> @@ -302,6 +302,9 @@ sienna_cichlid_get_allowed_feature_mask(struct smu_context *smu,
>         if (smu->dc_controlled_by_gpio)
>         *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_ACDC_BIT);
>
> +       if (amdgpu_aspm == 1)

We should probably pull the aspm flag into adev so we can selectively
enable/disable it by default on different asics.

Alex


> +               *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DS_LCLK_BIT);
> +
>         return 0;
>  }
>
> --
> 2.17.1
>
> _______________________________________________
> 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