All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
@ 2017-12-10 14:28 bugzilla-daemon
  2017-12-21 15:42 ` bugzilla-daemon
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-12-10 14:28 UTC (permalink / raw)
  To: dri-devel


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

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

            Bug ID: 104193
           Summary: [radeonsi] The Witcher 3 freezes the system with no
                    attachments calls & transform feedback Wine patch
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Drivers/Gallium/radeonsi
          Assignee: dri-devel@lists.freedesktop.org
          Reporter: shtetldik@gmail.com
        QA Contact: dri-devel@lists.freedesktop.org

Created attachment 136068
  --> https://bugs.freedesktop.org/attachment.cgi?id=136068&action=edit
The Witcher 3: rotfiends radeonsi freeze

Wine has an issue with distorted monsters in The Witcher 3. Józef Kucia
identified the problem as follows:

* wined3d doesn't support draw calls with no attachments,
* wined3d tries to map transform feedback buffers while transform feedback is
paused.

See https://bugs.winehq.org/show_bug.cgi?id=43872#c8

He provided a patch:
https://bugs.winehq.org/attachment.cgi?id=59848&action=diff&context=patch&collapsed=&headers=1&format=raw

However applying it, is causing a system freeze (with radeonsi) after such kind
of monsters are encountered in the game and fighting them for some time. See
attached savegame for example with rotfiends.

Interestingly, Józef Kucia couldn't reproduce this freeze with radeon driver,
so it appears to be radeonsi specific.

You can apply the above Wine patch to Wine git master to test it (I build Wine
using just that patch, and one staging patch for performance: 

https://raw.githubusercontent.com/wine-compholio/wine-staging/master/patches/wined3d-buffer_create/0001-wined3d-Do-not-pin-large-buffers.patch

My last test environment:

OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.18.0
/ 4.13.0-1-amd64, LLVM 5.0.0)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.4.0-devel
(git-b926da241a)

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
@ 2017-12-21 15:42 ` bugzilla-daemon
  2017-12-24  0:29 ` bugzilla-daemon
                   ` (10 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-12-21 15:42 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #1 from Shmerl <shtetldik@gmail.com> ---
Interestingly, this freeze seems to be Polaris specific. Users with Vega cards
didn't manage to reproduce it. Same with older GCN 1.0 cards such as R9 M375
using amdgpu.ko.

So can it be a bug in amdgpu itself then?

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
  2017-12-21 15:42 ` bugzilla-daemon
@ 2017-12-24  0:29 ` bugzilla-daemon
  2017-12-29  4:53 ` bugzilla-daemon
                   ` (9 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-12-24  0:29 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #2 from Shmerl <shtetldik@gmail.com> ---
A correction, apparently Vega users are still getting the freeze, but unlike
the Polaris case, they are able to exit the game without the whole system
hanging (may be because Vega supports GPU reset better).

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
  2017-12-21 15:42 ` bugzilla-daemon
  2017-12-24  0:29 ` bugzilla-daemon
@ 2017-12-29  4:53 ` bugzilla-daemon
  2018-01-28 19:21 ` bugzilla-daemon
                   ` (8 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2017-12-29  4:53 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #3 from Shmerl <shtetldik@gmail.com> ---
Tested it with Linux 4.15rc5 and new amdgpu.dc=1 (to enable new display code).
The freeze still happens.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (2 preceding siblings ...)
  2017-12-29  4:53 ` bugzilla-daemon
@ 2018-01-28 19:21 ` bugzilla-daemon
  2018-03-02 21:37 ` bugzilla-daemon
                   ` (7 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-01-28 19:21 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #4 from Shmerl <shtetldik@gmail.com> ---
Created attachment 137009
  --> https://bugs.freedesktop.org/attachment.cgi?id=137009&action=edit
GALLIUM_DDEBUG dumps during the GPU freeze

I run TW3 with GALLIUM_DDEBUG=10000 (10 second delay for GPU hang detection).
It detected the hang when it actually happened (I also had to build umr
debugger from source, since Mesa complained otherwise that umr isn't found).

I attach produced dumps, please check if it helps identifying the issue. See
also included debug.log for console output. Let me know if it can be run in
some other way to get more information.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (3 preceding siblings ...)
  2018-01-28 19:21 ` bugzilla-daemon
@ 2018-03-02 21:37 ` bugzilla-daemon
  2018-03-04  1:38 ` bugzilla-daemon
                   ` (6 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-02 21:37 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #5 from Shmerl <shtetldik@gmail.com> ---
Starting from Wine 3.3, the patch for invisible monsters that's causing the
freeze is in Wine source, so you can test regular stock Wine from 3.3 and newer
to narrow down the freeze using the attached save above.

I still get the freeze with the following:

OS: Debian testing x86_64 (kernel 4.15.4).
OpenGL renderer string: AMD Radeon (TM) RX 480 Graphics (POLARIS10 / DRM 3.23.0
/ 4.15.4-rcu, LLVM 5.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.0-devel
(git-51562ea7a0)

Proposed workaround MESA_EXTENSION_OVERRIDE=-GL_ARB_framebuffer_no_attachments
prevents the freeze, but also avoids fixing the actual bug with invisible
monsters.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (4 preceding siblings ...)
  2018-03-02 21:37 ` bugzilla-daemon
@ 2018-03-04  1:38 ` bugzilla-daemon
  2018-03-04  2:58 ` bugzilla-daemon
                   ` (5 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-04  1:38 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #6 from Shmerl <shtetldik@gmail.com> ---
I managed to narrow it down to building Wine with -march=znver1 that I used for
AMD Ryzen. Without that, it's not freezing.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (5 preceding siblings ...)
  2018-03-04  1:38 ` bugzilla-daemon
@ 2018-03-04  2:58 ` bugzilla-daemon
  2018-03-23  1:37 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-04  2:58 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #7 from Shmerl <shtetldik@gmail.com> ---
Actually, scrap that. I've just got another freeze even without znver1.

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (6 preceding siblings ...)
  2018-03-04  2:58 ` bugzilla-daemon
@ 2018-03-23  1:37 ` bugzilla-daemon
  2018-03-23  7:56 ` [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10) bugzilla-daemon
                   ` (3 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23  1:37 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #8 from Shmerl <shtetldik@gmail.com> ---
I got a new Sapphire Pulse Vega 56, and when using it - no freezes, I tested
multiple times. It's possible, that with RX 480 it exposed some kind of
hardware defect, hard to tell.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10)
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (7 preceding siblings ...)
  2018-03-23  1:37 ` bugzilla-daemon
@ 2018-03-23  7:56 ` bugzilla-daemon
  2018-03-25 17:21 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-23  7:56 UTC (permalink / raw)
  To: dri-devel


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

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

Józef Kucia <joseph.kucia@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[radeonsi] The Witcher 3    |[radeonsi] The Witcher 3
                   |freezes the system with no  |freezes the system
                   |attachments calls &         |(POLARIS10)
                   |transform feedback Wine     |
                   |patch                       |

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10)
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (8 preceding siblings ...)
  2018-03-23  7:56 ` [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10) bugzilla-daemon
@ 2018-03-25 17:21 ` bugzilla-daemon
  2018-07-25 18:50 ` bugzilla-daemon
  2019-09-25 18:01 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-03-25 17:21 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #9 from Lukas Jirkovsky <l.jirkovsky@gmail.com> ---
For the record - the freeze also happens when using R600_DEBUG=nir on current
mesa from git (5a75019ad0). I also have RX 480.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10)
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (9 preceding siblings ...)
  2018-03-25 17:21 ` bugzilla-daemon
@ 2018-07-25 18:50 ` bugzilla-daemon
  2019-09-25 18:01 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2018-07-25 18:50 UTC (permalink / raw)
  To: dri-devel


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

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

--- Comment #10 from Christian Widmer <cwidmer@umbrox.de> ---
It seems I have also just hit this bug. I am able to trigger hangs on my
Sapphire Nitro+ Radeon RX 580 Special Edition on the first fight with ghouls
after Geralt awakes from his dream at the beginning of the game using wine
3.13. It does not happen all the time, but when I do the fight a few times,
there is eventually a point where it freezes.

I am using mesa git on commit c3eaf8fe5746e5b29a46a076247ba072c84e2ec5 and
kernel 4.17.9 with the Gentoo patchset.

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

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

* [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10)
  2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
                   ` (10 preceding siblings ...)
  2018-07-25 18:50 ` bugzilla-daemon
@ 2019-09-25 18:01 ` bugzilla-daemon
  11 siblings, 0 replies; 13+ messages in thread
From: bugzilla-daemon @ 2019-09-25 18:01 UTC (permalink / raw)
  To: dri-devel


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

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

GitLab Migration User <gitlab-migration@fdo.invalid> changed:

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

--- Comment #11 from GitLab Migration User <gitlab-migration@fdo.invalid> ---
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been
closed from further activity.

You can subscribe and participate further through the new bug through this link
to our GitLab instance: https://gitlab.freedesktop.org/mesa/mesa/issues/1290.

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

[-- Attachment #1.2: Type: text/html, Size: 2465 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-09-25 18:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-10 14:28 [Bug 104193] [radeonsi] The Witcher 3 freezes the system with no attachments calls & transform feedback Wine patch bugzilla-daemon
2017-12-21 15:42 ` bugzilla-daemon
2017-12-24  0:29 ` bugzilla-daemon
2017-12-29  4:53 ` bugzilla-daemon
2018-01-28 19:21 ` bugzilla-daemon
2018-03-02 21:37 ` bugzilla-daemon
2018-03-04  1:38 ` bugzilla-daemon
2018-03-04  2:58 ` bugzilla-daemon
2018-03-23  1:37 ` bugzilla-daemon
2018-03-23  7:56 ` [Bug 104193] [radeonsi] The Witcher 3 freezes the system (POLARIS10) bugzilla-daemon
2018-03-25 17:21 ` bugzilla-daemon
2018-07-25 18:50 ` bugzilla-daemon
2019-09-25 18:01 ` 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.