diff options
| author | Christian König <[email protected]> | 2022-10-07 07:51:13 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2022-10-19 10:42:51 +0000 |
| commit | 7b476affcccfc7e644541a0a719f53fc7bd34c53 (patch) | |
| tree | ff498887be93406d2304f22a729173c083ddc860 /drivers/gpu/drm/scheduler/sched_entity.c | |
| parent | drm/vc4: hdmi: Check the HSM rate at runtime_resume (diff) | |
| download | kernel-7b476affcccfc7e644541a0a719f53fc7bd34c53.tar.gz kernel-7b476affcccfc7e644541a0a719f53fc7bd34c53.zip | |
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 <[email protected]>
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/2113#note_1579296
Reviewed-by: Alex Deucher <[email protected]>
Acked-by: Luben Tuikov <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
| -rw-r--r-- | drivers/gpu/drm/scheduler/sched_entity.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/scheduler/sched_entity.c b/drivers/gpu/drm/scheduler/sched_entity.c index 6b25b2f4f5a3..6137537aaea4 100644 --- a/drivers/gpu/drm/scheduler/sched_entity.c +++ b/drivers/gpu/drm/scheduler/sched_entity.c @@ -385,7 +385,8 @@ static bool drm_sched_entity_add_dependency_cb(struct drm_sched_entity *entity) } s_fence = to_drm_sched_fence(fence); - if (s_fence && s_fence->sched == sched) { + if (s_fence && s_fence->sched == sched && + !test_bit(DRM_SCHED_FENCE_DONT_PIPELINE, &fence->flags)) { /* * Fence is from the same scheduler, only need to wait for |
