Skip to contentSkip to conversation

drm/amd/pm: remove some useless code for vangogh

PATCH In review Xiaojian Du 4 participants 4 messages Feb 1, 2021

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

PATCH 1/1 drm/amd/pm: remove some useless code for vangogh

This patch is to remove some useless code for vangogh. In the earlier code, vangogh can't finish all the sequence of smu late init. But now vangogh has one stable work state,so remove the useless code.

---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -3
index f958b02f9317..30e2a0ac3279 100644
@@ -612,9 +612,6 @@ static int smu_late_init(void *handle)
 		return ret;
 	}
 
-	if (adev->asic_type == CHIP_VANGOGH)
-		return 0;
-
 	ret = smu_set_default_od_settings(smu);
 	if (ret) {
 		dev_err(adev->dev, "Failed to setup default OD settings!\n");
Signature · 6 lines
2.17.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by on v1 1/1
#1 lore raw

[AMD Official Use Only - Internal Distribution Only]

Notes:
we'd better to avoid adding ASIC type check in common file...

Best Regards,
Kevin

________________________________
From: Du, Xiaojian <[email protected]>
Sent: Monday, February 1, 2021 4:45 PM
To: [email protected] <[email protected]>
Cc: Huang, Ray <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Du, Xiaojian <[email protected]>
Subject: [PATCH] drm/amd/pm: remove some useless code for vangogh

This patch is to remove some useless code for vangogh. In the earlier code, vangogh can't finish all the sequence of smu late init. But now vangogh has one stable work state,so remove the useless code.

---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -3
index f958b02f9317..30e2a0ac3279 100644
@@ -612,9 +612,6 @@ static int smu_late_init(void *handle)
                 return ret;
         }
 
-       if (adev->asic_type == CHIP_VANGOGH)
-               return 0;
-
         ret = smu_set_default_od_settings(smu);
         if (ret) {
                 dev_err(adev->dev, "Failed to setup default OD settings!\n");

--
2.17.1

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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Xiaojian Du
Quoted 6 lines · Xiaojian

This patch is to remove some useless code for vangogh. In the earlier code, vangogh can't finish all the sequence of smu late init. But now vangogh has one stable work state,so remove the useless code.

Quoted 21 lines
---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -3
index f958b02f9317..30e2a0ac3279 100644
@@ -612,9 +612,6 @@ static int smu_late_init(void *handle)
 		return ret;
 	}
 
-	if (adev->asic_type == CHIP_VANGOGH)
-		return 0;
-
 	ret = smu_set_default_od_settings(smu);
 	if (ret) {
 		dev_err(adev->dev, "Failed to setup default OD settings!\n");
Signature · 1 line
2.17.1

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

Reviewed-by on v1 1/1
#3 lore raw
In reply to Xiaojian Du

[AMD Official Use Only - Internal Distribution Only]

-----Original Message-----
From: Du, Xiaojian <[email protected]>
Sent: Monday, February 1, 2021 4:46 PM
To: [email protected]
Cc: Huang, Ray <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Du, Xiaojian <[email protected]>
Subject: [PATCH] drm/amd/pm: remove some useless code for vangogh

This patch is to remove some useless code for vangogh. In the earlier code, vangogh can't finish all the sequence of smu late init. But now vangogh has one stable work state,so remove the useless code.

---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +0 -3
index f958b02f9317..30e2a0ac3279 100644
@@ -612,9 +612,6 @@ static int smu_late_init(void *handle)
 return ret;
 }
 
-if (adev->asic_type == CHIP_VANGOGH)
-return 0;
-
 ret = smu_set_default_od_settings(smu);
 if (ret) {
 dev_err(adev->dev, "Failed to setup default OD settings!\n");

--
2.17.1

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