[PATCH] drm/amdgpu: log smu version
Zhu, Rex
Rex.Zhu at amd.com
Mon Nov 12 14:47:02 UTC 2018
Patch is
Reviewed-by: Rex Zhu <Rex.Zhu at amd.com>
Best Regards
Rex
> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> On Behalf Of S,
> Shirish
> Sent: Monday, November 12, 2018 2:50 PM
> To: Zhu, Rex <Rex.Zhu at amd.com>; Deucher, Alexander
> <Alexander.Deucher at amd.com>
> Cc: amd-gfx at lists.freedesktop.org; S, Shirish <Shirish.S at amd.com>
> Subject: [PATCH] drm/amdgpu: log smu version
>
> This patch prints the version of SMU firmware.
>
> Signed-off-by: Shirish S <shirish.s at amd.com>
> ---
> drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c
> b/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c
> index 09b844e..1439835 100644
> --- a/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c
> +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c
> @@ -737,6 +737,10 @@ static int smu8_start_smu(struct pp_hwmgr
> *hwmgr)
>
> cgs_write_register(hwmgr->device, mmMP0PUB_IND_INDEX, index);
> hwmgr->smu_version = cgs_read_register(hwmgr->device,
> mmMP0PUB_IND_DATA);
> + pr_info("smu version %02d.%02d.%02d\n",
> + ((hwmgr->smu_version >> 16) & 0xFF),
> + ((hwmgr->smu_version >> 8) & 0xFF),
> + (hwmgr->smu_version & 0xFF));
> adev->pm.fw_version = hwmgr->smu_version >> 8;
>
> return smu8_request_smu_load_fw(hwmgr);
> --
> 2.7.4
>
> _______________________________________________
> 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