diff options
author | Chunming Zhou <david1.zhou@amd.com> | 2018-10-26 09:20:27 +0300 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2018-10-26 15:05:22 +0300 |
commit | 4fb2c933c9656435e8300fd6011daa3d4b0128fd (patch) | |
tree | 898d8465ba7ab41e1e59389921662638b1f17798 /drivers/dma-buf | |
parent | b1ab1f32015d7ad2a6f94d11400381d82802ab38 (diff) | |
download | linux-4fb2c933c9656435e8300fd6011daa3d4b0128fd.tar.xz |
drm/syncobj: Avoid kmalloc(GFP_KERNEL) under spinlock
drivers/gpu/drm/drm_syncobj.c:202:4-14: ERROR: function drm_syncobj_find_signal_pt_for_point called on line 390 inside lock on line 389 but uses GFP_KERNEL
Find functions that refer to GFP_KERNEL but are called with locks held.
Generated by: scripts/coccinelle/locks/call_kern.cocci
v2:
syncobj->timeline still needs protect.
v3:
use a global signaled fence instead of re-allocation.
v4:
Don't need moving lock.
Don't expose func.
v5:
rename func and directly return.
Tested by: syncobj_wait and ./deqp-vk -n dEQP-VK.*semaphore* with
lock debug kernel options enabled.
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Cc: Christian König <easy2remember.chk@googlemail.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
CC: Julia Lawall <julia.lawall@lip6.fr>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/258623/
Diffstat (limited to 'drivers/dma-buf')
0 files changed, 0 insertions, 0 deletions