From: bugzilla-daemon@freedesktop.org Subject: [Bug 97260] R9 290 low performance in Linux 4.7 Date: Thu, 11 Aug 2016 17:07:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0265067875==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 4052A6E986 for ; Thu, 11 Aug 2016 17:07:10 +0000 (UTC) In-Reply-To: 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 --===============0265067875== Content-Type: multipart/alternative; boundary="14709352303.dd4a36da.30269"; charset="UTF-8" --14709352303.dd4a36da.30269 Date: Thu, 11 Aug 2016 17:07:10 +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=3D97260 --- Comment #10 from Kai --- (In reply to Alex Deucher from comment #9) > (In reply to Kai from comment #8) > > (In reply to Alex Deucher from comment #6) > > > Does reverting 5e031d9fe8b0741f11d49667dfc3ebf5454121fd (drm/radeon/p= m: > > > update current crtc info after setting the powerstate) help? > >=20 > > No, it does not for me (I fetched the patch from > > > ?id=3D5e031d9fe8b0741f11d49667dfc3ebf5454121fd> and applied it with pat= ch -p1 > > -R < /path/to.patch). The Talos Principle is still down to 43 FPS, have= n't > > tested XCOM 2 or anything else. > >=20 > > Btw, not sure if it can help tracking down the cause: the GPU doesn't s= eem > > to go into its highest performance mode or at least the fan is not reac= hing > > its highest RPM when I'm on 4.7.0 (with or without the revert). >=20 > You can check by running apps and monitoring the content of > /sys/kernel/debug/dri/64/radeon_pm_info > Do you see it scaling up under load on the problematic kernels? Does > forcing the clocks to high via sysfs work ok? While the clocks *do* scale up on 4.7.0, it doesn't go as high as 4.6.4. On 4.6.4 I'm reaching the maximum clocks for my GPU (power level avg sclk: 98000 mclk: 125000). With 4.7.0 the highest I'm seeing is "power level avg= =20=20=20 sclk: 90843 mclk: 125000" and the overall level is way lower (lots of sclk values starting with a 3) compared to 4.6.4 where most values are > 60000 f= or sclk. Note: I used watch to dump /sys/kernel/debug/dri/64/radeon_pm_info every fi= ve seconds to a file. Between runs the actual numbers logged vary, but the gen= eral trend stays the same. Writing "high" to /sys/class/drm/card0/device/power_dpm_force_performance_l= evel locks the clock indeed to the highest values (sclk: 98000 mclk: 125000) on 4.7.0 and recovers almost all of the lost performance. There's still a small hit to performance. Note: I've only tested "The Talos Principle" so far, if you need me to test XCOM 2 or other titles as well, let me know. Do you still need the bisect? --=20 You are receiving this mail because: You are the assignee for the bug.= --14709352303.dd4a36da.30269 Date: Thu, 11 Aug 2016 17:07:10 +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

Commen= t # 10 on bug 97260<= /a> from Kai
(In reply to Alex Deucher from comment #9)
> (In reply to Kai from comment #8)
> > (In reply to Alex Deucher from comment #6)
> > > Does reverting 5e031d9fe8b0741f11d49667dfc3ebf5454121fd (drm=
/radeon/pm:
> > > update current crtc info after setting the powerstate) help?
> >=20
> > No, it does not for me (I fetched the patch from
> > <https://git.kernel.org/cgit/linux/kernel/git/torvalds=
/linux.git/patch/
> > ?id=3D5e031d9fe8b0741f11d49667dfc3ebf5454121fd> and applied it=
 with patch -p1
> > -R < /path/to.patch). The Talos Principle is still down to 43 =
FPS, haven't
> > tested XCOM 2 or anything else.
> >=20
> > Btw, not sure if it can help tracking down the cause: the GPU doe=
sn't seem
> > to go into its highest performance mode or at least the fan is no=
t reaching
> > its highest RPM when I'm on 4.7.0 (with or without the revert).
>=20
> You can check by running apps and monitoring the content of
> /sys/kernel/debug/dri/64/radeon_pm_info
> Do you see it scaling up under load on the problematic kernels?  Does
> forcing the clocks to high via sysfs work ok?

While the clocks *do* scale up on 4.7.0, it doesn't go as high as 4.6.4. On
4.6.4 I'm reaching the maximum clocks for my GPU (power level avg    sclk:
98000 mclk: 125000). With 4.7.0 the highest I'm seeing is "power level=
 avg=20=20=20
sclk: 90843 mclk: 125000" and the overall level is way lower (lots of =
sclk
values starting with a 3) compared to 4.6.4 where most values are > 6000=
0 for
sclk.

Note: I used watch to dump /sys/kernel/debug/dri/64/radeon_pm_info every fi=
ve
seconds to a file. Between runs the actual numbers logged vary, but the gen=
eral
trend stays the same.

Writing "high" to /sys/class/drm/card0/device/power_dpm_force_per=
formance_level
locks the clock indeed to the highest values (sclk: 98000 mclk: 125000) on
4.7.0 and recovers almost all of the lost performance. There's still a small
hit to performance.

Note: I've only tested "The Talos Principle" so far, if you need =
me to test
XCOM 2 or other titles as well, let me know.

Do you still need the bisect?


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