提交 c85d00d4 编写于 作者: A Arvind Yadav 提交者: Christian König

dma-buf: set signaling bit for the stub fence

Here's setting software signaling bit for the stub fence
which is always signaled. If this fence signaling bit is
not set then the AMD GPU scheduler will cause a GPU reset
due to a GPU scheduler cleanup activity timeout.
Signed-off-by: NArvind Yadav <Arvind.Yadav@amd.com>
Reviewed-by: NChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220914164321.2156-3-Arvind.Yadav@amd.comSigned-off-by: NChristian König <christian.koenig@amd.com>
上级 6ad9aa47
...@@ -136,6 +136,10 @@ struct dma_fence *dma_fence_get_stub(void) ...@@ -136,6 +136,10 @@ struct dma_fence *dma_fence_get_stub(void)
&dma_fence_stub_ops, &dma_fence_stub_ops,
&dma_fence_stub_lock, &dma_fence_stub_lock,
0, 0); 0, 0);
set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
&dma_fence_stub.flags);
dma_fence_signal_locked(&dma_fence_stub); dma_fence_signal_locked(&dma_fence_stub);
} }
spin_unlock(&dma_fence_stub_lock); spin_unlock(&dma_fence_stub_lock);
...@@ -161,6 +165,10 @@ struct dma_fence *dma_fence_allocate_private_stub(void) ...@@ -161,6 +165,10 @@ struct dma_fence *dma_fence_allocate_private_stub(void)
&dma_fence_stub_ops, &dma_fence_stub_ops,
&dma_fence_stub_lock, &dma_fence_stub_lock,
0, 0); 0, 0);
set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
&dma_fence_stub.flags);
dma_fence_signal(fence); dma_fence_signal(fence);
return fence; return fence;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册