Skip to contentSkip to conversation

Enabling pp_od_clk_voltage causes the gpu to be locked to lowest power level until some value is written to pp_od_clk_voltage and then the pp_od_clk_voltage is reset.

Bug 108015 [email protected] 1 participant 9 messages Sep 22, 2018 – Jan 18, 2019

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108015

Bug ID: 108015
Summary: Enabling pp_od_clk_voltage causes the gpu to be locked
to lowest power level until some value is written to pp_od_clk_voltage and then the pp_od_clk_voltage is reset.
Product: DRI
Version: unspecified
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: DRM/AMDgpu
Assignee: [email protected]
Reporter: [email protected]

After enabling the overclocking by adding amdgpu.ppfeaturemask=0xffffffff kernel boot parameter I noticed that my GPU works very slow. I noticed by reading /sys/kernel/debug/dri/1/amdgpu_pm_info that the card fails to go to higher power states.

Here are the screenshots and the way I found to temporarily fix it. I am using Witcher 3 on Steam Proton 3.7.6 as a performance measurement:

https://i.imgur.com/HI6iakk.jpg
1). Initial state. The game is running around 15-20 frames. The pp_od_clk_voltage table seems correct but the power consumption stays around 15 Watts and the clock is stuck at 300 MHz

https://i.imgur.com/LInHonF.jpg
2). Trying to reset it straight away is not helping.

https://i.imgur.com/klkGSoA.jpg
3). Writing a value in to that is already on the table of pp_od_clk_voltage is also not helping.

https://i.imgur.com/BH8ZwIr.jpg
4). Setting a value slightly different than will actually allow the GPU to change its power state to a higher level. However, it is still not fully powered as it would be without overclocking enabled. The frame rate is only 20-30 and the power is around 80 Watts.

https://i.imgur.com/x1Mipja.jpg
5). Resetting the values now will fully enable the card. Frame rate goes to 100 frames per second and power consumption to 100 Watts.

Here are more information that might be useful:

GPU: Sapphire AMD RX480 Nitro
Kernel: 4.18 ZEN

Thank you for your work on the AMDGPU driver.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #1 from [email protected] ---
I just discovered that "echo 'c' > pp_od_clk_voltage" needs to be run twice before it takes effect. I will retest my sequence tomorrow.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#2 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #2 from [email protected] ---
After doing some more tests, it seems like changing the clock frequency only takes 1 commit but voltage 2.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#3 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #3 from [email protected] ---
Created attachment 141735
--> https://bugs.freedesktop.org/attachment.cgi?id=141735&action=edit
Screenshot 1

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #4 from [email protected] ---
Created attachment 141736
--> https://bugs.freedesktop.org/attachment.cgi?id=141736&action=edit
Screenshot 2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #5 from [email protected] ---
Created attachment 141737
--> https://bugs.freedesktop.org/attachment.cgi?id=141737&action=edit
Screenshot 3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #6 from [email protected] ---
Created attachment 141738
--> https://bugs.freedesktop.org/attachment.cgi?id=141738&action=edit
Screenshot 4

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

--- Comment #7 from [email protected] ---
Created attachment 141739
--> https://bugs.freedesktop.org/attachment.cgi?id=141739&action=edit
Screenshot 5

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=108015

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #8 from [email protected] ---
Seems to be fixed on the recent kernels.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

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