[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2019-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #86 from Shmerl  ---
(In reply to Dmitry from comment #85)
> This problem is still there on the new Mesa 18.3.1. On AMDLK there is no
> such problem, but I would not like to use it.

This bug was about radeonsi, not about Vulkan drivers.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2019-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #85 from Dmitry  ---
This problem is still there on the new Mesa 18.3.1. On AMDLK there is no such
problem, but I would not like to use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

Christian König  changed:

   What|Removed |Added

 Status|RESOLVED|CLOSED

--- Comment #84 from Christian König  ---
Guys please keep in mind that GPUs are programmable processors.

So when an application sends an shader with an infinity loop to the driver
there is absolutely nothing the driver Mesa stack can do about that.

As Jozef correctly pointed out the best thing we can do is resetting the GPU
after a timeout, but that is really complex and doesn't work all the time.

Anyway closing this bug since the original issue is fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #83 from Samuel Pitoiset  ---
I do agree with Jozef, it's really a different issue that the one initially
filled here. Thanks again for fixing this!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

mirh  changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution|--- |NOTOURBUG

--- Comment #82 from mirh  ---
Guess it make sense. 
A thread per "actual issue to fix". 

Even though, it should take nothing to just change component from mesa to DRI
:p

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #81 from Józef Kucia  ---
(In reply to mirh from comment #80)
> I also agree with Fabian. 
> Application going crazy with its own business is totally not a "problem of
> the driver".. 
> But compromising system stability definitively is.
If you want to make this bug about unreliable/unimplemented GPU resets in
amdgpu.ko, then it is filed against the wrong component. AFAIK there is nothing
to fix in Mesa. Other than that, the bug is full of comments about the source
of GPU hang. It may be better to file a new bug for implementing/fixing GPU
resets in amdgpu.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

mirh  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|NOTOURBUG   |---

--- Comment #80 from mirh  ---
I also agree with Fabian. 
Application going crazy with its own business is totally not a "problem of the
driver".. 
But compromising system stability definitively is.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #79 from Fabian Maurer  ---
Nice to hear the bug is fixed in wine, but the mesa bug still exists, so the
resolution is wrong. It's simply not acceptable for a driver to freeze the
system if an application misbehaves.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

Józef Kucia  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |NOTOURBUG

--- Comment #78 from Józef Kucia  ---
Fixed in Wine 2.21

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-11-08 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

Józef Kucia  changed:

   What|Removed |Added

   See Also||https://bugs.winehq.org/sho
   ||w_bug.cgi?id=43273

--- Comment #77 from Józef Kucia  ---
This bug should be fixed now in Wine main git tree. The fix will be included in
the next development release.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-10-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #76 from Shmerl  ---
Unlike the previous one, it's minimal and doesn't conflict with various staging
patches that are also useful for TW3.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-10-04 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #75 from Shmerl  ---
I made a variant of this hack for Wine itself:
https://bugs.winehq.org/attachment.cgi?id=59387

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #74 from mirh  ---
Wine's role should just be that of avoiding their.. stuff, to misbehave. 

But as for the freeze itself, I'd be expecting a bug in amdgpu, if the user
level bug was *allowed* to escalate to kernel one.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-24 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #73 from Shmerl  ---
Józef Kucia made a hack patch for Wine to prevent the freeze:
https://bugs.winehq.org/show_bug.cgi?id=43273#c43

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #72 from Shmerl  ---
(In reply to Samuel Pitoiset from comment #68)
> Thanks for confirming that the hack actually works.
> 
> Yeah, it would be better to not hang in such situation but that's
> complicated.

Would that require changes to the kernel driver?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #69 from ai...@jmad.org ---
(In reply to Samuel Pitoiset from comment #61)
> Created attachment 134356 [details] [review]
> updated special varying hack
> 
> What about this updated patch? (the previous has to be reverted).

What commit should this patch be applied to?  It fails when applying to mesa
17.2.1:

patching file src/mesa/main/transformfeedback.c
Hunk #1 succeeded at 421 with fuzz 1 (offset 14 lines).
Hunk #2 succeeded at 1117 with fuzz 2 (offset 256 lines).
Hunk #3 FAILED at 870.
Hunk #4 FAILED at 879.
2 out of 4 hunks FAILED -- saving rejects to file
src/mesa/main/transformfeedback.c.rej

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #68 from Samuel Pitoiset  ---
Thanks for confirming that the hack actually works.

Yeah, it would be better to not hang in such situation but that's complicated.
Though, you can try to boot with amdgpu.lockup_timeout=3000 (ie. wait 3s) to
recover the state when a lockup is detected, it might work.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #67 from Lukas Jirkovsky  ---
I can confirm that it works fine here after applying the hack, too.

Anyway, I'm with Shmerl here. In my opinion a user process should never be able
to make system unusable no matter what kind of stupid stuff it does. I'm fine
with the application crashing or behaving incorrectly - it's that applications
fault after all. Just don't take the system with it.

Also, great work, thank you!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #66 from Shmerl  ---
(In reply to Samuel Pitoiset from comment #64)
> 
> The attached patches should workaround both issues (TW3 and Superposition),
> but wine has to be fixed here.
> 
> Please, let the bug open until it's really fixed.

While Wine does something incorrect here, shouldn't amdgpu/radeonsi still
handle such kind of issues more gracefully? I.e. while Wine should be fixed, I
think Mesa shouldn't cause a system freeze when that happens. Can your patch
approach be generally useful for Mesa to make it more resilient, or some other
solution would be needed?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #65 from Shmerl  ---
(In reply to Samuel Pitoiset from comment #61)
> Created attachment 134356 [details] [review]
> updated special varying hack
> 
> What about this updated patch? (the previous has to be reverted).

Great! I can confirm, this patch helps both full staging, and regular + minimal
patches Wine. Thanks! I'll point Wine developers to this.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #64 from Samuel Pitoiset  ---
See the attached trace from
https://bugs.freedesktop.org/show_bug.cgi?id=102797, it reproduces the same
issue.

So, basically the issue is that wine fails to set the transform feedback
varyings in some situations, this explains why the following message is
reported "fixme:d3d_shader:shader_glsl_generate_transform_feedback_varyings
Unsupported component range 2-2.". Then, the GPU will hang later on because it
will read garbage from a TFB buffer.

About TW3, I think that game uses TFB in some scenarios, I don't know why and
when, maybe it's based on some occlusion queries or some time constraints?
Either way, this might explain why TFB is not used when tracing with apitrace
or when using "GALLIUM_DDEBUG=800" which will flush and wait 800ms after every
draw call.

The attached patches should workaround both issues (TW3 and Superposition), but
wine has to be fixed here.

Please, let the bug open until it's really fixed.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

Samuel Pitoiset  changed:

   What|Removed |Added

 CC||dark.shad...@web.de

--- Comment #63 from Samuel Pitoiset  ---
*** Bug 102797 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #62 from Shmerl  ---
I'll give a try. May be game settings affect what's going on too. For the
reference, I set all to max, except hairworks off. Ambient occlusion: HBAO+.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #61 from Samuel Pitoiset  ---
Created attachment 134356
  --> https://bugs.freedesktop.org/attachment.cgi?id=134356=edit
updated special varying hack

What about this updated patch? (the previous has to be reverted).

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #60 from Samuel Pitoiset  ---
Yeah, I built against the same commit and I'm able to reproduce the link-time
error.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #59 from Shmerl  ---
Actually, looks like 2.17 is the last one, so their official build should be
just that. It's based on commit bb16263fe1974851f495435fef9a3d57fa2d4aa9

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #58 from Shmerl  ---
I suppose I can also build Wine from that commit and apply all staging patches
including past 2.17.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #57 from Shmerl  ---
Here is the run with Wine staging 2.17 (MESA_DEBUG set):

ATTENTION: default value of option mesa_glthread overridden by environment.
*** The Witcher 3 SPECIAL HACK ENABLED ***
Mesa: User error: GL_INVALID_OPERATION in glGetUniformLocation(program not
linked)
Mesa: 244 similar GL_INVALID_OPERATION errors
Mesa: User error: GL_INVALID_OPERATION in glUseProgram(program 662 not linked)
Mesa: 1 similar GL_INVALID_OPERATION errors
Mesa: User error: GL_INVALID_OPERATION in glBeginTransformFeedback(no varyings
to record)
Aborted! TFB varyings not correctly set!
source->Id = 250
AL lib: (EE) alc_cleanup: 2 devices not closed

It looks slightly different than before.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #56 from Shmerl  ---
(In reply to Samuel Pitoiset from comment #55)
> Okay, the hack doesn't work for you, Mesa fails to link because the varying
> name is not the same.
> 
> What version of wine are you using? FWIW, I'm building my local copy from
> bb16263fe1974851f495435fef9a3d57fa2d4aa9 with all wine-staging patches
> applied on top of that commit.

Ah, I'm not using full staging, but regular Wine (relatively recent master
build) with minimal patchsets required to run the game (as described here:
https://appdb.winehq.org/objectManager.php?sClass=version=34698#notes ).

Let me try it with full staging 2.17.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #55 from Samuel Pitoiset  ---
Okay, the hack doesn't work for you, Mesa fails to link because the varying
name is not the same.

What version of wine are you using? FWIW, I'm building my local copy from
bb16263fe1974851f495435fef9a3d57fa2d4aa9 with all wine-staging patches applied
on top of that commit.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #54 from Shmerl  ---
Created attachment 134355
  --> https://bugs.freedesktop.org/attachment.cgi?id=134355=edit
Hack patch debug run log

Run with MESA_DEBUG=true and Wine logging enabled.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #53 from Samuel Pitoiset  ---
Okay, that's expected. Didn't you get some Mesa user errors as well?

But the fact that it no longer hangs is a good news, somehow. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #52 from Shmerl  ---
(In reply to Samuel Pitoiset from comment #51)
> Guys, can you apply the proposed special hacky patch and try to reproduce
> the hang? It should, at least, partially "fix" the issue in the Velen area
> (cf the savegame file).
> 

I applied your hack patch, and here is the output I got (with my other settings
active):

ATTENTION: default value of option mesa_glthread overridden by environment.
*** The Witcher 3 SPECIAL HACK ENABLED ***
Aborted! TFB varyings not correctly set!
source->Id = 250
AL lib: (EE) alc_cleanup: 2 devices not closed

The game indeed aborts, rather than hangs there.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-19 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #51 from Samuel Pitoiset  ---
Created attachment 134349
  --> https://bugs.freedesktop.org/attachment.cgi?id=134349=edit
special varying hack

Guys, can you apply the proposed special hacky patch and try to reproduce the
hang? It should, at least, partially "fix" the issue in the Velen area (cf the
savegame file).

To be sure the hack is enabled, please redirect stderr (wine witcher3.exe &>
log) and look for "*** The Witcher 3 SPECIAL HACK ENABLED ***".

If the game exits with "Aborted! TFB varyings not correctly set!", there is
something else, but I wouldn't be surprised as the patch is a huge hack just
used to demonstrate the issue. Please report anyways. Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #50 from Shmerl  ---
(In reply to Alex Deucher from comment #49)
> You can force a reset by reading /sys/kernel/debug/dri/0/amdgpu_gpu_reset
> but very few if any applications currently use the GL robustness extensions
> to query if the context is lost and resubmit their state.

For a test, I tried doing

sudo cat /sys/kernel/debug/dri/1/amdgpu_gpu_reset

during normal desktop operation (in this setup it's card 1), and it just messes
up KDE / sddm and even restarting sddm it isn't enough after that (soft reboot
was enough).

Then I tested it after the The Witcher 3 freeze above (remotely, over ssh).
That caused complete hang, that even ssh stopped working. So that required hard
reboot.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #49 from Alex Deucher  ---
You can force a reset by reading /sys/kernel/debug/dri/0/amdgpu_gpu_reset but
very few if any applications currently use the GL robustness extensions to
query if the context is lost and resubmit their state.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #48 from Shmerl  ---
(In reply to Lukas Jirkovsky from comment #47)
> There's no such file on my system. There is a reset file for other PCI
> busses, but not for the GPU.

I don't have it either for RX 480 card.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #47 from Lukas Jirkovsky  ---
(In reply to Jan Vesely from comment #45)
> sounds like hung GPU. afaik amdgpu.ko does not support GPU timeout/reset yet.
> you can try reseting the GPU manually via 
> /sys/class/drm/cardX/device/reset

There's no such file on my system. There is a reset file for other PCI busses,
but not for the GPU.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #46 from Shmerl  ---
(In reply to Jan Vesely from comment #45)
> sounds like hung GPU. afaik amdgpu.ko does not support GPU timeout/reset yet.
> you can try reseting the GPU manually via 
> /sys/class/drm/cardX/device/reset

How exactly, by writing 1 there?

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-15 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #45 from Jan Vesely  ---
(In reply to Shmerl from comment #44)
> (In reply to Lukas Jirkovsky from comment #43)
> > Here are some additional information:
> 
> Yes, I observed that as well. You can access the box over ssh, but it
> doens't react to any local input. Also attempts to reboot it remotely hang
> (systemctl reboot). And lack of any sensible info in the logs is just
> strange.

sounds like hung GPU. afaik amdgpu.ko does not support GPU timeout/reset yet.
you can try reseting the GPU manually via 
/sys/class/drm/cardX/device/reset

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #44 from Shmerl  ---
(In reply to Lukas Jirkovsky from comment #43)
> Here are some additional information:

Yes, I observed that as well. You can access the box over ssh, but it doens't
react to any local input. Also attempts to reboot it remotely hang (systemctl
reboot). And lack of any sensible info in the logs is just strange.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

--- Comment #43 from Lukas Jirkovsky  ---
I'm having the same problem during the initial cutscene in Velen.

Here are some additional information:

* While the computer seems frozen, it's not frozen completely. I can still
connect over ssh and do stuff there as if nothing happened. Other services work
uninterrupted, too.

* Locally, only SysRq helps. Even after killing everything using Alt+SysRq+i
the computer doesn't react to anything apart from more SysRq shortcuts.

* dmesg doesn't contain anything useful

* Xorg.0.log doesn't contain anything useful either (on the wine bug there is a
mention about input devices being removed, but that doesn't appear here unless
forced using SysRq).

Happens with AMD RX 480 with mesa 17.2.0 and linux kernel 4.13.2

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel


[Bug 101731] System freeze with AMDGPU when playing The Witcher 3 (GOG GOTY)

2017-09-14 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101731

Samuel Pitoiset  changed:

   What|Removed |Added

Summary|System freeze with AMDGPU   |System freeze with AMDGPU
   |when playing The Witcher 3  |when playing The Witcher 3
   ||(GOG GOTY)

-- 
You are receiving this mail because:
You are the assignee for the bug.___
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel