* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
@ 2019-10-20 17:11 ` bugzilla-daemon
2019-10-20 17:38 ` bugzilla-daemon
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-20 17:11 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #1 from Pelle van Gils (pelle@vangils.xyz) ---
Created attachment 285585
--> https://bugzilla.kernel.org/attachment.cgi?id=285585&action=edit
proposed patch
added proposed fix
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
2019-10-20 17:11 ` [Bug 205277] " bugzilla-daemon
@ 2019-10-20 17:38 ` bugzilla-daemon
2019-10-24 11:10 ` bugzilla-daemon
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-20 17:38 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #2 from Pelle van Gils (pelle@vangils.xyz) ---
(In reply to Pelle van Gils from comment #1)
> Created attachment 285585 [details]
> proposed patch
>
> added proposed fix
with this patch applied (and the debug patch) dmesg output is:
...
[ 107.149105] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 0 vddc:
800
[ 107.149107] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 1 vddc:
900
[ 107.149108] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 2 vddc:
910
[ 107.149109] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 3 vddc:
920
[ 107.149109] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 4 vddc:
930
[ 107.149110] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 5 vddc:
940
[ 107.149111] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 6 vddc:
950
[ 107.149112] amdgpu: [powerplay] vega10 SCLK vddc_lookup_table state: 7 vddc:
980
...
And the soc voltage under stress stays at the set value:
# cat /sys/kernel/debug/dri/0/amdgpu_pm_info
...
GFX Clocks and Power:
800 MHz (MCLK)
1541 MHz (SCLK)
1269 MHz (PSTATE_SCLK)
700 MHz (PSTATE_MCLK)
981 mV (VDDGFX)
161.0 W (average GPU)
...
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
2019-10-20 17:11 ` [Bug 205277] " bugzilla-daemon
2019-10-20 17:38 ` bugzilla-daemon
@ 2019-10-24 11:10 ` bugzilla-daemon
2019-10-24 12:27 ` bugzilla-daemon
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 11:10 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
haro41@gmx.de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |haro41@gmx.de
--- Comment #3 from haro41@gmx.de ---
Did you debug this issue? I think the problem could be outside this code.
I would outcomment the if-statement following for-loop in your proposed patch,
because otherwise 'i' points outside the array boundarys here.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (2 preceding siblings ...)
2019-10-24 11:10 ` bugzilla-daemon
@ 2019-10-24 12:27 ` bugzilla-daemon
2019-10-24 13:55 ` bugzilla-daemon
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 12:27 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
stefanspr94@gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stefanspr94@gmail.com
--- Comment #4 from stefanspr94@gmail.com ---
(In reply to haro41 from comment #3)
> Did you debug this issue? I think the problem could be outside this code.
>
> I would outcomment the if-statement following for-loop in your proposed
> patch, because otherwise 'i' points outside the array boundarys here.
I think the if statement is fine as both od_vddc_lookup_table->entries[] and
podn_vdd_dep->entries[] both hold MAX_REGULAR_DPM_NUMBER members, which is 8,
so accessing entries[7] is not out of bounds.
Btw, the patch works for me aswell. Card behaves as it should after loading my
pp_table, which was not the case before.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (3 preceding siblings ...)
2019-10-24 12:27 ` bugzilla-daemon
@ 2019-10-24 13:55 ` bugzilla-daemon
2019-10-24 14:54 ` bugzilla-daemon
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 13:55 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
Pelle van Gils (pelle@vangils.xyz) changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #285585|0 |1
is obsolete| |
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (4 preceding siblings ...)
2019-10-24 13:55 ` bugzilla-daemon
@ 2019-10-24 14:54 ` bugzilla-daemon
2019-10-24 16:03 ` bugzilla-daemon
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 14:54 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #5 from haro41@gmx.de ---
In the (now obsolete) proposed code, the variable 'i' will become 8, when the
for-loop is done. The following if-statement will access something outside the
array memory.
Something like this may work without problems, but it can trigger a new problem
too.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (5 preceding siblings ...)
2019-10-24 14:54 ` bugzilla-daemon
@ 2019-10-24 16:03 ` bugzilla-daemon
2019-10-24 16:10 ` bugzilla-daemon
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 16:03 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #6 from Pelle van Gils (pelle@vangils.xyz) ---
Created attachment 285633
--> https://bugzilla.kernel.org/attachment.cgi?id=285633&action=edit
proposed patch v2
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (6 preceding siblings ...)
2019-10-24 16:03 ` bugzilla-daemon
@ 2019-10-24 16:10 ` bugzilla-daemon
2019-10-24 16:11 ` bugzilla-daemon
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 16:10 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #7 from Pelle van Gils (pelle@vangils.xyz) ---
(In reply to haro41 from comment #3)
> Did you debug this issue? I think the problem could be outside this code.
>
> I would outcomment the if-statement following for-loop in your proposed
> patch, because otherwise 'i' points outside the array boundarys here.
Thank you for your reply. I have uploaded a new patch with your suggestion.
It looks to me now that this is not so much a bug but intended beviour. I would
still like to see this changed though.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (7 preceding siblings ...)
2019-10-24 16:10 ` bugzilla-daemon
@ 2019-10-24 16:11 ` bugzilla-daemon
2019-10-24 19:17 ` bugzilla-daemon
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 16:11 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
Pelle van Gils (pelle@vangils.xyz) changed:
What |Removed |Added
----------------------------------------------------------------------------
Kernel Version|5.4.0-rc3 |5.4.0-rc4
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (8 preceding siblings ...)
2019-10-24 16:11 ` bugzilla-daemon
@ 2019-10-24 19:17 ` bugzilla-daemon
2019-10-28 13:57 ` bugzilla-daemon
2019-10-31 5:54 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-24 19:17 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
--- Comment #8 from haro41@gmx.de ---
I have to agree, the code in its current state, only allows overvolting for dpm
level 7.
Since the highest performance level is the most interesting one, if it comes to
undervolting, energy saving and performance maximization, that should be fixed
asap.
Thanks for your effort, btw.
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (9 preceding siblings ...)
2019-10-24 19:17 ` bugzilla-daemon
@ 2019-10-28 13:57 ` bugzilla-daemon
2019-10-31 5:54 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-28 13:57 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
Alex Deucher (alexdeucher@gmail.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alexdeucher@gmail.com
--- Comment #9 from Alex Deucher (alexdeucher@gmail.com) ---
(In reply to Pelle van Gils from comment #6)
> Created attachment 285633 [details]
> proposed patch v2
Applied. thanks!
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread* [Bug 205277] [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive.
2019-10-20 15:59 [Bug 205277] New: [amd powerplay] vega10: soc voltage for power state 7 is not changed by overdrive bugzilla-daemon
` (10 preceding siblings ...)
2019-10-28 13:57 ` bugzilla-daemon
@ 2019-10-31 5:54 ` bugzilla-daemon
11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-10-31 5:54 UTC (permalink / raw)
To: dri-devel
https://bugzilla.kernel.org/show_bug.cgi?id=205277
Pelle van Gils (pelle@vangils.xyz) changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |CODE_FIX
--
You are receiving this mail because:
You are watching the assignee of the bug.
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 13+ messages in thread