]> www.infradead.org Git - users/dwmw2/linux.git/commit
drm/panthor: Fix sync-only jobs
authorBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jul 2024 07:16:40 +0000 (09:16 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 3 Jul 2024 07:45:36 +0000 (09:45 +0200)
commit7b6f9ec6ad51125facadecf77dc6e62928186d2e
tree26dfb07837c111506b27f94710ac35b4af5f5d4b
parent1a9a71439cc1b270bf127c2f529aac7cf9cb21ab
drm/panthor: Fix sync-only jobs

A sync-only job is meant to provide a synchronization point on a
queue, so we can't return a NULL fence there, we have to add a signal
operation to the command stream which executes after all other
previously submitted jobs are done.

v2:
- Fixed a UAF bug
- Added R-bs

Fixes: de8548813824 ("drm/panthor: Add the scheduler logical block")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240703071640.231278-3-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_sched.c
include/uapi/drm/panthor_drm.h