<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<p style="font-family:Arial;font-size:10pt;color:#0000FF;margin:5pt;" align="Left">
[AMD Official Use Only - General]<br>
</p>
<br>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Reviewed-by: Alex Deucher <alexander.deucher@amd.com><br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> amd-gfx <amd-gfx-bounces@lists.freedesktop.org> on behalf of Guchun Chen <guchun.chen@amd.com><br>
<b>Sent:</b> Monday, February 20, 2023 11:42 PM<br>
<b>To:</b> amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org>; Deucher, Alexander <Alexander.Deucher@amd.com>; Zhang, Hawking <Hawking.Zhang@amd.com>; Lazar, Lijo <Lijo.Lazar@amd.com>; Quan, Evan <Evan.Quan@amd.com>; Feng, Kenneth <Kenneth.Feng@amd.com><br>
<b>Cc:</b> Chen, Guchun <Guchun.Chen@amd.com><br>
<b>Subject:</b> [PATCH] drm/amd/pm: downgrade log level upon SMU IF version mismatch</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">SMU IF version mismatch as a warning message exists widely<br>
after asic production, however, due to this log level setting,<br>
such mismatch warning will be caught by automation test like<br>
IGT and reported as a fake error after checking. As such mismatch<br>
does not break anything, to reduce confusion, downgrade it from<br>
dev_warn to dev_info.<br>
<br>
Signed-off-by: Guchun Chen <guchun.chen@amd.com><br>
---<br>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c | 4 ++--<br>
drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 4 ++--<br>
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 4 ++--<br>
3 files changed, 6 insertions(+), 6 deletions(-)<br>
<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
index 6492d69e2e60..e1ef88ee1ed3 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c<br>
@@ -256,7 +256,7 @@ int smu_v11_0_check_fw_version(struct smu_context *smu)<br>
* to be backward compatible.<br>
* 2. New fw usually brings some optimizations. But that's visible<br>
* only on the paired driver.<br>
- * Considering above, we just leave user a warning message instead<br>
+ * Considering above, we just leave user a verbal message instead<br>
* of halt driver loading.<br>
*/<br>
if (if_version != smu->smc_driver_if_version) {<br>
@@ -264,7 +264,7 @@ int smu_v11_0_check_fw_version(struct smu_context *smu)<br>
"smu fw program = %d, version = 0x%08x (%d.%d.%d)\n",<br>
smu->smc_driver_if_version, if_version,<br>
smu_program, smu_version, smu_major, smu_minor, smu_debug);<br>
- dev_warn(smu->adev->dev, "SMU driver if version not matched\n");<br>
+ dev_info(smu->adev->dev, "SMU driver if version not matched\n");<br>
}<br>
<br>
return ret;<br>
diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c b/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c<br>
index 56a02bc60cee..c788aa7a99a9 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c<br>
@@ -93,7 +93,7 @@ int smu_v12_0_check_fw_version(struct smu_context *smu)<br>
* to be backward compatible.<br>
* 2. New fw usually brings some optimizations. But that's visible<br>
* only on the paired driver.<br>
- * Considering above, we just leave user a warning message instead<br>
+ * Considering above, we just leave user a verbal message instead<br>
* of halt driver loading.<br>
*/<br>
if (if_version != smu->smc_driver_if_version) {<br>
@@ -101,7 +101,7 @@ int smu_v12_0_check_fw_version(struct smu_context *smu)<br>
"smu fw program = %d, smu fw version = 0x%08x (%d.%d.%d)\n",<br>
smu->smc_driver_if_version, if_version,<br>
smu_program, smu_version, smu_major, smu_minor, smu_debug);<br>
- dev_warn(smu->adev->dev, "SMU driver if version not matched\n");<br>
+ dev_info(smu->adev->dev, "SMU driver if version not matched\n");<br>
}<br>
<br>
return ret;<br>
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<br>
index 78945e79dbee..25f336829840 100644<br>
--- a/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c<br>
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c<br>
@@ -311,7 +311,7 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)<br>
* to be backward compatible.<br>
* 2. New fw usually brings some optimizations. But that's visible<br>
* only on the paired driver.<br>
- * Considering above, we just leave user a warning message instead<br>
+ * Considering above, we just leave user a verbal message instead<br>
* of halt driver loading.<br>
*/<br>
if (if_version != smu->smc_driver_if_version) {<br>
@@ -319,7 +319,7 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)<br>
"smu fw program = %d, smu fw version = 0x%08x (%d.%d.%d)\n",<br>
smu->smc_driver_if_version, if_version,<br>
smu_program, smu_version, smu_major, smu_minor, smu_debug);<br>
- dev_warn(adev->dev, "SMU driver if version not matched\n");<br>
+ dev_info(adev->dev, "SMU driver if version not matched\n");<br>
}<br>
<br>
return ret;<br>
-- <br>
2.25.1<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>