drm/amd/pm: fix reading SMU FW version from amdgpu_firmware_info on YC
Subsystems (3)
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
@@ -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
[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
@@ -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
[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 fromamdgpu_firmware_infoon 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 fromamdgpu_firmware_infoon YCThis value does not get cached into
adev->pm.fw_versionduring startup for smu13 like it does for other SMU like smu10.Signed-off-by Mario Limonciello <[email protected]>--- 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@@ -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