From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Fri, 12 Jan 2018 11:48:42 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0739134739==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id AED306E852 for ; Fri, 12 Jan 2018 13:06:07 +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 --===============0739134739== Content-Type: multipart/alternative; boundary="15157577220.dce6.24560" Content-Transfer-Encoding: 7bit --15157577220.dce6.24560 Date: Fri, 12 Jan 2018 11:48:42 +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=3D104598 --- Comment #1 from Christoph Haag --- Created attachment 136677 --> https://bugs.freedesktop.org/attachment.cgi?id=3D136677&action=3Dedit xorg log with the pageflip failures RX 480, radv master and amdvlk, xf86-video-amdgpu master This happens only with vkmark and only with kwin compositing enabled. With compton compositing it does not happen. When starting vkmark, X starts spamming these messages to the Xorg log: [ 128.815] (WW) AMDGPU(0): flip queue failed: Cannot allocate memory [ 128.815] (WW) AMDGPU(0): Page flip failed: Cannot allocate memory [ 128.815] (EE) AMDGPU(0): present flip failed and there are some synchronization artifacts on the screen. As soon as vkma= rk quits, everything is back to normal. When switching vkmark's present mode to immediate or fifo with vkmark -p immediate, this does not happen, only with the default (mailbox). Filed for DRM since it happens with amdvlk too. --=20 You are receiving this mail because: You are the assignee for the bug.= --15157577220.dce6.24560 Date: Fri, 12 Jan 2018 11:48:42 +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 # 1 on bug 10459= 8 from Christoph Haag
Created atta=
chment 136677 [details]
xorg log with the pageflip failures

RX 480, radv master and amdvlk, xf86-video-amdgpu master

This happens only with vkmark and only with kwin compositing enabled. With
compton compositing it does not happen.

When starting vkmark, X starts spamming these messages to the Xorg log:

[   128.815] (WW) AMDGPU(0): flip queue failed: Cannot allocate memory
[   128.815] (WW) AMDGPU(0): Page flip failed: Cannot allocate memory
[   128.815] (EE) AMDGPU(0): present flip failed

and there are some synchronization artifacts on the screen. As soon as vkma=
rk
quits, everything is back to normal.

When switching vkmark's present mode to immediate or fifo with vkmark -p
immediate, this does not happen, only with the default (mailbox).

Filed for DRM since it happens with amdvlk too.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15157577220.dce6.24560-- --===============0739134739== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0739134739==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Fri, 12 Jan 2018 15:15:26 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0031204658==" 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 7FD1A6E7F7 for ; Fri, 12 Jan 2018 15:15:26 +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 --===============0031204658== Content-Type: multipart/alternative; boundary="15157701261.a8AaC.32286" Content-Transfer-Encoding: 7bit --15157701261.a8AaC.32286 Date: Fri, 12 Jan 2018 15:15:26 +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=3D104598 --- Comment #2 from Michel D=C3=A4nzer --- Does this also happen with the modesetting driver instead of xf86-video-amd= gpu? --=20 You are receiving this mail because: You are the assignee for the bug.= --15157701261.a8AaC.32286 Date: Fri, 12 Jan 2018 15:15:26 +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 # 2 on bug 10459= 8 from Michel D=C3=A4nzer
Does this also happen with the modesetting driver instead of x=
f86-video-amdgpu?


You are receiving this mail because:
  • You are the assignee for the bug.
= --15157701261.a8AaC.32286-- --===============0031204658== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0031204658==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Fri, 12 Jan 2018 15:21:34 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0517929708==" 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 CC0BD6E84F for ; Fri, 12 Jan 2018 15:21:33 +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 --===============0517929708== Content-Type: multipart/alternative; boundary="15157704931.c0aF9f5.1048" Content-Transfer-Encoding: 7bit --15157704931.c0aF9f5.1048 Date: Fri, 12 Jan 2018 15:21:33 +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=3D104598 --- Comment #3 from =08David Mao --- This seems like related with Mesa OGL when doing the compositing present wi= thin the KWIN. AMDVLK actually did not allow flip in current release. >>From the attached log, the amdgpu ddx driver is being used. --=20 You are receiving this mail because: You are the assignee for the bug.= --15157704931.c0aF9f5.1048 Date: Fri, 12 Jan 2018 15:21:33 +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 10459= 8 from <= span class=3D"fn">David Mao
This seems like related with Mesa OGL when doing the compositi=
ng present within
the KWIN.
AMDVLK actually did not allow flip in current release.
>>From the attached log, the amdgpu ddx driver is being used.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15157704931.c0aF9f5.1048-- --===============0517929708== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0517929708==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Fri, 12 Jan 2018 15:53:41 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0528105009==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 91B6A6E937 for ; Fri, 12 Jan 2018 15:53:41 +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 --===============0528105009== Content-Type: multipart/alternative; boundary="15157724210.DDCa79E2.7944" Content-Transfer-Encoding: 7bit --15157724210.DDCa79E2.7944 Date: Fri, 12 Jan 2018 15:53:41 +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=3D104598 --- Comment #4 from Christoph Haag --- Yes it also happens with modesetting. It is a bit different though as the messages switch to Device or resource busy very quickly [ 26.386] (WW) modeset(0): flip queue failed: Cannot allocate memory [ 26.386] (WW) modeset(0): Page flip failed: Cannot allocate memory [ 26.386] (EE) modeset(0): present flip failed [ 26.387] (WW) modeset(0): flip queue failed: Cannot allocate memory [ 26.387] (WW) modeset(0): Page flip failed: Cannot allocate memory [ 26.387] (EE) modeset(0): failed to set mode: Invalid argument [ 26.404] (WW) modeset(0): flip queue failed: Device or resource busy [ 26.404] (WW) modeset(0): Page flip failed: Device or resource busy [ 26.404] (EE) modeset(0): present flip failed [ 26.422] (WW) modeset(0): flip queue failed: Device or resource busy [ 26.422] (WW) modeset(0): Page flip failed: Device or resource busy also modesetting doesn't recover once vkmark quits, the messages keep spamm= ing and X keeps being screwed up (feels laggy and some synchronization artifact= s). Disabling kwin compositing then makes X freeze completely. But that may be unrelated since modesetting seems to have other issues too, like freezing o= n a black screen when exiting X or tty switching. It could indeed be an issue with kwin/radeonsi that just happens to be triggered by two different vulkan drivers with this one specific applicatio= n in mailbox present mode. --=20 You are receiving this mail because: You are the assignee for the bug.= --15157724210.DDCa79E2.7944 Date: Fri, 12 Jan 2018 15:53:41 +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 # 4 on bug 10459= 8 from Christoph Haag
Yes it also happens with modesetting. It is a bit different th=
ough as the
messages switch to Device or resource busy very quickly

[    26.386] (WW) modeset(0): flip queue failed: Cannot allocate memory
[    26.386] (WW) modeset(0): Page flip failed: Cannot allocate memory
[    26.386] (EE) modeset(0): present flip failed
[    26.387] (WW) modeset(0): flip queue failed: Cannot allocate memory
[    26.387] (WW) modeset(0): Page flip failed: Cannot allocate memory
[    26.387] (EE) modeset(0): failed to set mode: Invalid argument
[    26.404] (WW) modeset(0): flip queue failed: Device or resource busy
[    26.404] (WW) modeset(0): Page flip failed: Device or resource busy
[    26.404] (EE) modeset(0): present flip failed
[    26.422] (WW) modeset(0): flip queue failed: Device or resource busy
[    26.422] (WW) modeset(0): Page flip failed: Device or resource busy

also modesetting doesn't recover once vkmark quits, the messages keep spamm=
ing
and X keeps being screwed up (feels laggy and some synchronization artifact=
s).
Disabling kwin compositing then makes X freeze completely. But that may be
unrelated since modesetting seems to have other issues too, like freezing o=
n a
black screen when exiting X or tty switching.


It could indeed be an issue with kwin/radeonsi that just happens to be
triggered by two different vulkan drivers with this one specific applicatio=
n in
mailbox present mode.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15157724210.DDCa79E2.7944-- --===============0528105009== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0528105009==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Fri, 27 Apr 2018 16:39:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1243339853==" 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 7BE2A6E95D for ; Fri, 27 Apr 2018 16:39:17 +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 --===============1243339853== Content-Type: multipart/alternative; boundary="15248471571.60EF1A.16626" Content-Transfer-Encoding: 7bit --15248471571.60EF1A.16626 Date: Fri, 27 Apr 2018 16:39:17 +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=3D104598 --- Comment #5 from Michel D=C3=A4nzer --- I can't reproduce this, is it still happening for you? Is it with vkmark in fullscreen or windowed mode? Which version of kwin, and what's selected for rendering method and tearing prevention in kwin's compositor settings? Also, please make sure kwin isn't using the EGL backend. --=20 You are receiving this mail because: You are the assignee for the bug.= --15248471571.60EF1A.16626 Date: Fri, 27 Apr 2018 16:39:17 +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 # 5 on bug 10459= 8 from Michel D=C3=A4nzer
I can't reproduce this, is it still happening for you? Is it w=
ith vkmark in
fullscreen or windowed mode? Which version of kwin, and what's selected for
rendering method and tearing prevention in kwin's compositor settings? Also,
please make sure kwin isn't using the EGL backend.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15248471571.60EF1A.16626-- --===============1243339853== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1243339853==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Mon, 14 May 2018 08:21:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0030208086==" 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 5D1FE89E7C for ; Mon, 14 May 2018 08:21:51 +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 --===============0030208086== Content-Type: multipart/alternative; boundary="15262861110.fdB4CD74.20999" Content-Transfer-Encoding: 7bit --15262861110.fdB4CD74.20999 Date: Mon, 14 May 2018 08:21:51 +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=3D104598 --- Comment #6 from Christoph Haag --- Yes, it's still happening. It's just running vkmark in default mode. It loo= ks like this: https://youtu.be/MngLl6BgOfg I'm not sure if previously it happened continuously but now it's only a cou= ple of flips that fail (there's noticeable stutter visible when it happens). Not sure how to make sure it doesn't use EGL but I ran it with KWIN_OPENGL_INTERFACE=3Dglx kwin_x11 --replace, I hope that's enough. Currently on kwin 5.12.5, xserver 1.19.99.905 g4191b59bd and latest xf86-video-amdgpu git so it has not been resolved there yet. It happens with kwin's OpenGL 2 and OpenGL 3 backends and all vsync methods, including None. It does not happen with XRender. --=20 You are receiving this mail because: You are the assignee for the bug.= --15262861110.fdB4CD74.20999 Date: Mon, 14 May 2018 08:21:51 +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 # 6 on bug 10459= 8 from Christoph Haag
Yes, it's still happening. It's just running vkmark in default=
 mode. It looks
like this: https://youtu.be/MngLl6=
BgOfg

I'm not sure if previously it happened continuously but now it's only a cou=
ple
of flips that fail (there's noticeable stutter visible when it happens).

Not sure how to make sure it doesn't use EGL but I ran it with
KWIN_OPENGL_INTERFACE=3Dglx kwin_x11 --replace, I hope that's enough.

Currently on kwin 5.12.5, xserver 1.19.99.905 g4191b59bd and latest
xf86-video-amdgpu git so it has not been resolved there yet.

It happens with kwin's OpenGL 2 and OpenGL 3 backends and all vsync methods,
including None.
It does not happen with XRender.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15262861110.fdB4CD74.20999-- --===============0030208086== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0030208086==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Tue, 15 May 2018 16:18:57 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0099061507==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 94C9C6E25D for ; Tue, 15 May 2018 16:18:57 +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 --===============0099061507== Content-Type: multipart/alternative; boundary="15264011370.c405381.514" Content-Transfer-Encoding: 7bit --15264011370.c405381.514 Date: Tue, 15 May 2018 16:18:57 +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=3D104598 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- Component|DRM/AMDgpu |DRM/other --- Comment #7 from Michel D=C3=A4nzer --- Thanks, I was finally able to reproduce this. Seems like it's only reproduc= ible if the app runs at >=3D ~10K FPS. It happens because the client submits so many PresentPixmap requests within= a single vertical blank period that the corresponding DRM vblank events fill = up the kernel DRM event queue. Then when the compositor sends a PresentPixmap request, the page flip ioctl gets -ENOMEM from drm_event_reserve_init and propagates it. (That the modesetting driver can't deal with this is its bug) Options for addressing this: The kernel might allow queuing page flip events even when the queue is full with vblank events. The xserver present code should be able to re-use a single DRM vblank event= for multiple client requests with the same target MSC. --=20 You are receiving this mail because: You are the assignee for the bug.= --15264011370.c405381.514 Date: Tue, 15 May 2018 16:18:57 +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 = Michel D=C3=A4nzer changed bug 10459= 8
What Removed Added
Component DRM/AMDgpu DRM/other

Commen= t # 7 on bug 10459= 8 from Michel D=C3=A4nzer
Thanks, I was finally able to reproduce this. Seems like it's =
only reproducible
if the app runs at >=3D ~10K FPS.

It happens because the client submits so many PresentPixmap requests within=
 a
single vertical blank period that the corresponding DRM vblank events fill =
up
the kernel DRM event queue. Then when the compositor sends a PresentPixmap
request, the page flip ioctl gets -ENOMEM from drm_event_reserve_init and
propagates it. (That the modesetting driver can't deal with this is its bug)

Options for addressing this:

The kernel might allow queuing page flip events even when the queue is full
with vblank events.

The xserver present code should be able to re-use a single DRM vblank event=
 for
multiple client requests with the same target MSC.


You are receiving this mail because:
  • You are the assignee for the bug.
= --15264011370.c405381.514-- --===============0099061507== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0099061507==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory Date: Wed, 16 May 2018 07:58:42 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1775862931==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id A2D916E38B for ; Wed, 16 May 2018 07:58:42 +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 --===============1775862931== Content-Type: multipart/alternative; boundary="15264575221.B6d15f83.23031" Content-Transfer-Encoding: 7bit --15264575221.B6d15f83.23031 Date: Wed, 16 May 2018 07:58:42 +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=3D104598 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- Version|DRI git |git Product|DRI |xorg Assignee|dri-devel@lists.freedesktop |xorg-team@lists.x.org |.org | Component|DRM/other |Server/General QA Contact| |xorg-team@lists.x.org --- Comment #8 from Michel D=C3=A4nzer --- On further thinking, this should be addressed in the xserver present code. = Even if the kernel didn't return an error from the page flip ioctl, it still wou= ld from the vblank ioctls, which can currently result in some of the client's PresentPixmap requests being executed out of order (which might explain at least some of the intermittent artifacts). --=20 You are receiving this mail because: You are the assignee for the bug.= --15264575221.B6d15f83.23031 Date: Wed, 16 May 2018 07:58:42 +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 = Michel D=C3=A4nzer changed bug 10459= 8
What Removed Added
Version DRI git git
Product DRI xorg
Assignee dri-devel@lists.freedesktop.org xorg-team@lists.x.org
Component DRM/other Server/General
QA Contact   xorg-team@lists.x.org

Commen= t # 8 on bug 10459= 8 from Michel D=C3=A4nzer
On further thinking, this should be addressed in the xserver p=
resent code. Even
if the kernel didn't return an error from the page flip ioctl, it still wou=
ld
from the vblank ioctls, which can currently result in some of the client's
PresentPixmap requests being executed out of order (which might explain at
least some of the intermittent artifacts).


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