diff options
| author | Chunming Zhou <[email protected]> | 2018-10-26 14:20:27 +0800 |
|---|---|---|
| committer | Christian König <[email protected]> | 2018-10-26 14:05:22 +0200 |
| commit | 4fb2c933c9656435e8300fd6011daa3d4b0128fd (patch) | |
| tree | 898d8465ba7ab41e1e59389921662638b1f17798 /tools/perf/scripts/python/sctop.py | |
| parent | b1ab1f32015d7ad2a6f94d11400381d82802ab38 (diff) | |
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 <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: [email protected]
Cc: Christian König <[email protected]>
Cc: Chris Wilson <[email protected]>
CC: Julia Lawall <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Maarten Lankhorst <[email protected]>
Signed-off-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/258623/
Diffstat (limited to 'tools/perf/scripts/python/sctop.py')
0 files changed, 0 insertions, 0 deletions