Skip to contentSkip to conversation

drm/amd/powerplay: warn on smu interface version mismatch

PATCH In review Yuan, Xiaojie 3 participants 5 messages Jun 26, 2019 – Jun 27, 2019 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/powerplay: warn on smu interface version mismatch

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -2
index c3f48fae6f32..339d063e24ff 100644
@@ -272,8 +272,7 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
 			"smu fw version = 0x%08x (%d.%d.%d)\n",
 			smu->smc_if_version, if_version,
 			smu_version, smu_major, smu_minor, smu_debug);
-		pr_err("SMU driver if version not matched\n");
-		ret = -EINVAL;
+		pr_warn("SMU driver if version not matched\n");
 	}
 
 	return ret;
Signature · 6 lines
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Current SMU IF version check is too strict, driver with old smu11_driver_if.h sometimes works fine with new SMU firmware. We prefer to see a warning instead a error for debug purposes.

BR,
Xiaojie

________________________________________
From: Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:24:19 PM
To: [email protected]
Cc: Wang, Kevin(Yang); Yuan, Xiaojie
Subject: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -2
index c3f48fae6f32..339d063e24ff 100644
@@ -272,8 +272,7 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
                        "smu fw version = 0x%08x (%d.%d.%d)\n",
                        smu->smc_if_version, if_version,
                        smu_version, smu_major, smu_minor, smu_debug);
-               pr_err("SMU driver if version not matched\n");
-               ret = -EINVAL;
+               pr_warn("SMU driver if version not matched\n");
        }
 
        return ret;

--
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): BN8PR12MB36021167B2EBF7F48CE93CCA89E20-h6+T2+wrnx1lGJ5xs4l7kQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

Reviewed-by
#4 lore raw

please add this message in patch commit. after

Best Regards,
Kevin

Quoted 32 lines · Xiaojie

Current SMU IF version check is too strict, driver with old smu11_driver_if.h sometimes works fine with new SMU firmware. We prefer to see a warning instead a error for debug purposes.

BR,
Xiaojie

________________________________________
From: Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:24:19 PM
To: [email protected]
Cc: Wang, Kevin(Yang); Yuan, Xiaojie
Subject: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

---
  drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -3
index c3f48fae6f32..339d063e24ff 100644
@@ -272,8 +272,7 @@ static int smu_v11_0_check_fw_version(struct smu_context *smu)
                         "smu fw version = 0x%08x (%d.%d.%d)\n",
                         smu->smc_if_version, if_version,
                         smu_version, smu_major, smu_minor, smu_debug);
-               pr_err("SMU driver if version not matched\n");
-               ret = -EINVAL;
+               pr_warn("SMU driver if version not matched\n");
         }
 
         return ret;
--
Quoted 2 lines

2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

#5 lore raw
In reply to a message not in the archive

I do not think this is a good idea.
As there is still some cases that version mismatch will cause unexpected issues. And they will be hard to debug. If this is for debug purpose only, I would suggest to keep this in your custom branch only.

Regards,
Evan

Quoted 45 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:34 PM
To: [email protected]
Cc: Wang, Kevin(Yang) <[email protected]>
Subject: Re: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

Current SMU IF version check is too strict, driver with old smu11_driver_if.h sometimes works fine with new SMU firmware. We prefer to see a warning instead a error for debug purposes.

BR,
Xiaojie

________________________________________
From: Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:24:19 PM
To: [email protected]
Cc: Wang, Kevin(Yang); Yuan, Xiaojie
Subject: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -2
index c3f48fae6f32..339d063e24ff 100644
@@ -272,8 +272,7 @@ static int smu_v11_0_check_fw_version(struct
 smu_context *smu)
                        "smu fw version = 0x%08x (%d.%d.%d)\n",
                        smu->smc_if_version, if_version,
                        smu_version, smu_major, smu_minor, smu_debug);
-               pr_err("SMU driver if version not matched\n");
-               ret = -EINVAL;
+               pr_warn("SMU driver if version not matched\n");
        }
 
        return ret;
Quoted 7 lines

--
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): MN2PR12MB3344BE7B57FC531F96DEDB44E4FD0-rweVpJHSKToDMgCC8P//[email protected]

#7 lore raw

Thanks Evan, got your point. Then I'll keep the patch only in our bring up branch.

BR,
Xiaojie

________________________________________
From: Quan, Evan
Sent: Thursday, June 27, 2019 9:51:22 AM
To: Yuan, Xiaojie; [email protected]
Cc: Wang, Kevin(Yang)
Subject: RE: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

I do not think this is a good idea.
As there is still some cases that version mismatch will cause unexpected issues. And they will be hard to debug. If this is for debug purpose only, I would suggest to keep this in your custom branch only.

Regards,
Evan

Quoted 45 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:34 PM
To: [email protected]
Cc: Wang, Kevin(Yang) <[email protected]>
Subject: Re: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

Current SMU IF version check is too strict, driver with old smu11_driver_if.h sometimes works fine with new SMU firmware. We prefer to see a warning instead a error for debug purposes.

BR,
Xiaojie

________________________________________
From: Yuan, Xiaojie
Sent: Wednesday, June 26, 2019 2:24:19 PM
To: [email protected]
Cc: Wang, Kevin(Yang); Yuan, Xiaojie
Subject: [PATCH] drm/amd/powerplay: warn on smu interface version mismatch

---
 drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/powerplay/smu_v11_0.c +1 -2
index c3f48fae6f32..339d063e24ff 100644
@@ -272,8 +272,7 @@ static int smu_v11_0_check_fw_version(struct
 smu_context *smu)
                        "smu fw version = 0x%08x (%d.%d.%d)\n",
                        smu->smc_if_version, if_version,
                        smu_version, smu_major, smu_minor, smu_debug);
-               pr_err("SMU driver if version not matched\n");
-               ret = -EINVAL;
+               pr_warn("SMU driver if version not matched\n");
        }
 
        return ret;
Quoted 7 lines

--
2.20.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx