[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-12-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #7 from Samuel Pitoiset  ---
Well, the validation layers report a bunch of errors with your app, like:

Validation layer: (F8)  [ VUID-vkCmdEndRenderPass-commandBuffer-cmdpool ]
Object: 0x5638b8e4f6b0 (Type = 6) | Cannot call vkCmdEndRenderPass() on a
command buffer allocated from a pool without VK_QUEUE_GRAPHICS_BIT
capabilities.. The Vulkan spec states: The VkCommandPool that commandBuffer was
allocated from must support graphics operations
(https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdEndRenderPass-commandBuffer-cmdpool)

Validation layer: (F8)  [
UNASSIGNED-CoreValidation-DrawState-InvalidImageLayout ] Object: 0x5638b8279a80
(Type = 6) | Submitted command buffer expects image 0x3 (subresource:
aspectMask 0x1 array layer 0, mip level 0) to be in layout
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL--instead, image 0x3's current layout
is VK_IMAGE_LAYOUT_UNDEFINED.

Validation layer: (F8)  [ VUID-vkCmdBeginRenderPass-commandBuffer-cmdpool ]
Object: 0x5638b8e5a3f0 (Type = 6) | Cannot call vkCmdBeginRenderPass() on a
command buffer allocated from a pool without VK_QUEUE_GRAPHICS_BIT
capabilities.. The Vulkan spec states: The VkCommandPool that commandBuffer was
allocated from must support graphics operations
(https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkCmdBeginRenderPass-commandBuffer-cmdpool)

As Vulkan is a low-level API, it's not surprising that the GPU hangs if you do
something bad. The first step is to *always* enable the validation layers in
order to make sure your application is correct. If after fixing all errors the
GPU still hangs with RADV, it might be a problem in the driver.

Feel free to re-open if the problem still happens after making sure you use the
API the right way.

Thanks!

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-12-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

Samuel Pitoiset  changed:

   What|Removed |Added

 Resolution|FIXED   |NOTOURBUG

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-12-18 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

Samuel Pitoiset  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #6 from Hal Gentz  ---
Created attachment 137284
  --> https://bugs.freedesktop.org/attachment.cgi?id=137284=edit
A call trace from the kernel because the process was hung

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #4 from Hal Gentz  ---
Created attachment 137282
  --> https://bugs.freedesktop.org/attachment.cgi?id=137282=edit
results from running `glxinfo`

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #5 from Hal Gentz  ---
Created attachment 137283
  --> https://bugs.freedesktop.org/attachment.cgi?id=137283=edit
results from running `glinfo`

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #3 from Hal Gentz  ---
Created attachment 137281
  --> https://bugs.freedesktop.org/attachment.cgi?id=137281=edit
what the program outputs when run from ssh with x-forwarding (program crashes
before it can lock the gpu)

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #1 from Hal Gentz  ---
Created attachment 137279
  --> https://bugs.freedesktop.org/attachment.cgi?id=137279=edit
results from running `vulkaninfo`

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

--- Comment #2 from Hal Gentz  ---
Created attachment 137280
  --> https://bugs.freedesktop.org/attachment.cgi?id=137280=edit
results from running `pacaur -Q | grep "vulkan\|mesa\|xf86"`

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


[Mesa-dev] [Bug 105049] Invalid usage of vulkan pipeline barriers can cause amdgpu to deadlock

2018-02-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105049

Bug ID: 105049
   Summary: Invalid usage of vulkan pipeline barriers can cause
amdgpu to deadlock
   Product: Mesa
   Version: 17.3
  Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
  Severity: normal
  Priority: medium
 Component: Drivers/Vulkan/radeon
  Assignee: mesa-dev@lists.freedesktop.org
  Reporter: zegen...@protonmail.com
QA Contact: mesa-dev@lists.freedesktop.org

Created attachment 137278
  --> https://bugs.freedesktop.org/attachment.cgi?id=137278=edit
src code for my program + its CMakeLists.txt and the script I build it with

So I was messing around with my neat little vulkan program and managed to make
the amdgpu driver freeze. TTY consoles still work but if you enter an TTY with
xorg running you can't get out or do anything. Any new xorg servers you start
will stay frozen, ect. Audio still plays.

Expect:
My faulty program shoud've just crashed.

What Happened:
Nothing graphical responded.

Attached:

calltrace: A call trace from the kernel because the process was hung
glinfo: results from running `glinfo`
glxinfo: results from running `glxinfo`
logfromssh: what the program outputs when run from ssh with x-forwarding
(program crashes before it can lock the gpu)
pacaur: results from running `pacaur -Q | grep "vulkan\|mesa\|xf86"`
vulkaninfo: results from running `vulkaninfo`
debuginfo.7z: src code for my program + its CMakeLists.txt and the script I
build it with

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