Skip to content

drm/msm: Un-break multi-context gl

Rob Clark dri-devel linux-arm-msm lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/msm: A bit more docs + cleanupdrivers/gpu/drm/msm/msm_drv.h drivers/gpu/drm/msm/msm_gpu.h+57 -450 replies
2/2drm/msm: One sched entity per process per prioritydrivers/gpu/drm/msm/msm_gem_submit.c drivers/gpu/drm/msm/msm_gpu.h drivers/gpu/drm/msm/msm_submitqueue.c+74 -200 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm/msm: Un-break multi-context gl

From: Rob Clark <[email protected]>

Userspace is expecting that a single thread doing rendering against multiple contexts does not need additional synchronization between those contexts beyond ensuring work is flushed to the kernel in the correct order. But if we have a sched-entity per-context, and are not using implicit sync, GPU jobs from different contexts can execute in a different order than they were flushed to the kernel.

To solve that, share sched-entities for a given priority level between submitqueues (which map to gl contexts).

Rob Clark (2):
drm/msm: A bit more docs + cleanup drm/msm: One sched entity per process per priority

 drivers/gpu/drm/msm/msm_drv.h         | 44 -----------------
 drivers/gpu/drm/msm/msm_gem_submit.c  |  2 +-
 drivers/gpu/drm/msm/msm_gpu.h         | 66 +++++++++++++++++++++++++-
 drivers/gpu/drm/msm/msm_submitqueue.c | 68 +++++++++++++++++++++++----
 4 files changed, 123 insertions(+), 57 deletions(-)
Signature · 1 line
2.31.1