Bug 98279 - [vulkan/radeon] dota2 -vulkan hangs the GPU on R9-390
Summary: [vulkan/radeon] dota2 -vulkan hangs the GPU on R9-390
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: git
Hardware: All Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 16:44 UTC by Jan Ziak (http://atom-symbol.net)
Modified: 2017-02-20 16:12 UTC (History)
4 users (show)

See Also:
i915 platform:
i915 features:


Attachments
the log before the computer lock (205.20 KB, text/plain)
2016-10-17 16:06 UTC, Manuel Iglesias
Details

Description Jan Ziak (http://atom-symbol.net) 2016-10-16 16:44:43 UTC
Launching Dota 2 (with -vulkan as a command-line argument) on R9-390 displays the title screen, but then it hangs the GPU.

Also, vulkancube and vulkantri fail to render correctly on this GPU but because Dota 2 is a more complex test case there is, in my opinion, no need to file a separate issue for vulkan{cube,tri}.

Extra question: Is the Radeon Vulkan driver being tested with GCN 1.1 GPUs by the driver developers?

----

4.3 (Core Profile) Mesa 12.1.0-devel (git-493237d)
Gallium 0.4 on AMD HAWAII (DRM 3.8.0 / 4.8.0+, LLVM 4.0.0)
Comment 1 Emil Velikov 2016-10-17 12:51:46 UTC
Jan, I'm not working on radv, so not sure how I can help here. Dropping myself from the CC list.
Comment 2 Jan Ziak (http://atom-symbol.net) 2016-10-17 13:11:14 UTC
(In reply to Emil Velikov from comment #1)
> Jan, I'm not working on radv, so not sure how I can help here. Dropping
> myself from the CC list.

Ok. I found your name in https://cgit.freedesktop.org/mesa/mesa/commit/?id=3fd0cafc1c04b35707e9f862d07edd0599fe18fa when I was adding people to the CC list.
Comment 3 Manuel Iglesias 2016-10-17 16:06:21 UTC
Created attachment 127362 [details]
the log before the computer lock

I got the same problem and i got in dmesg this before the computer crashes.
PD: i got the same GPU R9 390
Comment 4 Diego Vogogna 2016-11-03 18:16:59 UTC
Getting the same errors in log, amd R9 390, Dota 2 and vulkan cube from sdk tests freeze the system.

Running Arch x86_64
linux-git 4.9rc3.r206.g2a26d99-1 with no additional pathces
mesa-git 86246.f792f06-1
vulkan-radeon-git 86246.f792f06-1
llvm-libs-svn 285893-1
clang-svn 285893-1
Comment 5 Luke A. Guest 2016-11-03 21:58:26 UTC
I have told Dave Airlie about rendering issues on this card via irc before radv was mainlined.This https://youtu.be/zj9TCgdRn2c was the result of the demos, I don't know if this is the same issue you're having.
Comment 6 Jan Ziak (http://atom-symbol.net) 2016-11-04 08:14:12 UTC
(In reply to Luke A. Guest from comment #5)
> I have told Dave Airlie about rendering issues on this card via irc before
> radv was mainlined.This https://youtu.be/zj9TCgdRn2c was the result of the
> demos, I don't know if this is the same issue you're having.

Yes, it is the same issue as in the video. Thanks.
Comment 7 Jan Ziak (http://atom-symbol.net) 2016-11-04 09:18:53 UTC
(In reply to Jan Ziak from comment #0)
> Also, vulkancube and vulkantri fail to render correctly on this GPU but
> because Dota 2 is a more complex test case there is, in my opinion, no need
> to file a separate issue for vulkan{cube,tri}.
Bug 98588 formalizes the above paragraph.
Comment 8 Roman Serkov 2016-11-21 06:18:17 UTC
I'm having the same issue but on R7 265 (PITCAIRN) on Arch
OpenGL core profile version string: 4.5 (Core Profile) Mesa 13.1.0-devel (git-203c879)

Tried linux-4.9-rc5 and linux-next-20161117. Been trying many kernels and mesa builds before, hoping it would work but havent tried linux-4.9-rc6 yet. Dota2 just hangs the system using wayland, though on Xorg i am able to alt-tab to terminal and kill the process.
Comment 9 Michel Dänzer 2016-11-21 06:26:34 UTC
(In reply to Roman Serkov from comment #8)
> [...] on Xorg i am able to alt-tab to terminal and kill the process.

You may be running into a known issue with libxcb in the Steam runtime, see bug 97174.
Comment 10 Roman Serkov 2016-12-13 12:22:03 UTC
After trying to run Dota2 with -vulkan on 4.9 release kernel, it now always hangs the gpu, before on rc2-7 i was sometimes able to alt-tab and kill the process, not sure how thats related, even if it is. I can move the mouse, but i'm not able to do anything else, only hard reset.

I am running on Arch
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Pitcairn PRO [Radeon HD 7850 / R7 265 / R9 270 1024SP]

OpenGL renderer string: Gallium 0.4 on AMD PITCAIRN (DRM 3.8.0 / 4.9.0-mainline, LLVM 4.0.0)

mesa-git 87291.ec0a0a6-1
vulkan-radeon-git 87291.ec0a0a6-1
llvm-libs-svn 289468-1
xf86-video-amdgpu-git 260.d60ea47-1

With journalctl -b -1 -k i only have these 4 lines:
amdgpu 0000:01:00.0: GPU fault detected: 147 0x0724c802
amdgpu 0000:01:00.0:   VM_CONTEXT1_PROTECTION_FAULT_ADDR   0x0011E7B9
amdgpu 0000:01:00.0:   VM_CONTEXT1_PROTECTION_FAULT_STATUS 0x040C8002
amdgpu 0000:01:00.0: VM fault (0x02, vmid 2) at page 1173433, read from '' (0x00000000) (200)
Comment 11 Roman Serkov 2016-12-13 12:25:35 UTC
(In reply to Michel Dänzer from comment #9)
> You may be running into a known issue with libxcb in the Steam runtime, see
> bug 97174.

I've always been running steam with STEAM_RUNTIME=0 so it should not be using steam's libxcb if i'm not mistaken. I did try workarounds in bug 97174 and nothing helped.
Comment 12 Manuel Iglesias 2017-02-20 15:24:38 UTC
It seems like the bug it´s fioxed with the lastest mesa git


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.