From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 97362] Low performance after suspend on RX 480 Date: Tue, 16 Aug 2016 10:32:53 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1162247627==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 323E66E63A for ; Tue, 16 Aug 2016 10:32:53 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1162247627== Content-Type: multipart/alternative; boundary="14713435730.F2F27.25877"; charset="UTF-8" --14713435730.F2F27.25877 Date: Tue, 16 Aug 2016 10:32:53 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D97362 Bug ID: 97362 Summary: Low performance after suspend on RX 480 Product: DRI Version: unspecified Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: haagch@frickel.club Created attachment 125811 --> https://bugs.freedesktop.org/attachment.cgi?id=3D125811&action=3Dedit dmesg 01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Polaris10] (rev c7) Tried on vanilla Linux 4.7 and 4.8-rc2 with the async pageflip commit rever= ted. I'm testing with a very simple directx9 application (without nine) because = the impact is extremely obvious with wine: http://www.codesampler.com/dx9src/dx9src_1.htm#dx9_initialization Before suspending it runs with 5000+ FPS, after suspending it runs with <10= 00. Also, if you keep the mouse pointer over the window moving, it will have a = very small performance drop before suspending and a huuuge performance drop after suspending. I looked at the powerplay values in sysfs while that application is running= in wine and before suspend, pcie is 0: 2.5GB, x8=20 1: 8.0GB, x16 * and sclk is 0: 300Mhz=20 1: 608Mhz=20 2: 910Mhz=20 3: 1077Mhz=20 4: 1145Mhz=20 5: 1191Mhz=20 6: 1236Mhz=20 7: 1288Mhz * after suspend it's pcie 0: 2.5GB, x8 * 1: 8.0GB, x16=20 and sclk 0: 300Mhz=20 1: 608Mhz * 2: 910Mhz=20 3: 1077Mhz=20 4: 1145Mhz=20 5: 1191Mhz=20 6: 1236Mhz=20 7: 1288Mhz=20 mclk is 0: 300Mhz=20 1: 2000Mhz * in both cases. I then tried echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level and the sclk clock goes to max and pcie goes to 16x again, but the performa= nce of the application does NOT increase so it looks like the low clocks are a symptom of whatever causes low performance. dmesg from 4.8-rc2 attached, shows some errors: [ 574.369317]=20 failed to send message 5e ret is 0=20 [ 574.369317] [drm:amdgpu_vce_ring_test_ring [amdgpu]] *ERROR* amdgpu: rin= g 12 test failed [ 574.369317] [drm:amdgpu_resume [amdgpu]] *ERROR* resume of IP block failed -110 [ 574.369317] [drm:amdgpu_resume_kms [amdgpu]] *ERROR* amdgpu_resume failed (-110). --=20 You are receiving this mail because: You are the assignee for the bug.= --14713435730.F2F27.25877 Date: Tue, 16 Aug 2016 10:32:53 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated
Bug ID 97362
Summary Low performance after suspend on RX 480
Product DRI
Version unspecified
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter haagch@frickel.club

Created attachment 125811 [details]<=
/span>
dmesg

01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI]
Ellesmere [Polaris10] (rev c7)

Tried on vanilla Linux 4.7 and 4.8-rc2 with the async pageflip commit rever=
ted.

I'm testing with a very simple directx9 application (without nine) because =
the
impact is extremely obvious with wine:
http://www.codesampler.com/dx9src/dx9src_1.htm#dx9_initialization

Before suspending it runs with 5000+ FPS, after suspending it runs with <=
;1000.
Also, if you keep the mouse pointer over the window moving, it will have a =
very
small performance drop before suspending and a huuuge performance drop after
suspending.

I looked at the powerplay values in sysfs while that application is running=
 in
wine and before suspend,
pcie is
0: 2.5GB, x8=20
1: 8.0GB, x16 *
and sclk is
0: 300Mhz=20
1: 608Mhz=20
2: 910Mhz=20
3: 1077Mhz=20
4: 1145Mhz=20
5: 1191Mhz=20
6: 1236Mhz=20
7: 1288Mhz *

after suspend it's
pcie
0: 2.5GB, x8 *
1: 8.0GB, x16=20
and sclk
0: 300Mhz=20
1: 608Mhz *
2: 910Mhz=20
3: 1077Mhz=20
4: 1145Mhz=20
5: 1191Mhz=20
6: 1236Mhz=20
7: 1288Mhz=20


mclk is
0: 300Mhz=20
1: 2000Mhz *
in both cases.

I then tried
echo high > /sys/class/drm/card0/device/power_dpm_force_performance_level
and the sclk clock goes to max and pcie goes to 16x again, but the performa=
nce
of the application does NOT increase so it looks like the low clocks are a
symptom of whatever causes low performance.

dmesg from 4.8-rc2 attached, shows some errors:

[  574.369317]=20
                failed to send message 5e ret is 0=20


[  574.369317] [drm:amdgpu_vce_ring_test_ring [amdgpu]] *ERROR* amdgpu: rin=
g 12
test failed
[  574.369317] [drm:amdgpu_resume [amdgpu]] *ERROR* resume of IP block
<vce_v3_0> failed -110
[  574.369317] [drm:amdgpu_resume_kms [amdgpu]] *ERROR* amdgpu_resume failed
(-110).


You are receiving this mail because:
  • You are the assignee for the bug.
= --14713435730.F2F27.25877-- --===============1162247627== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1162247627==--