drm/msm/gem: Don't queue job to sched in error cases
authorRob Clark <robdclark@chromium.org>
Tue, 21 Nov 2023 00:38:47 +0000 (16:38 -0800)
committerRob Clark <robdclark@chromium.org>
Sun, 10 Dec 2023 18:23:13 +0000 (10:23 -0800)
commitceab575cafed594fb3cee1bec01a0e4ed5e2d752
tree6719d560e1b8a0e3f7a6ad780c91781c9fed5893
parent202f98c19a11e335867a1906c2fb6c53680e4603
drm/msm/gem: Don't queue job to sched in error cases

We shouldn't be running the job in error cases.  This also avoids having
to think too hard about where the objs get unpinned (and if necessary,
the resv takes over tracking that the obj is busy).. ie. error cases it
always happens synchronously, and normal cases it happens from scheduler
job_run() callback.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/568331/
drivers/gpu/drm/msm/msm_gem_submit.c