Bug 97166 - lockup during gameplay of Batman series of games
Summary: lockup during gameplay of Batman series of games
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-01 13:09 UTC by farmboy0+freedesktop
Modified: 2016-12-08 16:31 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Journalctl log of the crash (9.93 KB, text/plain)
2016-08-24 11:33 UTC, Rick Kerkhof
Details
ddebug info (51.12 KB, text/plain)
2016-08-30 19:51 UTC, farmboy0+freedesktop
Details

Description farmboy0+freedesktop 2016-08-01 13:09:52 UTC
The games in question are:
Batman Arkham Asylum GotY Edition
Batman Arkham City GotY Edition
Batman Arkham Origins

The lockups are kind of random but happen not long after playing one of the games.
I have tried the nine tracker and CSMT with opengl. Both exhibit the problem.
I tried different kernel versions and also the andgpu-pro module and the lockup always happens.
The lockups dont happen with Catalyst 15.12 and wine CSMT.

There is never anything in dmesg or the X.org log.

Hardware is:
001:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Amethyst XT [Radeon R9 M295X Mac Edition] [1002:6938] (rev f1)
        Subsystem: PC Partner Limited / Sapphire Technology Amethyst XT [Radeon R9 M295X Mac Edition] [174b:e308]
        Kernel driver in use: amdgpu

I am using LLVM git and Mesa git.
Comment 1 Vedran Miletić 2016-08-01 15:19:38 UTC
Is this Tonga (380/380X) or some other card?
Comment 2 smoki 2016-08-01 15:23:57 UTC
 Mobile Tonga it seems.

 @farmboy0

 Does lockups happens with regular wine?

 I remember cases when Catalyst can lockup using wine-csmt too... just a note that wine-csmt isn't perfect always so check regular wine too.
Comment 3 Vedran Miletić 2016-08-01 15:27:32 UTC
(In reply to smoki from comment #2)
>  Mobile Tonga it seems.

Desktop and mobile chip have the same PCI ID, that's why I ask [1]. I might be able to test Batman on my 380X to confirm the issue.

[1] https://pci-ids.ucw.cz/read/PC/1002/6938
Comment 4 smoki 2016-08-01 15:54:09 UTC
  At least AMD listing 00, F0, F1 revs... so pci-ids project might try to differinate descriptions somehow by revs too:

 http://developer.amd.com/resources/ati-catalyst-pc-vendor-id-1002-li/

 For the bug, i suspect it is one of those "as soon as threading is pushed lockup happens" ;)
Comment 5 farmboy0+freedesktop 2016-08-02 11:09:45 UTC
This is a desktop Sapphire 380X.

I'll try with normal wine, I *think* I tried that already and it also locked up but Ill test again to be sure.
Comment 6 farmboy0+freedesktop 2016-08-02 12:07:13 UTC
Yep , also locking up with normal wine.

To test just run the benchmark. It will lock up there and in the normal game.
Comment 7 Vedran Miletić 2016-08-03 10:49:17 UTC
(In reply to farmboy0+freedesktop from comment #6)
> Yep , also locking up with normal wine.
> 
> To test just run the benchmark. It will lock up there and in the normal game.

How much hassle is to get Batman working? Is it more than wine Steam.exe, Install Batman, Play? If not, I could try it tomorrow.
Comment 8 farmboy0+freedesktop 2016-08-03 12:19:00 UTC
I *think* you need DotNet installed in your prefix.
My Steam install resides there at least.
Otherwise yeah Install and play should suffice.
You might want to remove the intro movies they are annyoing.
Instructions can be found in the PC Gaming Wiki.
Comment 9 Rick Kerkhof 2016-08-24 11:26:25 UTC
I'm going to attach part of a journalctl log of the hang/crash.
This is an Arch Linux host using the regular 'linux' Arch Linux kernel (version 4.7), Mesa 12.0.1, and Wine 1.9.17 (no matter if I use -staging or -gaming-nine) with a Sapphire R9 280X 3GB GDDR5 OC DUAL-X GPU.

A video of the crash as it happens: http://nanosector.ddns.net:9090/BGLL0XLY/file_309.mp4
Note that I don't know how long that video will be up for.

I've tried mesa-git to see if that eliminates the issue, but it behaves in the same manner.
Comment 10 Rick Kerkhof 2016-08-24 11:33:13 UTC
Created attachment 125998 [details]
Journalctl log of the crash
Comment 11 farmboy0+freedesktop 2016-08-30 19:51:27 UTC
Created attachment 126123 [details]
ddebug info
Comment 12 farmboy0+freedesktop 2016-12-04 14:24:13 UTC
Looks like this patch fixes the problem:
https://lists.freedesktop.org/archives/mesa-dev/2016-December/137213.html
Comment 13 Marek Olšák 2016-12-08 16:31:11 UTC
GPU hangs in Batman Arkham: Origins were fixed by this commit:

https://cgit.freedesktop.org/mesa/mesa/commit/?id=6dc96de303290e8d1fc294da478c4f370be98dea

Closing.


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.