Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36b486bc authored by Shirish S's avatar Shirish S Committed by Alex Deucher
Browse files

drm/amdgpu: log smu version



This patch prints the version of SMU firmware.

Signed-off-by: default avatarShirish S <shirish.s@amd.com>
Reviewed-by: default avatarRex Zhu <Rex.Zhu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2bf011c8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);