Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

power limit stuck? #3

Closed
venomousZealot opened this issue Feb 23, 2020 · 13 comments
Closed

power limit stuck? #3

venomousZealot opened this issue Feb 23, 2020 · 13 comments
Labels
good first issue Good for newcomers not a bug Not related to powerupp wontfix This will not be worked on

Comments

@venomousZealot
Copy link

venomousZealot commented Feb 23, 2020

On my red dragon 5700 (non-XT) power draw seems to always be 150 W, no matter what. Default value should be 170. Changing the limit with upp or sysfs-powercap has no effect whatsoever.

Changing clocks and voltages seems to work, but that's not much use with a locked power limit..

Basically I'm just asking if I'm the only one seeing this? Can anyone with a 5700(XT) change their power limit or is it stuck at a weird value for you, too?

Btw: I love powerupp! Thanks for this.

@azeam
Copy link
Owner

azeam commented Feb 23, 2020

Only have a XT so can't confirm for non-XT but for my card it does work using powerupp. There is, however, something going on with the pp table power limit setting, causing it to not be possible to set the power limit only using pp table/upp. Because of this there is a workaround in powerupp that when applying first sets the pp table power limit (to not get error for invalid value in sysfs) and then the sysfs (for 170W, one line):

echo 170000000 | sudo tee /sys/class/hwmon/$(ls -1 /sys/class/drm/card0/device/hwmon)/power1_cap

What does

cat /sys/class/hwmon/$(ls -1 /sys/class/drm/card0/device/hwmon)/power1_cap

show?

@azeam
Copy link
Owner

azeam commented Feb 23, 2020

Hmm. I re-tested this now under different kernels and it seems like something has changed. The power limits both in sysfs and the pp table are correctly applied but do indeed seem to be ignored, will try to investigate further...

@venomousZealot
Copy link
Author

What does

cat /sys/class/hwmon/$(ls -1 /sys/class/drm/card0/device/hwmon)/power1_cap

show?

It shows 170000000 after a fresh boot, which is indeed the default I also know from Windows. I have no idea why the card caps at 150W.

Thanks for looking into this so promptly.

@venomousZealot
Copy link
Author

This person is claiming that an update to the navi10 microcode broke sysfs: https://www.spinics.net/lists/amd-gfx/msg44921.html

I have tried downgrading to kernel 4.8 which should be from before that patch, but I couldn't get it to work either.
Then again I'm fairly new to all this, so I don't know.

@venomousZealot
Copy link
Author

All right, I used my brain and realized the patch affects linux-firmware and not linux.

After downgrading to https://archive.archlinux.org/packages/l/linux-firmware/linux-firmware-20191220.6871bff-1-any.pkg.tar.xz my card is correctly maxing at 170W.

Changing the limit with powerupp also works fabulously. Thanks again!

So I guess it's a driver bug.

@azeam
Copy link
Owner

azeam commented Feb 23, 2020

Perfect, thanks for the information!

@azeam azeam added good first issue Good for newcomers not a bug Not related to powerupp wontfix This will not be worked on labels Feb 26, 2020
@azeam azeam closed this as completed Feb 27, 2020
@azeam
Copy link
Owner

azeam commented Mar 18, 2020

Small update on this issue

@venomousZealot
Copy link
Author

Unfortunately, the issue persists with linux-firmware-20200421

@venomousZealot
Copy link
Author

The power limit is now stuck again at 150W even with the downgraded linux-firmware. The other settings seem to be working as good as ever.
I'm probably not going to bother with this anymore and just wait it out.

@azeam
Copy link
Owner

azeam commented May 3, 2020

According to the gitlab report it is the drivers that need changes, for me the old firmware is still working (but not the most recent), using Ubuntu 20.04 with drivers from Oibafs ppa. Maybe try getting some more recent drivers?

@venomousZealot
Copy link
Author

venomousZealot commented May 16, 2020

It seems to be working now (as of kernel 5.6.12, maybe earlier)
Hooray!

@azeam
Copy link
Owner

azeam commented May 17, 2020

Great! :)

@Shished
Copy link

Shished commented May 30, 2020

I'm on Arch, linux 5.6.15, linux-firmware 20200519, Mesa 20.0.7.
My GPU is RX5700.
I have this problem, it still persists (at least on Arch).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers not a bug Not related to powerupp wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants