* [Bug 101528] RX460 Memory clock stays high until card is "used"
@ 2017-06-20 18:58 bugzilla-daemon
2017-06-29 17:36 ` bugzilla-daemon
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-06-20 18:58 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 1135 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
Bug ID: 101528
Summary: RX460 Memory clock stays high until card is "used"
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: sverd.johnsen@googlemail.com
linux 4.11.4
I use the IGPU on SKL and a RX460 as a dedicated card. In XOrg i turned
autobindgpu, autoaddgpu off and singlecard on. with fb fbcon=map kernel
parameter i map the linux ttys to different cards. the way i switch to the AMD
card is to vt switch and then change the input on my monitor. this works fine
and lets me login via agetty and launch a new xserver. One thing i noticed is
that until i actually do that the memory clock of the card stays high (17xx
mhz?) which makes it 5-8°C hotter and probably uses more power than it needs.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2453 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
@ 2017-06-29 17:36 ` bugzilla-daemon
2017-06-29 19:48 ` bugzilla-daemon
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-06-29 17:36 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 684 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
--- Comment #1 from Alexander Tsoy <alexander@tsoy.me> ---
Same problem with TONGA. When GPU is idle, mclk goes to its maximum. This is
easily reproducible: just turn off the monitor. I noticed this issue after
upgrade from 4.9.x kernels to 4.11.7. Maybe I'll check the mainline kernel
later and/or bisect.
# cat /sys/class/drm/card0/device/pp_dpm_mclk
0: 150Mhz
1: 300Mhz
2: 700Mhz
3: 1450Mhz *
# sensors amdgpu-\*
amdgpu-pci-0100
Adapter: PCI adapter
fan1: 2025 RPM
temp1: +47.0°C (crit = +0.0°C, hyst = +0.0°C)
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1489 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
2017-06-29 17:36 ` bugzilla-daemon
@ 2017-06-29 19:48 ` bugzilla-daemon
2017-06-29 20:14 ` bugzilla-daemon
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-06-29 19:48 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 2109 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
--- Comment #2 from Alexander Tsoy <alexander@tsoy.me> ---
I've added printing of some debug info into smu7_hwmgr.c and here what I get
before GPU enters that state:
[ 778.701843] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 778.707608] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 778.713379] AMDGPU: disable_mclk_switching: 0,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 0, mode_info.refresh_rate: 60
[ 778.748777] AMDGPU: vblank_time_us: 0, switch_limit_us: 450
[ 778.754361] AMDGPU: vblank_time_us: 0, switch_limit_us: 450
[ 778.759951] AMDGPU: disable_mclk_switching: 1,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 1, mode_info.refresh_rate: 0
For some reason if refresh_rate = 0 then vblank_time_us = 0. Shouldn't the
latter be 0xffffffff instead? So I guess the following commit is the culprit:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=09be4a5219610a6fae3215d4f51f948d6f5d2609
and the following patch should fix (or workaround?) this issue:
- if (vblank_time_us < switch_limit_us)
+ if (vblank_time_us && (vblank_time_us < switch_limit_us))
After applying it:
[ 409.588673] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 409.594427] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 409.600182] AMDGPU: disable_mclk_switching: 0,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 0, mode_info.refresh_rate: 60
[ 409.639750] AMDGPU: vblank_time_us: 0, switch_limit_us: 450
[ 409.645321] AMDGPU: vblank_time_us: 0, switch_limit_us: 450
[ 409.650917] AMDGPU: disable_mclk_switching: 0,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 0, mode_info.refresh_rate: 0
$ cat /sys/class/drm/card0/device/pp_dpm_mclk
0: 150Mhz *
1: 300Mhz
2: 700Mhz
3: 1450Mhz
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 3061 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
2017-06-29 17:36 ` bugzilla-daemon
2017-06-29 19:48 ` bugzilla-daemon
@ 2017-06-29 20:14 ` bugzilla-daemon
2017-06-29 22:14 ` bugzilla-daemon
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-06-29 20:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 309 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
--- Comment #3 from Alex Deucher <alexdeucher@gmail.com> ---
Created attachment 132358
--> https://bugs.freedesktop.org/attachment.cgi?id=132358&action=edit
possible fix
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1318 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
` (2 preceding siblings ...)
2017-06-29 20:14 ` bugzilla-daemon
@ 2017-06-29 22:14 ` bugzilla-daemon
2017-07-14 11:52 ` bugzilla-daemon
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-06-29 22:14 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 980 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
--- Comment #4 from Alexander Tsoy <alexander@tsoy.me> ---
(In reply to Alex Deucher from comment #3)
> Created attachment 132358 [details] [review]
> possible fix
This patch fixes this bug for me. Thank you!
[ 359.229187] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 359.234933] AMDGPU: vblank_time_us: 630, switch_limit_us: 450
[ 359.240684] AMDGPU: disable_mclk_switching: 0,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 0, mode_info.refresh_rate: 60
[ 359.283987] AMDGPU: vblank_time_us: 4294967295, switch_limit_us: 450
[ 359.290342] AMDGPU: vblank_time_us: 4294967295, switch_limit_us: 450
[ 359.296703] AMDGPU: disable_mclk_switching: 0,
disable_mclk_switching_for_frame_lock: 0, info.display_count: 1,
smu7_vblank_too_short: 0, mode_info.refresh_rate: 0
...
...
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 2124 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
` (3 preceding siblings ...)
2017-06-29 22:14 ` bugzilla-daemon
@ 2017-07-14 11:52 ` bugzilla-daemon
2017-07-14 11:53 ` [Bug 101528] RX460 Memory clock stays high until card / display " bugzilla-daemon
2017-08-30 15:13 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-07-14 11:52 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 306 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
--- Comment #5 from Sverd Johnsen <sverd.johnsen@googlemail.com> ---
Works for me on 4.11.10. Display off, MCLK is low and card temperature is 27°C
as expected. Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1121 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card / display is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
` (4 preceding siblings ...)
2017-07-14 11:52 ` bugzilla-daemon
@ 2017-07-14 11:53 ` bugzilla-daemon
2017-08-30 15:13 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-07-14 11:53 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 650 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
Sverd Johnsen <sverd.johnsen@googlemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Summary|RX460 Memory clock stays |RX460 Memory clock stays
|high until card is "used" |high until card / display
| |is "used"
Status|NEW |RESOLVED
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1585 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] 8+ messages in thread
* [Bug 101528] RX460 Memory clock stays high until card / display is "used"
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
` (5 preceding siblings ...)
2017-07-14 11:53 ` [Bug 101528] RX460 Memory clock stays high until card / display " bugzilla-daemon
@ 2017-08-30 15:13 ` bugzilla-daemon
6 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2017-08-30 15:13 UTC (permalink / raw)
To: dri-devel
[-- Attachment #1.1: Type: text/plain, Size: 466 bytes --]
https://bugs.freedesktop.org/show_bug.cgi?id=101528
Alexander Tsoy <alexander@tsoy.me> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://bugzilla.kernel.org
| |/show_bug.cgi?id=196615
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #1.2: Type: text/html, Size: 1172 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] 8+ messages in thread
end of thread, other threads:[~2017-08-30 15:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-20 18:58 [Bug 101528] RX460 Memory clock stays high until card is "used" bugzilla-daemon
2017-06-29 17:36 ` bugzilla-daemon
2017-06-29 19:48 ` bugzilla-daemon
2017-06-29 20:14 ` bugzilla-daemon
2017-06-29 22:14 ` bugzilla-daemon
2017-07-14 11:52 ` bugzilla-daemon
2017-07-14 11:53 ` [Bug 101528] RX460 Memory clock stays high until card / display " bugzilla-daemon
2017-08-30 15:13 ` 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.