[PATCH 2/3] drm/amdgpu/swsmu: fix is_support_sw_smu() for VEGA20

Alex Deucher alexdeucher at gmail.com
Wed Oct 13 18:20:57 UTC 2021


Ping on this series.

On Tue, Oct 12, 2021 at 11:53 AM Alex Deucher <alexander.deucher at amd.com> wrote:
>
> VEGA20 is 11.0.2, but it's handled by powerplay, not
> swsmu.
>
> Fixes: a8967967f6a554 ("drm/amdgpu/amdgpu_smu: convert to IP version checking")
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
> index 4ea7e90ef60d..f5bf3ab0ebad 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
> @@ -455,6 +455,10 @@ static int smu_get_power_num_states(void *handle,
>
>  bool is_support_sw_smu(struct amdgpu_device *adev)
>  {
> +       /* vega20 is 11.0.2, but it's supported via the powerplay code */
> +       if (adev->asic_type == CHIP_VEGA20)
> +               return false;
> +
>         if (adev->ip_versions[MP1_HWIP][0] >= IP_VERSION(11, 0, 0))
>                 return true;
>
> --
> 2.31.1
>


More information about the amd-gfx mailing list