All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 110347] pp_od_clk_voltage mV cap ignored
@ 2019-04-07 12:01 bugzilla-daemon
  2019-04-07 12:27 ` bugzilla-daemon
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-04-07 12:01 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 2037 bytes --]

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

            Bug ID: 110347
           Summary: pp_od_clk_voltage mV cap ignored
           Product: DRI
           Version: XOrg git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: bednarczyk.pawel@outlook.com

Hi all,

I have a Gigabyte Radeon RX Vega 64 GAMING OC 8GB and I have been playing with
undervolting/overclocking the card for a better performance/power draw ratio.

I have set the voltages/frequency as follows:
https://gist.github.com/Bednar87/eeeee4fea34b03b96b2833e2900d3405 with voltage
capped @ 950V

Now of course prior to doing that I added the amdgpu.ppffeaturemask parameter
to the boot line with value 0xfffd7fff.

Looking at sudo watch -n 0.5 cat /sys/kernel/debug/dri/0/amdgpu_pm_info shows
that the voltage is at 1200mV (VDDGFX). The power draw is also not reduced as
one could expect from undervolting the clocks but instead shoots up to 320W and
maintains this value under stress (50% power limit was also enabled). 

The frequency on the clocks seems to work fine and the settings seem to be
honoured but the voltage value seems to be ignored.

cat /sys/class/drm/card0/device/pp_od_clk_voltage

OD_SCLK:
0:        852Mhz        800mV
1:        991Mhz        825mV
2:       1084Mhz        850mV
3:       1138Mhz        875mV
4:       1250Mhz        900mV
5:       1370Mhz        925mV
6:       1475Mhz        950mV
7:       1575Mhz        950mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        825mV
2:        800Mhz        865mV
3:       1050Mhz        950mV
OD_RANGE:
SCLK:     852MHz       2400MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV

I am on Arch Linux kernel 5.0.6 MESA 19.0.1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 3401 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
@ 2019-04-07 12:27 ` bugzilla-daemon
  2019-04-07 18:28 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-04-07 12:27 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 541 bytes --]

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

--- Comment #1 from bednarczyk.pawel@outlook.com ---
I am able to work around the voltage issue by setting P6 frequency = P7
Frequency. In this case the voltage sits at the pre-defined value of 950mV, but
I run into another problem. Memory Pstate is stuck at 0 (167 MHZ) so the
overall performance goes down significantly. It seems there's an issue when the
card goes into P7 with respect to voltages.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1288 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
  2019-04-07 12:27 ` bugzilla-daemon
@ 2019-04-07 18:28 ` bugzilla-daemon
  2019-04-07 18:29 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-04-07 18:28 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 297 bytes --]

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

--- Comment #2 from bednarczyk.pawel@outlook.com ---
Created attachment 143887
  --> https://bugs.freedesktop.org/attachment.cgi?id=143887&action=edit
Xorg log

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1152 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
  2019-04-07 12:27 ` bugzilla-daemon
  2019-04-07 18:28 ` bugzilla-daemon
@ 2019-04-07 18:29 ` bugzilla-daemon
  2019-04-09 19:39 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-04-07 18:29 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 294 bytes --]

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

--- Comment #3 from bednarczyk.pawel@outlook.com ---
Created attachment 143888
  --> https://bugs.freedesktop.org/attachment.cgi?id=143888&action=edit
dmesg

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1143 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
                   ` (2 preceding siblings ...)
  2019-04-07 18:29 ` bugzilla-daemon
@ 2019-04-09 19:39 ` bugzilla-daemon
  2019-07-24 17:08 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-04-09 19:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 868 bytes --]

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

--- Comment #4 from bednarczyk.pawel@outlook.com ---
For whatever reason the below configuration works fine:

OD_SCLK:
0:        852Mhz        800mV
1:        979Mhz        825mV
2:       1106Mhz        850mV
3:       1233Mhz        875mV
4:       1360Mhz        900mV
5:       1485Mhz        925mV
6:       1575Mhz       1000mV
7:       1631Mhz       1050mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        825mV
2:        800Mhz        865mV
3:       1000Mhz       1000mV

Note, I am never hitting P7. Oddly enough, if I leave everything else constant
and change memory state 3 from 3: 1000Mhz 1000mV to 3: 1025Mhz 1000mV, I am
hitting the same issue with memory pstate getting stuck @ 0 (167Mhz).

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1619 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
                   ` (3 preceding siblings ...)
  2019-04-09 19:39 ` bugzilla-daemon
@ 2019-07-24 17:08 ` bugzilla-daemon
  2019-07-24 17:24 ` bugzilla-daemon
  2019-10-23 14:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-07-24 17:08 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 359 bytes --]

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

--- Comment #5 from Térence Clastres <t.clastres@gmail.com> ---
Hi, Wouldn't this change merged to linux 5.3-rc1 related to this issue? 
https://github.com/torvalds/linux/commit/7d59c41b5150d0641203f91cfcaa0f9af5999cce
?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1210 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
                   ` (4 preceding siblings ...)
  2019-07-24 17:08 ` bugzilla-daemon
@ 2019-07-24 17:24 ` bugzilla-daemon
  2019-10-23 14:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-07-24 17:24 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1506 bytes --]

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

--- Comment #6 from bednarczyk.pawel@outlook.com ---
just tried against the latest kernel git master with AMD's latest AMD GPU tree
baked on top of that and my voltage is still shooting up to 1200m when the card
raches P7:

OD_SCLK:
0:        852Mhz        800mV
1:        991Mhz        900mV
2:       1084Mhz        910mV
3:       1138Mhz        920mV
4:       1195Mhz        925mV
5:       1250Mhz        935mV
6:       1425Mhz        940mV
7:       1475Mhz        950mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        850mV
2:        800Mhz        910mV
3:       1025Mhz        950mV
OD_RANGE:
SCLK:     852MHz       2400MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV


If I cheat and set P6=P7 as follows:

OD_SCLK:
0:        852Mhz        800mV
1:        991Mhz        900mV
2:       1084Mhz        910mV
3:       1138Mhz        920mV
4:       1195Mhz        925mV
5:       1250Mhz        935mV
6:       1425Mhz        940mV
7:       1425Mhz        950mV
OD_MCLK:
0:        167Mhz        800mV
1:        500Mhz        850mV
2:        800Mhz        910mV
3:       1025Mhz        950mV
OD_RANGE:
SCLK:     852MHz       2400MHz
MCLK:     167MHz       1500MHz
VDDC:     800mV        1200mV

then voltage stays at 950mV as it should. There's a problem somewhere when the
card switches to P7.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2253 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 110347] pp_od_clk_voltage mV cap ignored
  2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
                   ` (5 preceding siblings ...)
  2019-07-24 17:24 ` bugzilla-daemon
@ 2019-10-23 14:41 ` bugzilla-daemon
  6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2019-10-23 14:41 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 572 bytes --]

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

Stefan Springer <stefanspr94@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #7 from Stefan Springer <stefanspr94@gmail.com> ---


*** This bug has been marked as a duplicate of bug 109887 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-10-23 14:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-07 12:01 [Bug 110347] pp_od_clk_voltage mV cap ignored bugzilla-daemon
2019-04-07 12:27 ` bugzilla-daemon
2019-04-07 18:28 ` bugzilla-daemon
2019-04-07 18:29 ` bugzilla-daemon
2019-04-09 19:39 ` bugzilla-daemon
2019-07-24 17:08 ` bugzilla-daemon
2019-07-24 17:24 ` bugzilla-daemon
2019-10-23 14:41 ` bugzilla-daemon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.