<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<div dir="auto" style="direction: ltr; margin: 0; padding: 0; font-family: sans-serif; font-size: 11pt; color: black; ">
I've pushed it already after Alex's review comment. I'll send<span id="ms-outlook-android-cursor"></span> an extra patch tomorrow for this extra cleanup.</div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">Get <a href="https://aka.ms/AAb9ysg">
Outlook for Android</a></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> Chen, Guchun <Guchun.Chen@amd.com><br>
<b>Sent:</b> Monday, December 13, 2021 8:41:17 PM<br>
<b>To:</b> Limonciello, Mario <Mario.Limonciello@amd.com>; amd-gfx@lists.freedesktop.org <amd-gfx@lists.freedesktop.org><br>
<b>Cc:</b> Limonciello, Mario <Mario.Limonciello@amd.com><br>
<b>Subject:</b> RE: [PATCH v2 1/2] drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">[Public]<br>
<br>
A nitpick.<br>
<br>
As we have defined a local variable 'adev', so code like 'smu->adev' should be replaced directly by 'adev' in the function to make code clean.<br>
<br>
With above addressed, the series is:<br>
<br>
Reviewed-by: Guchun Chen <guchun.chen@amd.com><br>
<br>
Regards,<br>
Guchun<br>
<br>
-----Original Message-----<br>
From: amd-gfx <amd-gfx-bounces@lists.freedesktop.org> On Behalf Of Mario Limonciello<br>
Sent: Monday, December 13, 2021 11:09 PM<br>
To: amd-gfx@lists.freedesktop.org<br>
Cc: Limonciello, Mario <Mario.Limonciello@amd.com><br>
Subject: [PATCH v2 1/2] drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC<br>
<br>
This value does not get cached into adev->pm.fw_version during startup for smu13 like it does for other SMU like smu12.<br>
<br>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com><br>
---<br>
v1->v2:<br>
* Run on all v13 APU to match v12 behavior drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<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 55421ea622fb..7fdb63da1316 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>
@@ -196,6 +196,7 @@ int smu_v13_0_check_fw_status(struct smu_context *smu)<br>
<br>
int smu_v13_0_check_fw_version(struct smu_context *smu) {<br>
+ struct amdgpu_device *adev = smu->adev;<br>
uint32_t if_version = 0xff, smu_version = 0xff;<br>
uint16_t smu_major;<br>
uint8_t smu_minor, smu_debug;<br>
@@ -208,6 +209,8 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)<br>
smu_major = (smu_version >> 16) & 0xffff;<br>
smu_minor = (smu_version >> 8) & 0xff;<br>
smu_debug = (smu_version >> 0) & 0xff;<br>
+ if (smu->is_apu)<br>
+ adev->pm.fw_version = smu_version;<br>
<br>
switch (smu->adev->ip_versions[MP1_HWIP][0]) {<br>
case IP_VERSION(13, 0, 2):<br>
--<br>
2.25.1<br>
</div>
</span></font></div>
</body>
</html>