]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: partially revert "svm bo enable_signal call condition"
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Mon, 22 Nov 2021 12:39:26 +0000 (13:39 +0100)
committerChristian König <christian.koenig@amd.com>
Mon, 22 Nov 2021 20:27:04 +0000 (21:27 +0100)
commit4990b5c00ed1bbce45dcbb0d650a333e1b87e9a4
treeb8ac7a28167283f8b16b9ac766f47f5d03447f6d
parent1c5e676a168eb40518f31b78344e4556e954f292
drm/amdgpu: partially revert "svm bo enable_signal call condition"

Partially revert commit a5837065aedcbc6f405fbe6dc6ebb55852ef4444.

First of all this is illegal use of RCU to call dma_fence_enable_sw_signaling()
since we don't hold a reference to the fence in question and can crash badly.

Then the code doesn't seem to have the intended effect since only the
exclusive fence is handled, but the KFD fences are always added as shared fence.

Only keep the handling to throw away the content of SVM BOs.

Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211122123926.385017-1-christian.koenig@amd.com
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c