Skip to contentSkip to conversation

New: Overdrive on AMDGPU does not allow clocks above official clocks.

Bug 204391 [email protected] 1 participant 6 messages Jul 31, 2019 – Oct 27, 2019

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=204391

Bug ID: 204391
Summary: Overdrive on AMDGPU does not allow clocks above
official clocks.
Product: Drivers
Version: 2.5
Kernel Version: 5.3rc1
Hardware: All
OS: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Video(DRI - non Intel)
Assignee: [email protected]
Reporter: [email protected]
Regression: No

Created attachment 284063
--> https://bugzilla.kernel.org/attachment.cgi?id=284063&action=edit
dmesg with Overdrive enabled.

As the title of the bug says overdrive has a range that it operates in and thats good to not allow users to overclock the card to its death but there is a bug when overdrive is enabled it does not allow clocks for core or memory to be outside official clocks.
I have RX560X with 1275 Mhz on Core and 1450Mhz on Memory and when i enable overdrive i can increase voltage suplied to core or memory but im not allowed to set any clock above the official clocks.
If we try to do so it returns invalid argument as the file expected the clock to be in range.

[  914.519919] amdgpu: [powerplay] OD engine clock is out of range [214 - 1275]
MHz
[ 1096.096840] amdgpu: [powerplay] OD memory clock is out of range [300 - 1450]

MHz

I know for sure that this is not an GPU BIOS issue as in Windows we can indeed overclock the GPU way above the official clocks with some nice FPS boost in all games so the overclock there works.

But whats weird is also that if we disable Overdrive im allowed to overclock Core frequency but im not able to overclock memory frequency.

I think as im looking at the dmesg that it may have to do something with this:

[  383.163783] amdgpu: [powerplay] pp_dpm_get_sclk_od was not implemented.
[  383.163858] amdgpu: [powerplay] pp_dpm_get_mclk_od was not implemented.

And indeed when trying to look into that file it does not exist anywhere. Only file that exists that is close to it is pp_dpm_mclk/sclk.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#1 lore raw

[Bug 204391] Overdrive on AMDGPU does not allow clocks above official clocks.

https://bugzilla.kernel.org/show_bug.cgi?id=204391

--- Comment #1 from Haxk20 ([email protected]) --- I forgot to add that this is an issue even before 5.3

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#2 lore raw

[Bug 204391] Overdrive on AMDGPU does not allow clocks above official clocks.

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=204391

--- Comment #2 from Haxk20 ([email protected]) ---
Can somebody look at this please ? I know this isnt experience breaking but when the driver has support for overclocking then it should at least work.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#3 lore raw

[Bug 204391] Overdrive on AMDGPU does not allow clocks above official clocks.

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=204391

--- Comment #3 from Haxk20 ([email protected]) ---
Also to add to this pp_sclk_od is exposed even tho overdrive isnt enabled and indeed im allowed to overclock the GPU core and i indeed see the Core running at that frequency.
But i mean Core overclocking is nice and all but without memory OC its useless.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#4 lore raw

[Bug 204391] Overdrive on AMDGPU does not allow clocks above official clocks.

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=204391

--- Comment #4 from Haxk20 ([email protected]) ---
After looking at OverDrive code it looks like this is PP table issue of my GPU VBIOS as it doesnt have OD range and so it cant find it thus only underclocking is allowed. Hardcoding the range in the kernel is surely a huge hack but indeed works and im able to overclock the card.
It would be useful to have an kernel argument that we can pass trough GRUB that would just disable this check as some laptops dont have this table.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#5 lore raw

[Bug 204391] Overdrive on AMDGPU does not allow clocks above official clocks.

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=204391

Haxk20 ([email protected]) changed:

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

             Status|NEW                         |RESOLVED
         Resolution|---                         |WILL_NOT_FIX
Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel