diff options
author | Shirish S <shirish.s@amd.com> | 2018-11-12 12:13:24 +0530 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-12 15:55:30 -0500 |
commit | 36b486bc682114a2f1001cbf1a87f21ae381bfc1 (patch) | |
tree | 4e1bbf6fa03bb2784181fc4628298a140903f6ff | |
parent | 2bf011c861b75026d948b199659087ac9bdff026 (diff) | |
download | linux-stable-36b486bc682114a2f1001cbf1a87f21ae381bfc1.tar.gz linux-stable-36b486bc682114a2f1001cbf1a87f21ae381bfc1.tar.bz2 linux-stable-36b486bc682114a2f1001cbf1a87f21ae381bfc1.zip |
drm/amdgpu: log smu version
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>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c b/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c index b6e8c89ca03a..e2787e14a500 100644 --- a/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c +++ b/drivers/gpu/drm/amd/powerplay/smumgr/smu8_smumgr.c @@ -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); |