All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 102358] WarThunder freezes always with vblanc=1
@ 2017-08-22 11:40 bugzilla-daemon
  2017-08-22 18:12 ` [Bug 102358] WarThunder freezes always with vblank_mode=2 bugzilla-daemon
                   ` (41 more replies)
  0 siblings, 42 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-22 11:40 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 102358
           Summary: WarThunder freezes always with vblanc=1
           Product: Mesa
           Version: git
          Hardware: Other
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: haro41@gmx.de
        QA Contact: dri-devel@lists.freedesktop.org

On latest mesa git (17.3-dev) WarThunder freezes with vsync activated.

The main problem: 
a system consumes significantly more power (+90W in my case), with vsync
deactivated.

Switching back to mesa 17.2-rc5 or disabling vsync (vblanc=0), are solutions to
make it work, atm.

Here my system specs:
(glxinfo |grep OpenGL)

OpenGL vendor string: X.Org
OpenGL renderer string: AMD Radeon (TM) R9 380 Series (TONGA / DRM 3.19.0 /
4.13.0-rc5+, LLVM 6.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.0-devel
(git-46a8c4ef81)
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 17.3.0-devel (git-46a8c4ef81)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.1 Mesa 17.3.0-devel
(git-46a8c4ef81)
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
OpenGL ES profile extensions:

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

[-- Attachment #1.2: Type: text/html, Size: 3060 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes always with vblank_mode=2
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
@ 2017-08-22 18:12 ` bugzilla-daemon
  2017-08-22 18:14 ` [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2) bugzilla-daemon
                   ` (40 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-22 18:12 UTC (permalink / raw)
  To: dri-devel


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

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

haro41@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|WarThunder freezes always   |WarThunder freezes always
                   |with vblanc=1               |with vblank_mode=2

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

[-- Attachment #1.2: Type: text/html, Size: 1076 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
  2017-08-22 18:12 ` [Bug 102358] WarThunder freezes always with vblank_mode=2 bugzilla-daemon
@ 2017-08-22 18:14 ` bugzilla-daemon
  2017-08-23  2:04 ` bugzilla-daemon
                   ` (39 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-22 18:14 UTC (permalink / raw)
  To: dri-devel


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

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

haro41@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|WarThunder freezes always   |WarThunder freezes at
                   |with vblank_mode=2          |start, with activated vsync
                   |                            |(vblank_mode=2)

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

[-- Attachment #1.2: Type: text/html, Size: 1123 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
  2017-08-22 18:12 ` [Bug 102358] WarThunder freezes always with vblank_mode=2 bugzilla-daemon
  2017-08-22 18:14 ` [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2) bugzilla-daemon
@ 2017-08-23  2:04 ` bugzilla-daemon
  2017-08-23 15:00 ` bugzilla-daemon
                   ` (38 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23  2:04 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Michel Dänzer <michel@daenzer.net> ---
Can you bisect which Mesa Git commit introduced the issue?

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

[-- Attachment #1.2: Type: text/html, Size: 1070 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-08-23  2:04 ` bugzilla-daemon
@ 2017-08-23 15:00 ` bugzilla-daemon
  2017-08-23 15:32 ` bugzilla-daemon
                   ` (37 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23 15:00 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from haro41@gmx.de ---
Yes, i did it via 'git bisect'.

Here is the first related commit:

d5ba75f8881f0869dc16f71f7395514c0a35b6e2 is the first bad commit
commit d5ba75f8881f0869dc16f71f7395514c0a35b6e2
Author: Thomas Hellstrom <thellstrom@vmware.com>
Date:   Tue Jun 20 19:24:34 2017 +0200

    st/dri2 Plumb the flush_swapbuffer functionality through to dri3

    Implement the state tracker manager drawable interface flush_swapbuffer
    method by plumbing it through to dri3 if available.

    Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Reviewed-by: Brian Paul <brianp@vmware.com>
    Reviewed-by: Sinclair Yeh <syeh@vmware.com>

:040000 040000 8df730d2ac95b42435c96043da0eb6fba5f6861c
4179b3bb9a075169627eb00de5780bbbe8abea02 M      src


I hope it makes sense and can help you.

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

[-- Attachment #1.2: Type: text/html, Size: 2085 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (3 preceding siblings ...)
  2017-08-23 15:00 ` bugzilla-daemon
@ 2017-08-23 15:32 ` bugzilla-daemon
  2017-08-23 17:51 ` bugzilla-daemon
                   ` (36 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23 15:32 UTC (permalink / raw)
  To: dri-devel


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

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thellstrom@vmware.com

--- Comment #3 from Michel Dänzer <michel@daenzer.net> ---
Thomas, any ideas?

(In reply to haro41 from comment #2)
> Yes, i did it via 'git bisect'.

Thanks. Any chance you can get a backtrace[0] of the hanging process?

[0] Ideally of all threads, something like "thread apply all bt full" in gdb.

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

[-- Attachment #1.2: Type: text/html, Size: 2159 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (4 preceding siblings ...)
  2017-08-23 15:32 ` bugzilla-daemon
@ 2017-08-23 17:51 ` bugzilla-daemon
  2017-08-23 18:02 ` bugzilla-daemon
                   ` (35 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23 17:51 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from haro41@gmx.de ---
Created attachment 133719
  --> https://bugs.freedesktop.org/attachment.cgi?id=133719&action=edit
gdb all tread backtrace

-- 
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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (5 preceding siblings ...)
  2017-08-23 17:51 ` bugzilla-daemon
@ 2017-08-23 18:02 ` bugzilla-daemon
  2017-08-23 19:18 ` bugzilla-daemon
                   ` (34 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23 18:02 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Thomas Hellström <thellstrom@vmware.com> ---
This looks odd. 

That commit actually only adds a wait for all swaps to be scheduled at
glFinish(), so it shouldn't really be causing any grief unless the server
somehow forgets to send the right events or the dri3 wait_for_sbc is broken...

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

[-- Attachment #1.2: Type: text/html, Size: 1269 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (6 preceding siblings ...)
  2017-08-23 18:02 ` bugzilla-daemon
@ 2017-08-23 19:18 ` bugzilla-daemon
  2017-08-25 11:23 ` bugzilla-daemon
                   ` (33 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-23 19:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from haro41@gmx.de ---
BTW:

... setting environment variable LIBGL_DRI3_DISABLE (to switch back to DRI2)
fixes the freeze too ...

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

[-- Attachment #1.2: Type: text/html, Size: 1067 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (7 preceding siblings ...)
  2017-08-23 19:18 ` bugzilla-daemon
@ 2017-08-25 11:23 ` bugzilla-daemon
  2017-08-25 12:58 ` bugzilla-daemon
                   ` (32 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 11:23 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Thomas Hellström <thellstrom@vmware.com> ---
Created attachment 133771
  --> https://bugs.freedesktop.org/attachment.cgi?id=133771&action=edit
Patch to see if there might be a race causing this

@haro41: Could you test the attached dri3_mutex.diff and see if there is a
change in behaviour?

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

[-- Attachment #1.2: Type: text/html, Size: 1556 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (8 preceding siblings ...)
  2017-08-25 11:23 ` bugzilla-daemon
@ 2017-08-25 12:58 ` bugzilla-daemon
  2017-08-25 14:36 ` bugzilla-daemon
                   ` (31 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 12:58 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #8 from haro41@gmx.de ---
@Thomas,

i got two rejects when trying to apply the patch.

Let me sync to your base version first, to avoid additional diffs,
where/when did you branch exactly?

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

[-- Attachment #1.2: Type: text/html, Size: 1128 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (9 preceding siblings ...)
  2017-08-25 12:58 ` bugzilla-daemon
@ 2017-08-25 14:36 ` bugzilla-daemon
  2017-08-25 14:36 ` bugzilla-daemon
                   ` (30 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 14:36 UTC (permalink / raw)
  To: dri-devel


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

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

Thomas Hellström <thellstrom@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #133771|0                           |1
        is obsolete|                            |

--- Comment #9 from Thomas Hellström <thellstrom@vmware.com> ---
Created attachment 133776
  --> https://bugs.freedesktop.org/attachment.cgi?id=133776&action=edit
Replacement patch to see if there is a race causing this.

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

[-- Attachment #1.2: Type: text/html, Size: 2308 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (10 preceding siblings ...)
  2017-08-25 14:36 ` bugzilla-daemon
@ 2017-08-25 14:36 ` bugzilla-daemon
  2017-08-25 16:18 ` bugzilla-daemon
                   ` (29 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 14:36 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #10 from Thomas Hellström <thellstrom@vmware.com> ---
(In reply to haro41 from comment #8)
> @Thomas,
> 
> i got two rejects when trying to apply the patch.
> 
> Let me sync to your base version first, to avoid additional diffs,
> where/when did you branch exactly?

My mistake. Added a new patch based on 0cc4c7e3.

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

[-- Attachment #1.2: Type: text/html, Size: 1385 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (11 preceding siblings ...)
  2017-08-25 14:36 ` bugzilla-daemon
@ 2017-08-25 16:18 ` bugzilla-daemon
  2017-08-25 17:01 ` bugzilla-daemon
                   ` (28 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 16:18 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #11 from haro41@gmx.de ---
i applied your patch successful, still the freezes, maybe in average a bit
later now.

The behavoir changed a bit:

before patch:

vblank_mode=2 (default)-> always freezes inside 0..2 minutes runtime, 
                          framerate fix/clamped at 50(as expected)
vblank_mode=0          -> no freezes at all, dynamic, high framerates 
LIBGL_DRI3_DISABLE=1   -> no freezes at all, framerate fix at 50 


after patch:

vblank_mode=2 (default)-> always freezes inside 0..2 minutes runtime, 
                          framerate fix/clamped at 100(!!)
vblank_mode=0          -> no freezes at all, dynamic, high framerates 
LIBGL_DRI3_DISABLE=1   -> no freezes at all, framerate fix at 50 


To be honest, i am not familiar enough with DRM internals to understand what
exactly happens here, but it looks like something is broken in respect to DRI 3
usage.

Somehow i think i could be the only one with this freezes and to ensure i am
not wasting your time:
Can you give me a hint, where i should look first to exclude it is something
specific to my system/setup?

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

[-- Attachment #1.2: Type: text/html, Size: 2066 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (12 preceding siblings ...)
  2017-08-25 16:18 ` bugzilla-daemon
@ 2017-08-25 17:01 ` bugzilla-daemon
  2017-08-25 17:35 ` bugzilla-daemon
                   ` (27 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 17:01 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #12 from Thomas Hellström <thellstrom@vmware.com> ---
(In reply to haro41 from comment #11)
> i applied your patch successful, still the freezes, maybe in average a bit
> later now.
> 
> The behavoir changed a bit:
> 
> before patch:
> 
> vblank_mode=2 (default)-> always freezes inside 0..2 minutes runtime, 
>                           framerate fix/clamped at 50(as expected)
> vblank_mode=0          -> no freezes at all, dynamic, high framerates 
> LIBGL_DRI3_DISABLE=1   -> no freezes at all, framerate fix at 50 
> 
> 
> after patch:
> 
> vblank_mode=2 (default)-> always freezes inside 0..2 minutes runtime, 
>                           framerate fix/clamped at 100(!!)
> vblank_mode=0          -> no freezes at all, dynamic, high framerates 
> LIBGL_DRI3_DISABLE=1   -> no freezes at all, framerate fix at 50 
> 
> 
> To be honest, i am not familiar enough with DRM internals to understand what
> exactly happens here, but it looks like something is broken in respect to
> DRI 3 usage.
> 
> Somehow i think i could be the only one with this freezes and to ensure i am
> not wasting your time:
> Can you give me a hint, where i should look first to exclude it is something
> specific to my system/setup?


That's really weird :).

Actually I don't think anything's wrong with your setup, but rather that
there's a multithreading bug in dri3 or the app. There's no concurrency
protection at all in the dri3 client and I'm not sure that's correct. I think
you're the only one seeing this possibly perhaps because you're the first to
try it with a heavily multithreaded application.

Anyway, I'm OK with commenting out the glFinish() wait for swapbuffers until
someone has the possibility to debug this thoroughly. Unfortunately WarThunder
doesn't run on vmware's svga driver (yet) due to bugs...

It would also be good to try to rule out server side radeon dri3 problems.
Perhaps by running it on nouveau or intel...

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

[-- Attachment #1.2: Type: text/html, Size: 3113 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (13 preceding siblings ...)
  2017-08-25 17:01 ` bugzilla-daemon
@ 2017-08-25 17:35 ` bugzilla-daemon
  2017-08-26  5:09 ` bugzilla-daemon
                   ` (26 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-25 17:35 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #13 from haro41@gmx.de ---
Ok, that makes sense for me, thank you :)

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

[-- Attachment #1.2: Type: text/html, Size: 1000 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (14 preceding siblings ...)
  2017-08-25 17:35 ` bugzilla-daemon
@ 2017-08-26  5:09 ` bugzilla-daemon
  2017-08-26 16:03 ` bugzilla-daemon
                   ` (25 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-26  5:09 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #14 from Michel Dänzer <michel@daenzer.net> ---
(In reply to Thomas Hellström from comment #12)
> It would also be good to try to rule out server side radeon dri3 problems.
> Perhaps by running it on nouveau or intel...

Or simply the modesetting Xorg driver. A server-side issue could be in the
xserver Present code used by all drivers though.

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

[-- Attachment #1.2: Type: text/html, Size: 1391 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (15 preceding siblings ...)
  2017-08-26  5:09 ` bugzilla-daemon
@ 2017-08-26 16:03 ` bugzilla-daemon
  2017-08-28  1:37 ` bugzilla-daemon
                   ` (24 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-26 16:03 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #15 from haro41@gmx.de ---
... i found this related and interesting blog:

https://keithp.com/blogs/DRM-lease-4/

Seems there is something WIP in respect to DRM synchronisation and this very
bug.

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

[-- Attachment #1.2: Type: text/html, Size: 1184 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (16 preceding siblings ...)
  2017-08-26 16:03 ` bugzilla-daemon
@ 2017-08-28  1:37 ` bugzilla-daemon
  2017-08-28 12:08 ` bugzilla-daemon
                   ` (23 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-28  1:37 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #16 from Michel Dänzer <michel@daenzer.net> ---
DRM leases have nothing to do with this issue.

Have you got a chance to test if this also happens with the Xorg modesetting
driver?

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

[-- Attachment #1.2: Type: text/html, Size: 1149 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (17 preceding siblings ...)
  2017-08-28  1:37 ` bugzilla-daemon
@ 2017-08-28 12:08 ` bugzilla-daemon
  2017-09-07 10:17 ` bugzilla-daemon
                   ` (22 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-08-28 12:08 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #17 from haro41@gmx.de ---
@Michel,

i did just now, but WarThunder freeze behavoir didn't really change.


xorg.conf:
Section "Device"
    Identifier "AMD"
    Driver "modesetting"
EndSection


DRI 3 is used per default too (X.Org X Server 1.19.3).


BTW: 
i have tested with my older pitcairn (HD7870), trying amdgpu and radeon kernel
driver. The behavoir is the same as with tonga in both cases.

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

[-- Attachment #1.2: Type: text/html, Size: 1381 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (18 preceding siblings ...)
  2017-08-28 12:08 ` bugzilla-daemon
@ 2017-09-07 10:17 ` bugzilla-daemon
  2017-09-07 14:34 ` bugzilla-daemon
                   ` (21 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-07 10:17 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #18 from Thomas Hellström <thellstrom@vmware.com> ---
FWIW, I got it running under dri3/vsync with the svga driver with no apparent
issue.

It also runs fine with modesetting/svga although there is no true vsync since
the kernel module flips pages instantly.

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

[-- Attachment #1.2: Type: text/html, Size: 1234 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (19 preceding siblings ...)
  2017-09-07 10:17 ` bugzilla-daemon
@ 2017-09-07 14:34 ` bugzilla-daemon
  2017-09-08 14:53 ` bugzilla-daemon
                   ` (20 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-07 14:34 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #19 from Thomas Hellström <thellstrom@vmware.com> ---
What happens if you run in windowed mode + vsync?

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

[-- Attachment #1.2: Type: text/html, Size: 1075 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (20 preceding siblings ...)
  2017-09-07 14:34 ` bugzilla-daemon
@ 2017-09-08 14:53 ` bugzilla-daemon
  2017-09-17 17:43 ` bugzilla-daemon
                   ` (19 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-08 14:53 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #20 from haro41@gmx.de ---
@Thomas,

i get freezes in windowed mode with activated vsync too (tried with latest
git).

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

[-- Attachment #1.2: Type: text/html, Size: 1056 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (21 preceding siblings ...)
  2017-09-08 14:53 ` bugzilla-daemon
@ 2017-09-17 17:43 ` bugzilla-daemon
  2017-09-17 18:27 ` bugzilla-daemon
                   ` (18 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-17 17:43 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #21 from haro41@gmx.de ---
... looks like the reason for freezing, is a concurrent waiting in
xcb_wait_for_special_event(..).

While the main thread is waiting for present related events, another thread is
consuming this events (because he was the first one entering the wait) and the
main thread is waiting for ever (freeze).

I will attach the debug log for some frames before the freeze.



@Thomas, 
if my frame rate is lower (FPS < Monitor Sync, because of to much debug
output), i don't get any freezes. Could this be the reason why you can't
reproduce the freezes with svga-stack?

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

[-- Attachment #1.2: Type: text/html, Size: 1540 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (22 preceding siblings ...)
  2017-09-17 17:43 ` bugzilla-daemon
@ 2017-09-17 18:27 ` bugzilla-daemon
  2017-09-19 18:00 ` bugzilla-daemon
                   ` (17 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-17 18:27 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #22 from haro41@gmx.de ---
Created attachment 134297
  --> https://bugs.freedesktop.org/attachment.cgi?id=134297&action=edit
debug log: concurrent waiting in xcb_wait_for_special_event()

This command's are used for logging (all in 'src/loader/loader_dri3_helper.c'):

printf("%4x =>dri3_handle_present_event: XCB_PRESENT_COMPLETE_NOTIFY: serial:%u
\n", (uint16_t)pthread_self(), ce->serial);

printf("%4x =>dri3_handle_present_event: XCB_PRESENT_EVENT_IDLE_NOTIFY:
pixmap:%u \n", (uint16_t)pthread_self(), ie->pixmap);

printf("%4x =>xcb_wait_for_special_event in dri3_wait_for_event: send_sbc:%lu
recv_sbc:%lu\n", (uint16_t)pthread_self(), draw->send_sbc, draw->recv_sbc);

printf("%4x =>xcb_wait_for_special_event in dri3_find_back:      send_sbc:%lu
recv_sbc:%lu\n", (uint16_t)pthread_self(), draw->send_sbc, draw->recv_sbc);

printf("%4x =>loader_dri3_swapbuffer_barrier:                    send_sbc:%lu
recv_sbc:%lu\n", (uint16_t)pthread_self(), draw->send_sbc, draw->recv_sbc);



'9240' is obviously the main thread.

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

[-- Attachment #1.2: Type: text/html, Size: 2282 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (23 preceding siblings ...)
  2017-09-17 18:27 ` bugzilla-daemon
@ 2017-09-19 18:00 ` bugzilla-daemon
  2017-09-19 21:15 ` bugzilla-daemon
                   ` (16 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-19 18:00 UTC (permalink / raw)
  To: dri-devel


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

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

Thomas Hellström <thellstrom@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #133776|0                           |1
        is obsolete|                            |

--- Comment #23 from Thomas Hellström <thellstrom@vmware.com> ---
Created attachment 134344
  --> https://bugs.freedesktop.org/attachment.cgi?id=134344&action=edit
Patch to protect the loader_dri3_drawable struct

So here is a patch that doesn't fully make dri3 drawables thread-safe, but it
should at least make sure threads don't steal events from eachother.

Please try,
Thomas

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

[-- Attachment #1.2: Type: text/html, Size: 2457 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (24 preceding siblings ...)
  2017-09-19 18:00 ` bugzilla-daemon
@ 2017-09-19 21:15 ` bugzilla-daemon
  2017-09-19 21:32 ` bugzilla-daemon
                   ` (15 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-19 21:15 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #24 from haro41@gmx.de ---
I tested your patch (~20 minutes): 

No freezes at all, good work!

I will continue later and meanwhile i'am trying to understand what the meanings
of all that different xx_swap_buffers() functions/callbacks could be :)

Thanks,
Jens

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

[-- Attachment #1.2: Type: text/html, Size: 1200 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (25 preceding siblings ...)
  2017-09-19 21:15 ` bugzilla-daemon
@ 2017-09-19 21:32 ` bugzilla-daemon
  2017-09-20 18:23 ` bugzilla-daemon
                   ` (14 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-19 21:32 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #25 from Thomas Hellström <thellstrom@vmware.com> ---
Comment on attachment 134344
  --> https://bugs.freedesktop.org/attachment.cgi?id=134344
Patch to protect the loader_dri3_drawable struct

OK, thanks, that's good to know.

Note the patch isn't complete yet. Just enough to verify what the problem was.

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

[-- Attachment #1.2: Type: text/html, Size: 1569 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (26 preceding siblings ...)
  2017-09-19 21:32 ` bugzilla-daemon
@ 2017-09-20 18:23 ` bugzilla-daemon
  2017-10-18 21:53 ` bugzilla-daemon
                   ` (13 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-09-20 18:23 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #26 from haro41@gmx.de ---
Created attachment 134383
  --> https://bugs.freedesktop.org/attachment.cgi?id=134383&action=edit
lprotection in action, longer debug log

adapted debug log (longer test), showing current protection at work ...

No freezes and no other visible issues currently.

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

[-- Attachment #1.2: Type: text/html, Size: 1396 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (27 preceding siblings ...)
  2017-09-20 18:23 ` bugzilla-daemon
@ 2017-10-18 21:53 ` bugzilla-daemon
  2017-10-31  9:39 ` bugzilla-daemon
                   ` (12 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-10-18 21:53 UTC (permalink / raw)
  To: dri-devel


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

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

haro41@gmx.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #134383|lprotection in action,      |protection in action,
        description|longer debug log            |longer debug log

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

[-- Attachment #1.2: Type: text/html, Size: 1114 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (28 preceding siblings ...)
  2017-10-18 21:53 ` bugzilla-daemon
@ 2017-10-31  9:39 ` bugzilla-daemon
  2017-11-02 10:50 ` bugzilla-daemon
                   ` (11 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-10-31  9:39 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #27 from haro41@gmx.de ---
@Thomas,

any chance to finally fix this for the soon released mesa 17.3?

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

[-- Attachment #1.2: Type: text/html, Size: 1038 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (29 preceding siblings ...)
  2017-10-31  9:39 ` bugzilla-daemon
@ 2017-11-02 10:50 ` bugzilla-daemon
  2017-11-02 16:35 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-02 10:50 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #28 from Thomas Hellström <thellstrom@vmware.com> ---
Hi!

We can probably pave over this specific problem for the release, but making
dri3 fully thread-safe is a much larger task, which I will not have time for
before the release.

BTW are you running with mesa glthread? In that case, could you test with
master mesa and

export mesa_glthread=false

/Thomas

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

[-- Attachment #1.2: Type: text/html, Size: 1342 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (30 preceding siblings ...)
  2017-11-02 10:50 ` bugzilla-daemon
@ 2017-11-02 16:35 ` bugzilla-daemon
  2017-11-02 16:41 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-02 16:35 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #29 from haro41@gmx.de ---
I tried both: mesa_glthread=false/true, it doesn't make a difference in respect
to this issue.

It think other applications/games could be affected by this problem too, so
maybe temporary reverting the changes in dri2_flush_swapbuffers() would make
sense? 

(this is currently my approach to avoid the freezes)

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

[-- Attachment #1.2: Type: text/html, Size: 1276 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (31 preceding siblings ...)
  2017-11-02 16:35 ` bugzilla-daemon
@ 2017-11-02 16:41 ` bugzilla-daemon
  2017-11-02 20:40 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-02 16:41 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #30 from Thomas Hellström <thellstrom@vmware.com> ---
Thanks for testing. 

But if I understand you correctly the "patch to protect the
loader_dri3_drawable struct" fixes the issue on your side, right? If so, I'd
rather push a somewhat polished version of that patch...

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

[-- Attachment #1.2: Type: text/html, Size: 1255 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (32 preceding siblings ...)
  2017-11-02 16:41 ` bugzilla-daemon
@ 2017-11-02 20:40 ` bugzilla-daemon
  2017-11-03 14:02 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-02 20:40 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #31 from haro41@gmx.de ---
Yes, your last patch worked flawless here and if you could provide a polished
version just let me know, i am ready to test it.

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

[-- Attachment #1.2: Type: text/html, Size: 1086 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (33 preceding siblings ...)
  2017-11-02 20:40 ` bugzilla-daemon
@ 2017-11-03 14:02 ` bugzilla-daemon
  2017-11-03 19:56 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-03 14:02 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #32 from Thomas Hellström <thellstrom@vmware.com> ---
Slightly polished patch available here...


https://lists.freedesktop.org/archives/mesa-dev/2017-November/175373.html

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

[-- Attachment #1.2: Type: text/html, Size: 1234 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (34 preceding siblings ...)
  2017-11-03 14:02 ` bugzilla-daemon
@ 2017-11-03 19:56 ` bugzilla-daemon
  2017-11-03 20:40 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-03 19:56 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #33 from haro41@gmx.de ---
No freezes, works great for me.

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

[-- Attachment #1.2: Type: text/html, Size: 990 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (35 preceding siblings ...)
  2017-11-03 19:56 ` bugzilla-daemon
@ 2017-11-03 20:40 ` bugzilla-daemon
  2017-11-05 16:33 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-03 20:40 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #34 from Thomas Hellström <thellstrom@vmware.com> ---
(In reply to haro41 from comment #33)
> No freezes, works great for me.

Want to add a Tested-by: tag?

/Thomas

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

[-- Attachment #1.2: Type: text/html, Size: 1214 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (36 preceding siblings ...)
  2017-11-03 20:40 ` bugzilla-daemon
@ 2017-11-05 16:33 ` bugzilla-daemon
  2017-11-05 17:30 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-05 16:33 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #35 from haro41@gmx.de ---
(In reply to Thomas Hellström from comment #34)
> (In reply to haro41 from comment #33)
> > No freezes, works great for me.
> 
> Want to add a Tested-by: tag?
> 
> /Thomas

... if it helps, but where and how to add this tag?

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

[-- Attachment #1.2: Type: text/html, Size: 1323 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (37 preceding siblings ...)
  2017-11-05 16:33 ` bugzilla-daemon
@ 2017-11-05 17:30 ` bugzilla-daemon
  2017-11-06 16:08 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-05 17:30 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #36 from Thomas Hellström <thellstrom@vmware.com> ---
(In reply to haro41 from comment #35)
> (In reply to Thomas Hellström from comment #34)
> > (In reply to haro41 from comment #33)
> > > No freezes, works great for me.
> > 
> > Want to add a Tested-by: tag?
> > 
> > /Thomas
> 
> ... if it helps, but where and how to add this tag?

It's added by me to the commit message before pushing, to indicate that you've
tested the patch. A tested by tag typically looks like

Tested-by: Firstname Lastname <haro41@gmx.de>

So if you want me to do that I'll need your first and last name.

/Thomas

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

[-- Attachment #1.2: Type: text/html, Size: 1830 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (38 preceding siblings ...)
  2017-11-05 17:30 ` bugzilla-daemon
@ 2017-11-06 16:08 ` bugzilla-daemon
  2017-11-13 13:14 ` bugzilla-daemon
  2017-11-14 14:58 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-06 16:08 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #37 from haro41@gmx.de ---
Ok, thanks for clarification. 
I prefer not to add such tag, because this is my anonymous email address,
dedicated to things like to games.

/Jens

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

[-- Attachment #1.2: Type: text/html, Size: 1109 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (39 preceding siblings ...)
  2017-11-06 16:08 ` bugzilla-daemon
@ 2017-11-13 13:14 ` bugzilla-daemon
  2017-11-14 14:58 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-13 13:14 UTC (permalink / raw)
  To: dri-devel


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

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

Thomas Hellström <thellstrom@vmware.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #38 from Thomas Hellström <thellstrom@vmware.com> ---
Fix has now been pushed to mesa master.

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

[-- Attachment #1.2: Type: text/html, Size: 2110 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] 43+ messages in thread

* [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2)
  2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
                   ` (40 preceding siblings ...)
  2017-11-13 13:14 ` bugzilla-daemon
@ 2017-11-14 14:58 ` bugzilla-daemon
  41 siblings, 0 replies; 43+ messages in thread
From: bugzilla-daemon @ 2017-11-14 14:58 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #39 from haro41@gmx.de ---
Thank you, problem fully solved for me.

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

[-- Attachment #1.2: Type: text/html, Size: 1050 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] 43+ messages in thread

end of thread, other threads:[~2017-11-14 14:58 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-22 11:40 [Bug 102358] WarThunder freezes always with vblanc=1 bugzilla-daemon
2017-08-22 18:12 ` [Bug 102358] WarThunder freezes always with vblank_mode=2 bugzilla-daemon
2017-08-22 18:14 ` [Bug 102358] WarThunder freezes at start, with activated vsync (vblank_mode=2) bugzilla-daemon
2017-08-23  2:04 ` bugzilla-daemon
2017-08-23 15:00 ` bugzilla-daemon
2017-08-23 15:32 ` bugzilla-daemon
2017-08-23 17:51 ` bugzilla-daemon
2017-08-23 18:02 ` bugzilla-daemon
2017-08-23 19:18 ` bugzilla-daemon
2017-08-25 11:23 ` bugzilla-daemon
2017-08-25 12:58 ` bugzilla-daemon
2017-08-25 14:36 ` bugzilla-daemon
2017-08-25 14:36 ` bugzilla-daemon
2017-08-25 16:18 ` bugzilla-daemon
2017-08-25 17:01 ` bugzilla-daemon
2017-08-25 17:35 ` bugzilla-daemon
2017-08-26  5:09 ` bugzilla-daemon
2017-08-26 16:03 ` bugzilla-daemon
2017-08-28  1:37 ` bugzilla-daemon
2017-08-28 12:08 ` bugzilla-daemon
2017-09-07 10:17 ` bugzilla-daemon
2017-09-07 14:34 ` bugzilla-daemon
2017-09-08 14:53 ` bugzilla-daemon
2017-09-17 17:43 ` bugzilla-daemon
2017-09-17 18:27 ` bugzilla-daemon
2017-09-19 18:00 ` bugzilla-daemon
2017-09-19 21:15 ` bugzilla-daemon
2017-09-19 21:32 ` bugzilla-daemon
2017-09-20 18:23 ` bugzilla-daemon
2017-10-18 21:53 ` bugzilla-daemon
2017-10-31  9:39 ` bugzilla-daemon
2017-11-02 10:50 ` bugzilla-daemon
2017-11-02 16:35 ` bugzilla-daemon
2017-11-02 16:41 ` bugzilla-daemon
2017-11-02 20:40 ` bugzilla-daemon
2017-11-03 14:02 ` bugzilla-daemon
2017-11-03 19:56 ` bugzilla-daemon
2017-11-03 20:40 ` bugzilla-daemon
2017-11-05 16:33 ` bugzilla-daemon
2017-11-05 17:30 ` bugzilla-daemon
2017-11-06 16:08 ` bugzilla-daemon
2017-11-13 13:14 ` bugzilla-daemon
2017-11-14 14: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.