All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
@ 2018-01-12 11:48 ` bugzilla-daemon
  2018-01-12 15:15 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-01-12 11:48 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1094 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #1 from Christoph Haag <haagch@frickel.club> ---
Created attachment 136677
  --> https://bugs.freedesktop.org/attachment.cgi?id=136677&action=edit
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 vkmark
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.

[-- Attachment #1.2: Type: text/html, Size: 2083 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
  2018-01-12 11:48 ` [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory bugzilla-daemon
@ 2018-01-12 15:15 ` bugzilla-daemon
  2018-01-12 15:21 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-01-12 15:15 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 275 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #2 from Michel Dänzer <michel@daenzer.net> ---
Does this also happen with the modesetting driver instead of xf86-video-amdgpu?

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1101 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
  2018-01-12 11:48 ` [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory bugzilla-daemon
  2018-01-12 15:15 ` bugzilla-daemon
@ 2018-01-12 15:21 ` bugzilla-daemon
  2018-01-12 15:53 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-01-12 15:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 399 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #3 from \bDavid Mao <david.mao@amd.com> ---
This seems like related with Mesa OGL when doing the compositing 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.

[-- Attachment #1.2: Type: text/html, Size: 1218 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
                   ` (2 preceding siblings ...)
  2018-01-12 15:21 ` bugzilla-daemon
@ 2018-01-12 15:53 ` bugzilla-daemon
  2018-04-27 16:39 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-01-12 15:53 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1628 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #4 from Christoph Haag <haagch@frickel.club> ---
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 spamming
and X keeps being screwed up (feels laggy and some synchronization artifacts).
Disabling kwin compositing then makes X freeze completely. But that may be
unrelated since modesetting seems to have other issues too, like freezing on 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 application in
mailbox present mode.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 2455 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
                   ` (3 preceding siblings ...)
  2018-01-12 15:53 ` bugzilla-daemon
@ 2018-04-27 16:39 ` bugzilla-daemon
  2018-05-14  8:21 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-04-27 16:39 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 478 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #5 from Michel Dänzer <michel@daenzer.net> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[-- Attachment #1.2: Type: text/html, Size: 1304 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
                   ` (4 preceding siblings ...)
  2018-04-27 16:39 ` bugzilla-daemon
@ 2018-05-14  8:21 ` bugzilla-daemon
  2018-05-15 16:18 ` bugzilla-daemon
  2018-05-16  7:58 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-05-14  8:21 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 870 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

--- Comment #6 from Christoph Haag <haagch@frickel.club> ---
Yes, it's still happening. It's just running vkmark in default mode. It looks
like this: https://youtu.be/MngLl6BgOfg

I'm not sure if previously it happened continuously but now it's only a couple
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=glx 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.

[-- Attachment #1.2: Type: text/html, Size: 1740 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
                   ` (5 preceding siblings ...)
  2018-05-14  8:21 ` bugzilla-daemon
@ 2018-05-15 16:18 ` bugzilla-daemon
  2018-05-16  7:58 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-05-15 16:18 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1208 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

Michel Dänzer <michel@daenzer.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|DRM/AMDgpu                  |DRM/other

--- Comment #7 from Michel Dänzer <michel@daenzer.net> ---
Thanks, I was finally able to reproduce this. Seems like it's only reproducible
if the app runs at >= ~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.

[-- Attachment #1.2: Type: text/html, Size: 2595 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 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory
       [not found] <bug-104598-502@http.bugs.freedesktop.org/>
                   ` (6 preceding siblings ...)
  2018-05-15 16:18 ` bugzilla-daemon
@ 2018-05-16  7:58 ` bugzilla-daemon
  7 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2018-05-16  7:58 UTC (permalink / raw)
  To: dri-devel


[-- Attachment #1.1: Type: text/plain, Size: 1103 bytes --]

https://bugs.freedesktop.org/show_bug.cgi?id=104598

Michel Dänzer <michel@daenzer.net> 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änzer <michel@daenzer.net> ---
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 would
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.

[-- Attachment #1.2: Type: text/html, Size: 2943 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:[~2018-05-16  7:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-104598-502@http.bugs.freedesktop.org/>
2018-01-12 11:48 ` [Bug 104598] vkmark with kwin compositing: Page flip failed: Cannot allocate memory bugzilla-daemon
2018-01-12 15:15 ` bugzilla-daemon
2018-01-12 15:21 ` bugzilla-daemon
2018-01-12 15:53 ` bugzilla-daemon
2018-04-27 16:39 ` bugzilla-daemon
2018-05-14  8:21 ` bugzilla-daemon
2018-05-15 16:18 ` bugzilla-daemon
2018-05-16  7:58 ` 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.