[PATCH] drm/amd/powerplay: drop unnecessary warning prompt

Alex Deucher alexdeucher at gmail.com
Wed Dec 4 13:50:12 UTC 2019


On Wed, Dec 4, 2019 at 4:04 AM Evan Quan <evan.quan at amd.com> wrote:
>
> As the check may be done with purpose and the warning
> output will be confusing.
>
> Change-Id: Ie0928c324a8161d44068f8ce648d56f6d9e8cd3d
> Signed-off-by: Evan Quan <evan.quan at amd.com>

Acked-by: Alex Deucher <alexander.deucher at amd.com>

> ---
>  drivers/gpu/drm/amd/powerplay/arcturus_ppt.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
> index 3f13986d8e50..70b296a8fef8 100644
> --- a/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
> +++ b/drivers/gpu/drm/amd/powerplay/arcturus_ppt.c
> @@ -280,10 +280,8 @@ static int arcturus_get_workload_type(struct smu_context *smu, enum PP_SMC_POWER
>                 return -EINVAL;
>
>         mapping = arcturus_workload_map[profile];
> -       if (!(mapping.valid_mapping)) {
> -               pr_warn("Unsupported SMU power source: %d\n", profile);
> +       if (!(mapping.valid_mapping))
>                 return -EINVAL;
> -       }
>
>         return mapping.map_to;
>  }
> --
> 2.24.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