From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101182] Reading amdgpu_pm_info causes stutter with Linux 4.12-rc Date: Thu, 25 May 2017 06:59:12 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0228703849==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 82BD46E8AD for ; Thu, 25 May 2017 06:59:12 +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 --===============0228703849== Content-Type: multipart/alternative; boundary="14956955520.26622d.19995"; charset="UTF-8" --14956955520.26622d.19995 Date: Thu, 25 May 2017 06:59:12 +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=3D101182 Bug ID: 101182 Summary: Reading amdgpu_pm_info causes stutter with Linux 4.12-rc Product: DRI Version: DRI git Hardware: Other OS: All Status: NEW Severity: normal Priority: medium Component: DRM/AMDgpu Assignee: dri-devel@lists.freedesktop.org Reporter: haagch@frickel.club A stutter once wouldn't be so bad, but apps like radeon-profile repeatedly = read this file, so rendering stutters constantly. You will have a hard time spotting it in the average fps graph, but with my (still very inaccurate) low-fps patch at https://github.com/ChristophHaag/mesa-mesa/commit/e097b91a85c85718576589402= e075e7f5668e68c it's very visible that there is at least one frame that's delayed a lot each time amdgpu_pm_info is read. The GPU load does give an independent hint that something is wrong though. To reproduce: run glxgears run sudo watch --interval=3D.3 cat /sys/kernel/debug/dri/0/amdgpu_pm_info observe stuttering in glxgears. RX 480, Linux 4.12-rc2. I haven't tested 4.11 to confirm, but if I remember correctly, this happens= in mainline since 4.12. --=20 You are receiving this mail because: You are the assignee for the bug.= --14956955520.26622d.19995 Date: Thu, 25 May 2017 06:59:12 +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 101182
Summary Reading amdgpu_pm_info causes stutter with Linux 4.12-rc
Product DRI
Version DRI git
Hardware Other
OS All
Status NEW
Severity normal
Priority medium
Component DRM/AMDgpu
Assignee dri-devel@lists.freedesktop.org
Reporter haagch@frickel.club

A stutter once wouldn't be so bad, but apps like radeon-profil=
e repeatedly read
this file, so rendering stutters constantly.

You will have a hard time spotting it in the average fps graph, but with my
(still very inaccurate) low-fps patch at
https://github.com/ChristophHaag/mesa-mesa/comm=
it/e097b91a85c85718576589402e075e7f5668e68c
it's very visible that there is at least one frame that's delayed a lot each
time amdgpu_pm_info is read.
The GPU load does give an independent hint that something is wrong though.

To reproduce:
run  glxgears
run  sudo watch --interval=3D.3 cat /sys/kernel/debug/dri/0/amdgpu_pm_info
observe stuttering in glxgears.

RX 480, Linux 4.12-rc2.
I haven't tested 4.11 to confirm, but if I remember correctly, this happens=
 in
mainline since 4.12.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14956955520.26622d.19995-- --===============0228703849== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0228703849==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101182] Reading amdgpu_pm_info causes stutter with Linux 4.12-rc Date: Thu, 25 May 2017 07:00:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0316881298==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id D335C6E8B0 for ; Thu, 25 May 2017 07:00:35 +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 --===============0316881298== Content-Type: multipart/alternative; boundary="14956956350.eA27306.20034"; charset="UTF-8" --14956956350.eA27306.20034 Date: Thu, 25 May 2017 07:00:35 +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=3D101182 --- Comment #1 from Christoph Haag --- Created attachment 131501 --> https://bugs.freedesktop.org/attachment.cgi?id=3D131501&action=3Dedit screenshot showing the stuttering in the HUD --=20 You are receiving this mail because: You are the assignee for the bug.= --14956956350.eA27306.20034 Date: Thu, 25 May 2017 07:00:35 +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


You are receiving this mail because:
  • You are the assignee for the bug.
= --14956956350.eA27306.20034-- --===============0316881298== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0316881298==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101182] Reading amdgpu_pm_info causes stutter with Linux 4.12-rc Date: Thu, 25 May 2017 13:16:18 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2003772749==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 96D0E6E9AE for ; Thu, 25 May 2017 13:16:18 +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 --===============2003772749== Content-Type: multipart/alternative; boundary="14957181781.6F3f45CDc.695"; charset="UTF-8" --14957181781.6F3f45CDc.695 Date: Thu, 25 May 2017 13:16:18 +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=3D101182 Alex Deucher changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WONTFIX --- Comment #2 from Alex Deucher --- amdgpu_pm_info exposes power statistics now which causes a small delay to sample the power usage. If you want to poll the current clocks, there is an ioctl interface to query this information. --=20 You are receiving this mail because: You are the assignee for the bug.= --14957181781.6F3f45CDc.695 Date: Thu, 25 May 2017 13:16:18 +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
= Alex Deucher changed bug 10118= 2
What Removed Added
Status NEW RESOLVED
Resolution --- WONTFIX

Commen= t # 2 on bug 10118= 2 from Alex Deucher
amdgpu_pm_info exposes power statistics now which causes a sma=
ll delay to
sample the power usage.  If you want to poll the current clocks, there is an
ioctl interface to query this information.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14957181781.6F3f45CDc.695-- --===============2003772749== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============2003772749==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 101182] Reading amdgpu_pm_info causes stutter with Linux 4.12-rc Date: Thu, 25 May 2017 13:23:36 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0202883977==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id F2EAF6E9B0 for ; Thu, 25 May 2017 13:23:35 +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 --===============0202883977== Content-Type: multipart/alternative; boundary="14957186150.0DcAADb5.2454"; charset="UTF-8" --14957186150.0DcAADb5.2454 Date: Thu, 25 May 2017 13:23:35 +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=3D101182 --- Comment #3 from Christoph Haag --- Can this be done asynchronously in the driver so it doesn't impact the rendering of 3D applications? --=20 You are receiving this mail because: You are the assignee for the bug.= --14957186150.0DcAADb5.2454 Date: Thu, 25 May 2017 13:23:35 +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 # 3 on bug 10118= 2 from Christoph Haag
Can this be done asynchronously in the driver so it doesn't im=
pact the
rendering of 3D applications?


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