diff options
author | Rob Clark <robdclark@chromium.org> | 2023-04-17 15:55:10 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-06-10 06:46:12 -0700 |
commit | 171f580e32096e0cbd19e458d704b9330197d627 (patch) | |
tree | 47b6e8ca97d57c912019910fee68284b4ff9df52 /drivers/gpu/drm/msm/msm_gem_submit.c | |
parent | 38e27a6fbf2206b18417c5985dbcdeca0f2026b8 (diff) | |
download | linux-171f580e32096e0cbd19e458d704b9330197d627.tar.gz linux-171f580e32096e0cbd19e458d704b9330197d627.tar.bz2 linux-171f580e32096e0cbd19e458d704b9330197d627.zip |
drm/msm: Move cmdstream dumping out of sched kthread
This is something that can block for arbitrary amounts of time as
userspace consumes from the FIFO. So we don't really want this to
be in the fence signaling path.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Patchwork: https://patchwork.freedesktop.org/patch/532617/
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem_submit.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gem_submit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gem_submit.c b/drivers/gpu/drm/msm/msm_gem_submit.c index 38aa048471a8..3f1aa4de3b87 100644 --- a/drivers/gpu/drm/msm/msm_gem_submit.c +++ b/drivers/gpu/drm/msm/msm_gem_submit.c @@ -948,6 +948,8 @@ int msm_ioctl_gem_submit(struct drm_device *dev, void *data, /* The scheduler owns a ref now: */ msm_gem_submit_get(submit); + msm_rd_dump_submit(priv->rd, submit, NULL); + drm_sched_entity_push_job(&submit->base); args->fence = submit->fence_id; |