Commit b2e997e6 authored by Lijo Lazar's avatar Lijo Lazar Committed by Alex Deucher
Browse files

drm/amd/pm: Add pm firmware info to dmesg log



Add PMFW info to dmesg log for SMUv13 SOCs. It's helpful as diagnostic
data for some driver load issues.

Signed-off-by: default avatarLijo Lazar <lijo.lazar@amd.com>
Reviewed-by: default avatarAsad Kamal <asad.kamal@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9b822e26
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -288,12 +288,13 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
	 * Considering above, we just leave user a verbal message instead
	 * of halt driver loading.
	 */
	if (smu->smc_driver_if_version != SMU_IGNORE_IF_VERSION &&
	    if_version != smu->smc_driver_if_version) {
		dev_info(adev->dev, "smu driver if version = 0x%08x, smu fw if version = 0x%08x, "
	dev_info_once(adev->dev, "smu driver if version = 0x%08x, smu fw if version = 0x%08x, "
			 "smu fw program = %d, smu fw version = 0x%08x (%d.%d.%d)\n",
			 smu->smc_driver_if_version, if_version,
			 smu_program, smu_version, smu_major, smu_minor, smu_debug);

	if (smu->smc_driver_if_version != SMU_IGNORE_IF_VERSION &&
	    if_version != smu->smc_driver_if_version) {
		dev_info(adev->dev, "SMU driver if version not matched\n");
	}