dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
@ 2018-07-06 14:04 bugzilla-daemon
  2018-08-12 20:41 ` bugzilla-daemon
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-07-06 14:04 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 107141
           Summary: Manual setting of pp_dpm_sclk resets after monitor
                    off/on (rx 480)
           Product: DRI
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: DRM/AMDgpu
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: krystian.zajdel@gmail.com

Created attachment 140483
  --> https://bugs.freedesktop.org/attachment.cgi?id=140483&action=edit
dmesg

Manual setting of pp_dpm_sclk resets after monitor off/on. 

1.setting:
echo manual > /sys/class/drm/card0/device/power_dpm_force_performance_level
echo 2 > /sys/class/drm/card0/device/pp_dpm_sclk
echo 95 > /sys/class/drm/card0/device/hwmon/hwmon1/pwm1

2. checking:
cat /sys/class/drm/card0/device/pp_dpm_sclk 
0: 300Mhz 
1: 608Mhz 
2: 910Mhz *
3: 1077Mhz 
4: 1145Mhz 
5: 1191Mhz 
6: 1236Mhz 
7: 1303Mhz 

cat /sys/class/drm/card0/device/power_dpm_force_performance_level
manual

cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
91

3. switching monitor off/on

4. checking again:
cat /sys/class/drm/card0/device/pp_dpm_sclk 
0: 300Mhz 
1: 608Mhz 
2: 910Mhz 
3: 1077Mhz 
4: 1145Mhz 
5: 1191Mhz 
6: 1236Mhz 
7: 1303Mhz *

cat /sys/class/drm/card0/device/power_dpm_force_performance_level
manual

cat /sys/class/drm/card0/device/hwmon/hwmon1/pwm1
91




The card is under opencl load (blender) but the problem exists regardless of
the load.
So, the dpm_performance_level still says manual but the clock is changed to
auto again.

GPU: rx480 (MSI) connected via DisplayPort (I didn't try HDMI) 
OS: Slackware current
Affected kernels (that I've tried): 4.17.1, 4.17.2, 4.17.3, 4.18rc3,
4.18.0-rc1-custom-g6becad35ec8a-dirty

Kernels that work properly (the ones I've tried): 4.16.14, 4.16.15, 4.16.17.


It's my first bug report so I apologize in advance for any mistakes.

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

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

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

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

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

* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
  2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
@ 2018-08-12 20:41 ` bugzilla-daemon
  2018-08-12 20:43 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-08-12 20:41 UTC (permalink / raw)
  To: dri-devel


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

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

dwagner <jb5sgc1n.nya@20mm.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|medium                      |high
           Severity|normal                      |major

--- Comment #1 from dwagner <jb5sgc1n.nya@20mm.eu> ---
I can confirm this bug - and it is worse than reported. And due to other bugs,
it is not just a cosmetic annoyance.

The report only talks of "monitor off/on", but the
power_dpm_force_performance_level setting is also disregarded after any output
mode change with "xrandr --output XXX --mode YYY", and after any switch between
the console display and X11 (if the console uses another mode, which is
likely).

Also, changing power_dpm_force_performance_level to "manual" is currently the
only method to work around the long standing (1 year) crash bug reported in
https://bugs.freedesktop.org/show_bug.cgi?id=102322

But with amdgpu assuming "automatic" behaviour instead of "manual" after each
output mode change, it is difficult to keep a system stable using this
work-around.

BTW: This is bug is still present in current amd-staging-drm-next.

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

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

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

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

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

* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
  2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
  2018-08-12 20:41 ` bugzilla-daemon
@ 2018-08-12 20:43 ` bugzilla-daemon
  2018-11-02 14:06 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-08-12 20:43 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from dwagner <jb5sgc1n.nya@20mm.eu> ---
(I should mention that also screen blanking with DPMS being activated triggers
this bug.)

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

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

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

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

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

* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
  2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
  2018-08-12 20:41 ` bugzilla-daemon
  2018-08-12 20:43 ` bugzilla-daemon
@ 2018-11-02 14:06 ` bugzilla-daemon
  2019-03-17 17:19 ` bugzilla-daemon
  2019-11-19  8:42 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2018-11-02 14:06 UTC (permalink / raw)
  To: dri-devel


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

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

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tempel.julian@gmail.com

--- Comment #3 from Michel Dänzer <michel@daenzer.net> ---
*** Bug 108613 has been marked as a duplicate of this bug. ***

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

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

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

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

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

* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
  2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
                   ` (2 preceding siblings ...)
  2018-11-02 14:06 ` bugzilla-daemon
@ 2019-03-17 17:19 ` bugzilla-daemon
  2019-11-19  8:42 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2019-03-17 17:19 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Mihai Preda <mhpreda@gmail.com> ---
Please see my original report and discussion on ROCm:
https://github.com/RadeonOpenCompute/ROCm/issues/605

Basically, the manually configured sclk is reset (lost) on monitor state change
("monitor on").

As per @kentrussell's feedback there, I'm reporting this as a suspected amdgpu
issues related to power management.

I can reproduce with a recent 5.0 kernel and most recent ROCm (2.2).

~$ uname -a
Linux x2 5.0.2-050002-generic #201903131832 SMP Wed Mar 13 22:35:19 UTC 2019
x86_64 x86_64 x86_64 GNU/Linux

apt list --installed | grep rocm

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

rocm-opencl/Ubuntu 16.04,now 1.2.0-2019030702 amd64 [installed]
~$ apt list --installed | grep hsa 

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

hsa-ext-rocr-dev/Ubuntu 16.04,now 1.1.9-55-gbac2a9b amd64 [installed,automatic]
hsa-rocr-dev/Ubuntu 16.04,now 1.1.9-55-gbac2a9b amd64 [installed,automatic]
hsakmt-roct-dev/Ubuntu 16.04,now 1.0.9-121-g876627e amd64 [installed,automatic]
hsakmt-roct/Ubuntu 16.04,now 1.0.9-121-g876627e amd64 [installed,automatic]

I have reproduced this bug on a wide range of AMD GPUs. Most recently on AMD
Vega64.

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

[-- Attachment #1.2: Type: text/html, Size: 2323 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] 6+ messages in thread

* [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480)
  2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
                   ` (3 preceding siblings ...)
  2019-03-17 17:19 ` bugzilla-daemon
@ 2019-11-19  8:42 ` bugzilla-daemon
  4 siblings, 0 replies; 6+ messages in thread
From: bugzilla-daemon @ 2019-11-19  8:42 UTC (permalink / raw)
  To: dri-devel


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

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

Martin Peres <martin.peres@free.fr> changed:

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

--- Comment #5 from Martin Peres <martin.peres@free.fr> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/drm/amd/issues/441.

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

[-- Attachment #1.2: Type: text/html, Size: 2422 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] 6+ messages in thread

end of thread, other threads:[~2019-11-19  8:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-06 14:04 [Bug 107141] Manual setting of pp_dpm_sclk resets after monitor off/on (rx 480) bugzilla-daemon
2018-08-12 20:41 ` bugzilla-daemon
2018-08-12 20:43 ` bugzilla-daemon
2018-11-02 14:06 ` bugzilla-daemon
2019-03-17 17:19 ` bugzilla-daemon
2019-11-19  8:42 ` bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).