Skip to contentSkip to conversation

drm/amd/powerplay: add more feature bits

PATCH In review Yuan, Xiaojie 5 participants 12 messages Oct 9, 2019 – Oct 11, 2019 9 messages not in the archive

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

PATCH 1/2 drm/amd/powerplay: add more feature bits

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +4 -1
index 5a34d01f7f7c..44152c1f01c7 100644
@@ -337,19 +337,22 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
 				| FEATURE_MASK(FEATURE_PPT_BIT)
 				| FEATURE_MASK(FEATURE_TDC_BIT)
 				| FEATURE_MASK(FEATURE_GFX_EDC_BIT)
+				| FEATURE_MASK(FEATURE_APCC_PLUS_BIT)
 				| FEATURE_MASK(FEATURE_VR0HOT_BIT)
 				| FEATURE_MASK(FEATURE_FAN_CONTROL_BIT)
 				| FEATURE_MASK(FEATURE_THERMAL_BIT)
 				| FEATURE_MASK(FEATURE_LED_DISPLAY_BIT)
 				| FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT)
 				| FEATURE_MASK(FEATURE_DS_GFXCLK_BIT)
+				| FEATURE_MASK(FEATURE_DS_LCLK_BIT)
 				| FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
 				| FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
 				| FEATURE_MASK(FEATURE_BACO_BIT)
 				| FEATURE_MASK(FEATURE_ACDC_BIT)
 				| FEATURE_MASK(FEATURE_GFX_SS_BIT)
 				| FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
-				| FEATURE_MASK(FEATURE_FW_CTF_BIT);
+				| FEATURE_MASK(FEATURE_FW_CTF_BIT)
+				| FEATURE_MASK(FEATURE_OUT_OF_BAND_MONITOR_BIT);
 
 	if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
 		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
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

PATCH 2/2 drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
 				| FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
 				| FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-	if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+	if (adev->pm.pp_feature & PP_GFXOFF_MASK)
 		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-		/* TODO: remove it once fw fix the bug */
-		*(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-	}
 
 	if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
 		*(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);
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]

#4 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
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): DM5PR12MB182077A0796BED759991002EF7950-2J9CzHegvk8qWyLXlBb1HgdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#6 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,
Xiaojie
________________________________
From: Deucher, Alexander <[email protected]>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
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): BN8PR12MB3602F6E7A20C0F1FE3997FF589950-h6+T2+wrnx1lGJ5xs4l7kQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#8 lore raw

RE: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,
This issue was navi10 specific and was found in May, 2019.
It was early after the asic back, then since gfxoff was removed from navi10, we didn't really verify which firmware version started to have a fix. For navi14/navi12, there's no such issue at all.
Sorry for losing the track of it.

From: Yuan, Xiaojie
Sent: Thursday, October 10, 2019 1:17 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected]
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,
Xiaojie
________________________________
From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex
________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>; Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
2.20.1

_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): MN2PR12MB3598AD3DF5A31DF503C03EAE8E940-rweVpJHSKTohWwLleUddgQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#10 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Great. thanks!

Alex
________________________________
From: Feng, Kenneth <[email protected]>
Sent: Thursday, October 10, 2019 3:00 AM
To: Yuan, Xiaojie <[email protected]>; Deucher, Alexander <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: RE: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

This issue was navi10 specific and was found in May, 2019.

It was early after the asic back, then since gfxoff was removed from navi10, we didn’t really verify which firmware version started to have a fix.

For navi14/navi12, there’s no such issue at all.

Sorry for losing the track of it.

From: Yuan, Xiaojie
Sent: Thursday, October 10, 2019 1:17 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected]
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,

Xiaojie

________________________________

From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex

________________________________

From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>; Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
2.20.1

_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): CY4PR12MB181316A0DC0FC83741C2D887F7940-rpdhrqHFk05Nhq0cRkx5WwdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#12 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi there,

Could someone give an RB or ACK? This patch has been verified on both navi12 and navi14. Thanks.

BR,
Xiaojie
________________________________
From: Deucher, Alexander <[email protected]>
Sent: Thursday, October 10, 2019 8:20 PM
To: Feng, Kenneth <[email protected]>; Yuan, Xiaojie <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Great. thanks!

Alex
________________________________
From: Feng, Kenneth <[email protected]>
Sent: Thursday, October 10, 2019 3:00 AM
To: Yuan, Xiaojie <[email protected]>; Deucher, Alexander <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: RE: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

This issue was navi10 specific and was found in May, 2019.

It was early after the asic back, then since gfxoff was removed from navi10, we didn’t really verify which firmware version started to have a fix.

For navi14/navi12, there’s no such issue at all.

Sorry for losing the track of it.

From: Yuan, Xiaojie
Sent: Thursday, October 10, 2019 1:17 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected]
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,

Xiaojie

________________________________

From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex

________________________________

From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>; Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
2.20.1

_______________________________________________
amd-gfx mailing list [email protected]<mailto:[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): BN8PR12MB3602CDCC1180499A29B4F7A389970-h6+T2+wrnx1lGJ5xs4l7kQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

#14 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

________________________________
From: Yuan, Xiaojie <[email protected]>
Sent: Friday, October 11, 2019 4:20 AM
To: Deucher, Alexander <[email protected]>; Feng, Kenneth <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi there,

Could someone give an RB or ACK? This patch has been verified on both navi12 and navi14. Thanks.

BR,
Xiaojie
________________________________
From: Deucher, Alexander <[email protected]>
Sent: Thursday, October 10, 2019 8:20 PM
To: Feng, Kenneth <[email protected]>; Yuan, Xiaojie <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Great. thanks!

Alex
________________________________
From: Feng, Kenneth <[email protected]>
Sent: Thursday, October 10, 2019 3:00 AM
To: Yuan, Xiaojie <[email protected]>; Deucher, Alexander <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: RE: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

This issue was navi10 specific and was found in May, 2019.

It was early after the asic back, then since gfxoff was removed from navi10, we didn’t really verify which firmware version started to have a fix.

For navi14/navi12, there’s no such issue at all.

Sorry for losing the track of it.

From: Yuan, Xiaojie
Sent: Thursday, October 10, 2019 1:17 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected]
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,

Xiaojie

________________________________

From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex

________________________________

From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>; Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
2.20.1

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

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

Reviewed-by
#15 lore raw

Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

In reply to a message not in the archive

________________________________
From: Feng, Kenneth <[email protected]>
Sent: Thursday, October 10, 2019 3:00 PM
To: Yuan, Xiaojie <[email protected]>; Deucher, Alexander <[email protected]>; [email protected] <[email protected]>
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>
Subject: RE: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

This issue was navi10 specific and was found in May, 2019.

It was early after the asic back, then since gfxoff was removed from navi10, we didn’t really verify which firmware version started to have a fix.

For navi14/navi12, there’s no such issue at all.

Sorry for losing the track of it.

From: Yuan, Xiaojie
Sent: Thursday, October 10, 2019 1:17 AM
To: Deucher, Alexander <[email protected]>; amd-gfx-PD4FTy7X32nrcLQh/[email protected]
Cc: Xiao, Jack <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

Hi Alex,

For now, gfxoff for navi10 is disabled by default, and I also verified on navi14 with both GFXOFF and FW_DSTATE feature bits toggled on.

Hi Kenneth / Jack,

Could you help to confirm the firmware version?

BR,

Xiaojie

________________________________

From: Deucher, Alexander <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 9:35 PM
To: Yuan, Xiaojie <[email protected]<mailto:[email protected]>>; [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>
Subject: Re: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

What version of firmware has the fix? Was it recently fixed? We should check the version if the old one may be out in the wild.

Alex

________________________________

From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org<mailto:[email protected]>> on behalf of Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Sent: Wednesday, October 9, 2019 7:08 AM
To: [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>>
Cc: Xiao, Jack <[email protected]<mailto:[email protected]>>; Wang, Kevin(Yang) <[email protected]<mailto:[email protected]>>; Zhang, Hawking <[email protected]<mailto:[email protected]>>; Quan, Evan <[email protected]<mailto:[email protected]>>; Feng, Kenneth <[email protected]<mailto:[email protected]>>; Yuan, Xiaojie <[email protected]<mailto:[email protected]>>
Subject: [PATCH 2/2] drm/amd/powerplay: re-enable FW_DSTATE feature bit

SMU firmware has fix the bug, so remove this workaround.

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +1 -4
index 44152c1f01c7..3628295469c4 100644
@@ -359,11 +359,8 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_MEM_VDDCI_SCALING_BIT)
                                 | FEATURE_MASK(FEATURE_MEM_MVDD_SCALING_BIT);
 
-       if (adev->pm.pp_feature & PP_GFXOFF_MASK) {
+       if (adev->pm.pp_feature & PP_GFXOFF_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_GFXOFF_BIT);
-               /* TODO: remove it once fw fix the bug */
-               *(uint64_t *)feature_mask &= ~FEATURE_MASK(FEATURE_FW_DSTATE_BIT);
-       }
 
         if (smu->adev->pg_flags & AMD_PG_SUPPORT_MMHUB)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_MMHUB_PG_BIT);

--
2.20.1

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

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

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

Ping ...

BR,
Xiaojie
________________________________
From: Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 9, 2019 7:08 PM
To: [email protected] <[email protected]>
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 1/2] drm/amd/powerplay: add more feature bits

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +4 -1
index 5a34d01f7f7c..44152c1f01c7 100644
@@ -337,19 +337,22 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_PPT_BIT)
                                 | FEATURE_MASK(FEATURE_TDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_EDC_BIT)
+                               | FEATURE_MASK(FEATURE_APCC_PLUS_BIT)
                                 | FEATURE_MASK(FEATURE_VR0HOT_BIT)
                                 | FEATURE_MASK(FEATURE_FAN_CONTROL_BIT)
                                 | FEATURE_MASK(FEATURE_THERMAL_BIT)
                                 | FEATURE_MASK(FEATURE_LED_DISPLAY_BIT)
                                 | FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_GFXCLK_BIT)
+                               | FEATURE_MASK(FEATURE_DS_LCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
                                 | FEATURE_MASK(FEATURE_BACO_BIT)
                                 | FEATURE_MASK(FEATURE_ACDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_SS_BIT)
                                 | FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
-                               | FEATURE_MASK(FEATURE_FW_CTF_BIT);
+                               | FEATURE_MASK(FEATURE_FW_CTF_BIT)
+                               | FEATURE_MASK(FEATURE_OUT_OF_BAND_MONITOR_BIT);
 
         if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)

--
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): BN8PR12MB3602BB4F482647F07C325E3A89940-h6+T2+wrnx1lGJ5xs4l7kQdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org

Acked-by
#18 lore raw
Quoted 48 lines · Xiaojie

Ping ...

BR,
Xiaojie
________________________________
From: Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 9, 2019 7:08 PM
To: [email protected] <[email protected]>
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 1/2] drm/amd/powerplay: add more feature bits

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +4 -2
index 5a34d01f7f7c..44152c1f01c7 100644
@@ -337,19 +337,22 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_PPT_BIT)
                                 | FEATURE_MASK(FEATURE_TDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_EDC_BIT)
+                               | FEATURE_MASK(FEATURE_APCC_PLUS_BIT)
                                 | FEATURE_MASK(FEATURE_VR0HOT_BIT)
                                 | FEATURE_MASK(FEATURE_FAN_CONTROL_BIT)
                                 | FEATURE_MASK(FEATURE_THERMAL_BIT)
                                 | FEATURE_MASK(FEATURE_LED_DISPLAY_BIT)
                                 | FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_GFXCLK_BIT)
+                               | FEATURE_MASK(FEATURE_DS_LCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
                                 | FEATURE_MASK(FEATURE_BACO_BIT)
                                 | FEATURE_MASK(FEATURE_ACDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_SS_BIT)
                                 | FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
-                               | FEATURE_MASK(FEATURE_FW_CTF_BIT);
+                               | FEATURE_MASK(FEATURE_FW_CTF_BIT)
+                               | FEATURE_MASK(FEATURE_OUT_OF_BAND_MONITOR_BIT);
 
         if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
--

2.20.1

Quoted 4 lines

_______________________________________________
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): CADnq5_MQSOscW5N2TX1jXgWGt4fyoA6-A8QPWreyEOroT_AR6Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

Reviewed-by Acked-by Alex Deucher
#20 lore raw

Best Regards,
Kevin

________________________________
From: Alex Deucher <[email protected]>
Sent: Thursday, October 10, 2019 10:33 AM
To: Yuan, Xiaojie <[email protected]>
Cc: [email protected] <[email protected]>; Xiao, Jack <[email protected]>; Quan, Evan <[email protected]>; Feng, Kenneth <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>
Subject: Re: [PATCH 1/2] drm/amd/powerplay: add more feature bits

Quoted 48 lines · Xiaojie

Ping ...

BR,
Xiaojie
________________________________
From: Yuan, Xiaojie <[email protected]>
Sent: Wednesday, October 9, 2019 7:08 PM
To: [email protected] <[email protected]>
Cc: Zhang, Hawking <[email protected]>; Xiao, Jack <[email protected]>; Feng, Kenneth <[email protected]>; Quan, Evan <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Yuan, Xiaojie <[email protected]>
Subject: [PATCH 1/2] drm/amd/powerplay: add more feature bits

---
 drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/powerplay/navi10_ppt.c +4 -2
index 5a34d01f7f7c..44152c1f01c7 100644
@@ -337,19 +337,22 @@ navi10_get_allowed_feature_mask(struct smu_context *smu,
                                 | FEATURE_MASK(FEATURE_PPT_BIT)
                                 | FEATURE_MASK(FEATURE_TDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_EDC_BIT)
+                               | FEATURE_MASK(FEATURE_APCC_PLUS_BIT)
                                 | FEATURE_MASK(FEATURE_VR0HOT_BIT)
                                 | FEATURE_MASK(FEATURE_FAN_CONTROL_BIT)
                                 | FEATURE_MASK(FEATURE_THERMAL_BIT)
                                 | FEATURE_MASK(FEATURE_LED_DISPLAY_BIT)
                                 | FEATURE_MASK(FEATURE_DPM_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_GFXCLK_BIT)
+                               | FEATURE_MASK(FEATURE_DS_LCLK_BIT)
                                 | FEATURE_MASK(FEATURE_DS_DCEFCLK_BIT)
                                 | FEATURE_MASK(FEATURE_FW_DSTATE_BIT)
                                 | FEATURE_MASK(FEATURE_BACO_BIT)
                                 | FEATURE_MASK(FEATURE_ACDC_BIT)
                                 | FEATURE_MASK(FEATURE_GFX_SS_BIT)
                                 | FEATURE_MASK(FEATURE_APCC_DFLL_BIT)
-                               | FEATURE_MASK(FEATURE_FW_CTF_BIT);
+                               | FEATURE_MASK(FEATURE_FW_CTF_BIT)
+                               | FEATURE_MASK(FEATURE_OUT_OF_BAND_MONITOR_BIT);
 
         if (adev->pm.pp_feature & PP_MCLK_DPM_MASK)
                 *(uint64_t *)feature_mask |= FEATURE_MASK(FEATURE_DPM_UCLK_BIT)
--

2.20.1

Quoted 4 lines

_______________________________________________
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