Bug 102940 - Regression: Vulkan KMS rendering crashes since 17.2
Summary: Regression: Vulkan KMS rendering crashes since 17.2
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Vulkan/intel (show other bugs)
Version: 17.2
Hardware: Other All
: medium normal
Assignee: Jason Ekstrand
QA Contact: Intel 3D Bugs Mailing List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-22 07:34 UTC by Lubosz Sarnecki
Modified: 2017-10-12 09:11 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
master: vkcube on Braswell (1.25 KB, text/x-log)
2017-09-22 07:34 UTC, Lubosz Sarnecki
Details
17.2.1: vkcube on Haswell (1.20 KB, text/x-log)
2017-09-22 07:34 UTC, Lubosz Sarnecki
Details
17.2.1: vkcube on Skylake (1.17 KB, text/x-log)
2017-09-22 07:34 UTC, Lubosz Sarnecki
Details
17.2.1: vkcube on Braswell (1.25 KB, text/x-log)
2017-09-22 07:35 UTC, Lubosz Sarnecki
Details
17.2.1: vkmark on Braswell (2.20 KB, text/x-log)
2017-09-22 07:36 UTC, Lubosz Sarnecki
Details
17.2.1: vkmark on Haswell (2.25 KB, text/x-log)
2017-09-22 07:36 UTC, Lubosz Sarnecki
Details
17.2.1: vkmark on Skylake (2.06 KB, text/x-log)
2017-09-22 07:37 UTC, Lubosz Sarnecki
Details
First bad: vkcube on Braswell (881 bytes, text/x-log)
2017-09-22 07:37 UTC, Lubosz Sarnecki
Details
First bad: vkcube on Haswell (841 bytes, text/x-log)
2017-09-22 07:38 UTC, Lubosz Sarnecki
Details
First bad: vkcube on Skylake (958 bytes, text/x-log)
2017-09-22 07:38 UTC, Lubosz Sarnecki
Details
First bad: vkmark on Braswell (2.19 KB, text/x-log)
2017-09-22 07:38 UTC, Lubosz Sarnecki
Details
First bad: vkmark on Haswell (2.24 KB, text/x-log)
2017-09-22 07:39 UTC, Lubosz Sarnecki
Details
First bad: vkmark on Skylake (1.92 KB, text/x-log)
2017-09-22 07:39 UTC, Lubosz Sarnecki
Details
master: vkcube on Haswell (1016 bytes, text/x-log)
2017-09-22 07:40 UTC, Lubosz Sarnecki
Details
master: vkcube on Skylake (1.15 KB, text/x-log)
2017-09-22 07:41 UTC, Lubosz Sarnecki
Details
master: vkmark on Braswell (2.23 KB, text/x-log)
2017-09-22 07:41 UTC, Lubosz Sarnecki
Details
master: vkmark on Haswell (2.26 KB, text/x-log)
2017-09-22 07:42 UTC, Lubosz Sarnecki
Details
master: vkmark on Skylake (2.39 KB, text/x-log)
2017-09-22 07:42 UTC, Lubosz Sarnecki
Details

Description Lubosz Sarnecki 2017-09-22 07:34:01 UTC
Created attachment 134422 [details]
master: vkcube on Braswell

Vulkan KMS rendering breaks with commit 818b8579145196c7a8d4095bd5e65367e02a8fef

I could reproduce the crash on Haswell, Braswell and Skylake with vkcube and vkmark.
https://github.com/krh/vkcube
https://github.com/vkmark/vkmark

kmscube still works, the issue is limited to Vulkan.

I produced backtraces at the following commits, which are different.

818b8579145196c7a8d4095bd5e65367e02a8fef First bad
d6d2b6b5ec9b1638c0827582872670c7da79bb53 17.2.1
df8767a14e3eae4dcb8241b731b34e9379706795 Master 

On some platforms in some commits stash smashing is detected:
*** stack smashing detected ***: <unknown> terminated

vkmark does not always crash, look for SIGINT in the backtraces where it just froze.

Crash overview:

       | First bad             | 17.2.1                | Master
_____________________________________________________________________________________
vkcube | anv_CreateImageView   | anv_CreateImageView   | vk_alloc
vkmark | isl_surf_fill_state_s | isl_surf_fill_state_s | anv_image_fill_surface_state
Comment 1 Lubosz Sarnecki 2017-09-22 07:34:28 UTC
Created attachment 134423 [details]
17.2.1: vkcube on Haswell
Comment 2 Lubosz Sarnecki 2017-09-22 07:34:50 UTC
Created attachment 134424 [details]
17.2.1: vkcube on Skylake
Comment 3 Lubosz Sarnecki 2017-09-22 07:35:32 UTC
Created attachment 134425 [details]
17.2.1: vkcube on Braswell
Comment 4 Lubosz Sarnecki 2017-09-22 07:36:28 UTC
Created attachment 134426 [details]
17.2.1: vkmark on Braswell
Comment 5 Lubosz Sarnecki 2017-09-22 07:36:49 UTC
Created attachment 134427 [details]
17.2.1: vkmark on Haswell
Comment 6 Lubosz Sarnecki 2017-09-22 07:37:07 UTC
Created attachment 134428 [details]
17.2.1: vkmark on Skylake
Comment 7 Lubosz Sarnecki 2017-09-22 07:37:49 UTC
Created attachment 134429 [details]
First bad: vkcube on Braswell
Comment 8 Lubosz Sarnecki 2017-09-22 07:38:11 UTC
Created attachment 134430 [details]
First bad: vkcube on Haswell
Comment 9 Lubosz Sarnecki 2017-09-22 07:38:30 UTC
Created attachment 134431 [details]
First bad: vkcube on Skylake
Comment 10 Lubosz Sarnecki 2017-09-22 07:38:57 UTC
Created attachment 134432 [details]
First bad: vkmark on Braswell
Comment 11 Lubosz Sarnecki 2017-09-22 07:39:38 UTC
Created attachment 134433 [details]
First bad: vkmark on Haswell
Comment 12 Lubosz Sarnecki 2017-09-22 07:39:59 UTC
Created attachment 134434 [details]
First bad: vkmark on Skylake
Comment 13 Lubosz Sarnecki 2017-09-22 07:40:36 UTC
Created attachment 134435 [details]
master: vkcube on Haswell
Comment 14 Lubosz Sarnecki 2017-09-22 07:41:09 UTC
Created attachment 134436 [details]
master: vkcube on Skylake
Comment 15 Lubosz Sarnecki 2017-09-22 07:41:31 UTC
Created attachment 134437 [details]
master: vkmark on Braswell
Comment 16 Lubosz Sarnecki 2017-09-22 07:42:00 UTC
Created attachment 134438 [details]
master: vkmark on Haswell
Comment 17 Lubosz Sarnecki 2017-09-22 07:42:17 UTC
Created attachment 134439 [details]
master: vkmark on Skylake
Comment 19 Lubosz Sarnecki 2017-10-12 09:11:57 UTC
Thanks, works for me. In vkcube at least. vkmark still freezes, but this is probably fixable in the application.


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.