OSDN Git Service

drm/amd/pm: restore SMU version print statement for dGPUs
authorMario Limonciello <mario.limonciello@amd.com>
Tue, 14 Dec 2021 21:28:30 +0000 (15:28 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Dec 2021 18:43:46 +0000 (13:43 -0500)
This is still needed for thoes in case the firmware fails to load
then the message is the only way to tell what firmware was on them

Suggested-by: Lijo Lazar <lijo.Lazar@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c

index bb3f607..b54790d 100644 (file)
@@ -227,6 +227,11 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
                break;
        }
 
+       /* only for dGPU w/ SMU13*/
+       if (adev->pm.fw)
+               dev_dbg(adev->dev, "smu fw reported version = 0x%08x (%d.%d.%d)\n",
+                        smu_version, smu_major, smu_minor, smu_debug);
+
        /*
         * 1. if_version mismatch is not critical as our fw is designed
         * to be backward compatible.