Skip to contentSkip to conversation

drm/amdgpu: Fix BACO entry failure in NAVI10.

PATCH In review Andrey Grodzovsky 3 participants 3 messages Dec 5, 2019 – Dec 6, 2019

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

PATCH 1/1 drm/amdgpu: Fix BACO entry failure in NAVI10.

BACO feature must be kept enabled to allow entry into BACO state in SMU during runtime suspend.

---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -1
index c30f9a2..6dddd78 100644
@@ -1383,7 +1383,7 @@ static int smu_suspend(void *handle)
 	if (ret)
 		return ret;
 
-	if (adev->in_gpu_reset && baco_feature_is_enabled) {
+	if (baco_feature_is_enabled) {
 		ret = smu_feature_set_enabled(smu, SMU_FEATURE_BACO_BIT, true);
 		if (ret) {
 			pr_warn("set BACO feature enabled failed, return %d\n", ret);
Signature · 6 lines
2.7.4

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

-----Original Message-----
From: Andrey Grodzovsky <[email protected]>
Sent: Thursday, December 5, 2019 2:30 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Grodzovsky, Andrey <[email protected]>
Subject: [PATCH] drm/amdgpu: Fix BACO entry failure in NAVI10.

Quoted 4 lines

BACO feature must be kept enabled to allow entry into BACO state in SMU during runtime suspend.

Quoted 18 lines
---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -1
index c30f9a2..6dddd78 100644
@@ -1383,7 +1383,7 @@ static int smu_suspend(void *handle)
 	if (ret)
 		return ret;
 
-	if (adev->in_gpu_reset && baco_feature_is_enabled) {
+	if (baco_feature_is_enabled) {
 		ret = smu_feature_set_enabled(smu,
 SMU_FEATURE_BACO_BIT, true);
 		if (ret) {
Quoted 4 lines

pr_warn("set BACO feature enabled failed, return
%d\n", ret);
--
2.7.4

_______________________________________________
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 Andrey Grodzovsky
Quoted 36 lines

-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Andrey Grodzovsky
Sent: Friday, December 6, 2019 3:30 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Grodzovsky, Andrey <[email protected]>
Subject: [PATCH] drm/amdgpu: Fix BACO entry failure in NAVI10.

BACO feature must be kept enabled to allow entry into BACO state in SMU during runtime suspend.

---
 drivers/gpu/drm/amd/powerplay/amdgpu_smu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/amdgpu_smu.c +1 -1
index c30f9a2..6dddd78 100644
@@ -1383,7 +1383,7 @@ static int smu_suspend(void *handle)
 	if (ret)
 		return ret;
 
-	if (adev->in_gpu_reset && baco_feature_is_enabled) {
+	if (baco_feature_is_enabled) {
 		ret = smu_feature_set_enabled(smu,
 SMU_FEATURE_BACO_BIT, true);
 		if (ret) {

pr_warn("set BACO feature enabled failed,
return %d\n", ret);
--
2.7.4

Quoted 9 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.free
desktop.org%2Fmailman%2Flistinfo%2Famd- gfx&amp;data=02%7C01%7Cevan.quan%40amd.com%7C30207edddf64470488 b808d779b97bb1%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637 111710023605585&amp;sdata=9vXWJjskRpnlbPR5baJa%2BDt4KZiycSiUyB8Fl2b vsnk%3D&amp;reserved=0

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