]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sched: add DRM_SCHED_FENCE_DONT_PIPELINE flag
authorChristian König <christian.koenig@amd.com>
Fri, 7 Oct 2022 07:51:13 +0000 (09:51 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 19 Oct 2022 10:42:51 +0000 (12:42 +0200)
commit54ca83f2ad0e347b57f4797a2140fbfbd17be7e4
treeff498887be93406d2304f22a729173c083ddc860
parentb086491c6f5c30fe77b0a2557e87969436c4abec
drm/sched: add DRM_SCHED_FENCE_DONT_PIPELINE flag

Setting this flag on a scheduler fence prevents pipelining of jobs
depending on this fence. In other words we always insert a full CPU
round trip before dependent jobs are pushed to the pipeline.

Signed-off-by: Christian König <christian.koenig@amd.com>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2113#note_1579296
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Luben Tuikov <luben.tuikov@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014081553.114899-1-christian.koenig@amd.com
drivers/gpu/drm/scheduler/sched_entity.c
include/drm/gpu_scheduler.h