Bug 108659 - Using Vulkan causes GPU hang on SI
Summary: Using Vulkan causes GPU hang on SI
Status: RESOLVED NOTABUG
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/radeon (show other bugs)
Version: git
Hardware: All Linux (All)
: medium major
Assignee: mesa-dev
QA Contact: mesa-dev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-11-05 11:57 UTC by Turo Lamminen
Modified: 2018-11-05 12:15 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
dmesg output (52.89 KB, text/plain)
2018-11-05 11:57 UTC, Turo Lamminen
Details

Description Turo Lamminen 2018-11-05 11:57:23 UTC
Created attachment 142367 [details]
dmesg output

Running any Vulkan program results in GPU hang. Tested with vulkan-smoketest.
OpenGL seems to work.

GPU Pitcairn
Kernel 4.18.0-2-amd64 #1 SMP Debian 4.18.10-2 (2018-11-02) from Debian testing
LLVM 8 version 1:8~svn343154-1 from Debian archive

Bisected to:

9cab8ccd6cb5aa8a4748dd6d7fc15d9747624df6 is the first bad commit
commit 9cab8ccd6cb5aa8a4748dd6d7fc15d9747624df6
Author: Jan Vesely <jan.vesely@rutgers.edu>
Date:   Thu Nov 1 14:30:08 2018 -0400

    amd: Make vgpr-spilling depend on llvm version
    
    The option was removed in LLVM r345763
    
    Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu>
    Reviewed-by: Marek Olšák <marek.olsak@amd.com>
    Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
    Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>

:040000 040000 714c7a610fea4409be1a0f77b4da9d2a9843c98a 3feec643d372230a87cfe74a22c05f5e7a60e0e1 M	src
Comment 1 Samuel Pitoiset 2018-11-05 12:08:12 UTC
You have llvm r343154 while that mesa commit requires r345763, can you update your llvm? Or revert that change locally?
Comment 2 Turo Lamminen 2018-11-05 12:12:40 UTC
Reverting the commit locally fixes the issue. That LLVM is currently the latest available in Debian, I'd have to go to LLVM's own repository.

Is it possible to either check LLVM version at runtime or fail configure step if the LLVM is too old?
Comment 3 Samuel Pitoiset 2018-11-05 12:15:23 UTC
No, we can't.

You can keep that revert locally until debian updates llvm also.


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.