Skip to content

Commit

Permalink
drm/amdgpu: log smu version
Browse files Browse the repository at this point in the history
This patch prints the version of SMU firmware.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by:  Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
  • Loading branch information
Shirish S authored and Alex Deucher committed Nov 12, 2018
1 parent 2bf011c commit 36b486b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,6 +734,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);
Expand Down

0 comments on commit 36b486b

Please sign in to comment.