MangoHud icon indicating copy to clipboard operation
MangoHud copied to clipboard

MangoHud always displays Throttling Power

Open fuzunspm opened this issue 2 years ago • 9 comments

Even with very very low load it always displays Throttling Power

Below screenshot was taken from a main menu with fps limit set to 60. it should not display the throttling power text here. It also displays Temp text from time to time for half a second but my gpu temps never exceeds 58 C degree

image

fuzunspm avatar May 06 '22 20:05 fuzunspm

Is it nvidia or amd?

flightlessmango avatar May 07 '22 09:05 flightlessmango

Both are amd R5 2600 6700XT

fuzunspm avatar May 07 '22 10:05 fuzunspm

Throttling is only for GPU currently. How are you verifying that you're not actually power throttled?

flightlessmango avatar May 07 '22 10:05 flightlessmango

Total power draw is almost half of what I got. Other than that I don’t understand how main menu or even limited glxgears could cause power throttling. I don’t have performance problems in games either

fuzunspm avatar May 07 '22 10:05 fuzunspm

A power throttling case is lowering the power to save on power in low use scenarios

flightlessmango avatar May 07 '22 11:05 flightlessmango

A power throttling case is lowering the power to save on power in low use scenarios

I also have a 6700XT and see the same thing, so is this normal behavior?

rowbawts avatar May 09 '22 14:05 rowbawts

I can't say it's not normal behavior, but I am fairly sure that there isn't a bug in mangohud. I'm leaning towards it being normal or there is a bug in the amdgpu kernel driver

flightlessmango avatar May 09 '22 16:05 flightlessmango

I can't say it's not normal behavior, but I am fairly sure that there isn't a bug in mangohud. I'm leaning towards it being normal or there is a bug in the amdgpu kernel driver

Yeah I'm not sure either as I've only ever used this card in this OS so since I have nothing to compare against I wouldn't know if it's impeding my performance but as everything I run works great it's fine just a curious thing I noticed.

rowbawts avatar May 09 '22 19:05 rowbawts

Same problem with a RX 6700 XT Both throttling power & temp showing even in menu screens

nyan1337 avatar Aug 12 '22 15:08 nyan1337

Same problem with a RX 6700 XT Both throttling power & temp showing even in menu screens

Exactly the same here with an RX 6750 XT. Fedora 36 Kernel 5.19.15.

Daniel-Salvado avatar Oct 14 '22 20:10 Daniel-Salvado

Kernel 5.12.19 showed it like expected, kernel 6.1.2 always shows it.

MCPO-Spartan-117 avatar Jan 02 '23 02:01 MCPO-Spartan-117

Same here, RX 6600 on Nobara (kernel 6.0.14).

Dim-P avatar Jan 15 '23 20:01 Dim-P

I have no reason to believe this is an issue with mangohud and rather an amdgpu issue. It would be great if someone could make an issue over there https://gitlab.freedesktop.org/drm/amd/-/issues

flightlessmango avatar Jan 16 '23 14:01 flightlessmango

happens on an rtx 3050ti laptop too

youmukonpaku1337 avatar Feb 09 '23 22:02 youmukonpaku1337

happens on an rtx 3050ti laptop too

same with rtx3060 laptop

awsms avatar Mar 25 '23 15:03 awsms

same with rtx3060 laptop

mrphs7019 avatar Jul 14 '23 08:07 mrphs7019

I have created an issue in drm/amd for this issue.

https://gitlab.freedesktop.org/drm/amd/-/issues/2720

Umio-Yasuno avatar Jul 27 '23 07:07 Umio-Yasuno

AMDGPU patch for Navi22/Navi23/Navi24. But I tested only on Navi23.

diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
index 85d53597e..548d25cf3 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c
@@ -578,7 +578,9 @@ static int sienna_cichlid_tables_init(struct smu_context *smu)
 	return -ENOMEM;
 }
 
-static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *smu)
+static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *smu,
+							   bool use_metrics_v3,
+							   bool use_metrics_v2)
 {
 	struct smu_table_context *smu_table= &smu->smu_table;
 	SmuMetricsExternal_t *metrics_ext =
@@ -586,13 +588,11 @@ static uint32_t sienna_cichlid_get_throttler_status_locked(struct smu_context *s
 	uint32_t throttler_status = 0;
 	int i;
 
-	if ((smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 7)) &&
-	     (smu->smc_fw_version >= 0x3A4900)) {
+	if (use_metrics_v3) {
 		for (i = 0; i < THROTTLER_COUNT; i++)
 			throttler_status |=
 				(metrics_ext->SmuMetrics_V3.ThrottlingPercentage[i] ? 1U << i : 0);
-	} else if ((smu->adev->ip_versions[MP1_HWIP][0] == IP_VERSION(11, 0, 7)) &&
-	     (smu->smc_fw_version >= 0x3A4300)) {
+	} else if (use_metrics_v2) {
 		for (i = 0; i < THROTTLER_COUNT; i++)
 			throttler_status |=
 				(metrics_ext->SmuMetrics_V2.ThrottlingPercentage[i] ? 1U << i : 0);
@@ -854,7 +854,7 @@ static int sienna_cichlid_get_smu_metrics_data(struct smu_context *smu,
 			metrics->TemperatureVrSoc) * SMU_TEMPERATURE_UNITS_PER_CENTIGRADES;
 		break;
 	case METRICS_THROTTLER_STATUS:
-		*value = sienna_cichlid_get_throttler_status_locked(smu);
+		*value = sienna_cichlid_get_throttler_status_locked(smu, use_metrics_v3, use_metrics_v2);
 		break;
 	case METRICS_CURR_FANSPEED:
 		*value = use_metrics_v3 ? metrics_v3->CurrFanSpeed :
@@ -4056,7 +4056,7 @@ static ssize_t sienna_cichlid_get_gpu_metrics(struct smu_context *smu,
 	gpu_metrics->current_dclk1 = use_metrics_v3 ? metrics_v3->CurrClock[PPCLK_DCLK_1] :
 		use_metrics_v2 ? metrics_v2->CurrClock[PPCLK_DCLK_1] : metrics->CurrClock[PPCLK_DCLK_1];
 
-	gpu_metrics->throttle_status = sienna_cichlid_get_throttler_status_locked(smu);
+	gpu_metrics->throttle_status = sienna_cichlid_get_throttler_status_locked(smu, use_metrics_v3, use_metrics_v2);
 	gpu_metrics->indep_throttle_status =
 			smu_cmn_get_indep_throttler_status(gpu_metrics->throttle_status,
 							   sienna_cichlid_throttler_map);

Umio-Yasuno avatar Jul 27 '23 10:07 Umio-Yasuno

The AMDGPU patch has been merged into Linux Kernel v6.1.47 and v6.4.12 .

Umio-Yasuno avatar Aug 24 '23 10:08 Umio-Yasuno

Thank you @Umio-Yasuno :tada: I can confirm throttling indicators disappeared on 6.1.47 for me (6600XT).

image

czak avatar Aug 25 '23 08:08 czak

@mrphs7019 @youmukonpaku1337 i assume you guys are still experiencing too?

awsms avatar Sep 20 '23 00:09 awsms

yeep i am

youmukonpaku1337 avatar Sep 20 '23 06:09 youmukonpaku1337

I'm nowhere near as good as yasuno when it comes to programming, so I'd have no idea what to patch in the nvidia-drm module. if someone experienced with NVIDIA's stuff wants to have a look at it....

awsms avatar Sep 20 '23 14:09 awsms

@awsms idk i deleted mangohud

mrphs7019 avatar Sep 24 '23 06:09 mrphs7019

@mrphs7019 @youmukonpaku1337 the reason was... my vBIOS is throttled to 80W on Linux. i flashed a vBIOS from another manufacturer and the issue is gone. I highly suspect that's the case for u too, hence the @ https://old.reddit.com/r/overclocking/comments/zkrofg/a_guide_to_overclocking_the_lenovo_legion_5_on/

awsms avatar Oct 13 '23 21:10 awsms

nope. my vbios is 130w, highest for this card

youmukonpaku1337 avatar Oct 14 '23 15:10 youmukonpaku1337