Skip to contentSkip to conversation

drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC

PATCH Superseded Mario Limonciello 2 participants 3 messages Dec 10, 2021 – Dec 13, 2021

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC

This value does not get cached into adev->pm.fw_version during startup for smu13 like it does for other SMU like smu10.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
index 55421ea622fb..85dbd6a7efa9 100644
@@ -226,6 +226,8 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
 
 	dev_info(smu->adev->dev, "smu fw reported version = 0x%08x (%d.%d.%d)\n",
 			 smu_version, smu_major, smu_minor, smu_debug);
+	if (!smu->adev->pm.fw_version)
+		smu->adev->pm.fw_version = smu_version;
 
 	/*
 	 * 1. if_version mismatch is not critical as our fw is designed
Signature · 1 line
2.25.1
#1 lore raw

[Public]

In SMU11/SMU12, it will cache pm.fw_version unconditionally only in APU case. So we should apply the same code in smu_v13_0_check_fw_version?

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Friday, December 10, 2021 10:29 PM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH] drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC

This value does not get cached into adev->pm.fw_version during startup for smu13 like it does for other SMU like smu10.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
index 55421ea622fb..85dbd6a7efa9 100644
@@ -226,6 +226,8 @@ int smu_v13_0_check_fw_version(struct smu_context *smu)
 
 	dev_info(smu->adev->dev, "smu fw reported version = 0x%08x (%d.%d.%d)\n",
 			 smu_version, smu_major, smu_minor, smu_debug);
+	if (!smu->adev->pm.fw_version)
+		smu->adev->pm.fw_version = smu_version;
 
 	/*
 	 * 1. if_version mismatch is not critical as our fw is designed

--
2.25.1

#2 lore raw

[Public]

Quoted 9 lines

-----Original Message-----
From: Chen, Guchun <[email protected]>
Sent: Sunday, December 12, 2021 21:36
To: Limonciello, Mario <[email protected]>; amd- [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: RE: [PATCH] drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC

Quoted 4 lines

[Public]

In SMU11/SMU12, it will cache pm.fw_version unconditionally only in APU case. So we should apply the same code in smu_v13_0_check_fw_version?

Thanks, I just sent out a v2.

Quoted 39 lines

Regards,
Guchun

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Mario Limonciello
Sent: Friday, December 10, 2021 10:29 PM
To: [email protected]
Cc: Limonciello, Mario <[email protected]>
Subject: [PATCH] drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC

This value does not get cached into adev->pm.fw_version during startup for smu13 like it does for other SMU like smu10.

---
 drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
index 55421ea622fb..85dbd6a7efa9 100644
@@ -226,6 +226,8 @@ int smu_v13_0_check_fw_version(struct
 smu_context *smu)
 
 	dev_info(smu->adev->dev, "smu fw reported version = 0x%08x
 (%d.%d.%d)\n",
 			 smu_version, smu_major, smu_minor, smu_debug);
+	if (!smu->adev->pm.fw_version)
+		smu->adev->pm.fw_version = smu_version;
 
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +0 -1
 	/*
 	 * 1. if_version mismatch is not critical as our fw is designed
--

2.25.1