[PATCH] drm/amd/pm: restore SMU version print statement for dGPUs

Deucher, Alexander Alexander.Deucher at amd.com
Tue Dec 14 21:35:25 UTC 2021


[Public]

Reviewed-by: Alex Deucher <alexander.deucher at amd.com>
________________________________
From: amd-gfx <amd-gfx-bounces at lists.freedesktop.org> on behalf of Mario Limonciello <mario.limonciello at amd.com>
Sent: Tuesday, December 14, 2021 4:30 PM
To: amd-gfx at lists.freedesktop.org <amd-gfx at lists.freedesktop.org>
Cc: Lazar, Lijo <Lijo.Lazar at amd.com>; Limonciello, Mario <Mario.Limonciello at amd.com>
Subject: [PATCH] drm/amd/pm: restore SMU version print statement for dGPUs

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 at amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello at amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
index bb3f6072ed30..b54790d3483e 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c
@@ -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.
--
2.25.1

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20211214/630b9eea/attachment-0001.htm>


More information about the amd-gfx mailing list