[PATCH] drm/amd/pm: add the callback to get vbios bootup values for vangogh

Quan, Evan Evan.Quan at amd.com
Wed Apr 7 08:31:28 UTC 2021


[AMD Public Use]

Reviewed-by: Evan Quan <evan.quan at amd.com>

> -----Original Message-----
> From: Du, Xiaojian <Xiaojian.Du at amd.com>
> Sent: Wednesday, April 7, 2021 4:26 PM
> To: amd-gfx at lists.freedesktop.org
> Cc: Huang, Ray <Ray.Huang at amd.com>; Quan, Evan
> <Evan.Quan at amd.com>; Wang, Kevin(Yang) <Kevin1.Wang at amd.com>; Du,
> Xiaojian <Xiaojian.Du at amd.com>
> Subject: [PATCH] drm/amd/pm: add the callback to get vbios bootup values
> for vangogh
> 
> This patch is to add the callback to get vbios bootup values for
> vangogh, it will get the bootup values of gfxclk, mclk, socclk and so
> on.
> 
> Signed-off-by: Xiaojian Du <Xiaojian.Du at amd.com>
> ---
>  drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c   | 1 +
>  drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
> b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
> index 0d137af1a78a..6274cae4a065 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c
> @@ -561,6 +561,7 @@ int smu_v11_0_get_vbios_bootup_values(struct
> smu_context *smu)
>  		smu->smu_table.boot_values.firmware_caps = v_3_1-
> >firmware_capability;
>  		break;
>  	case 3:
> +	case 4:
>  	default:
>  		v_3_3 = (struct atom_firmware_info_v3_3 *)header;
>  		smu->smu_table.boot_values.revision = v_3_3-
> >firmware_revision;
> diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> index 5aea67637bd8..7bcd35840bf2 100644
> --- a/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> +++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c
> @@ -1894,6 +1894,7 @@ static const struct pptable_funcs
> vangogh_ppt_funcs = {
>  	.get_ppt_limit = vangogh_get_ppt_limit,
>  	.get_power_limit = vangogh_get_power_limit,
>  	.set_power_limit = vangogh_set_power_limit,
> +	.get_vbios_bootup_values = smu_v11_0_get_vbios_bootup_values,
>  };
> 
>  void vangogh_set_ppt_funcs(struct smu_context *smu)
> --
> 2.25.1


More information about the amd-gfx mailing list