drm/msm/gpu: Park scheduler threads for system suspend
authorRob Clark <robdclark@chromium.org>
Thu, 10 Mar 2022 23:46:05 +0000 (15:46 -0800)
committerRob Clark <robdclark@chromium.org>
Thu, 24 Mar 2022 15:32:25 +0000 (08:32 -0700)
commit7e4167c9e021afb01fb69abae8642d781c8907b6
tree74cc88a90fb30c5c300f3991d015307d014dae09
parentf7eab1ddb9f8bc99206e3efa8d34ca1d2faca209
drm/msm/gpu: Park scheduler threads for system suspend

In the system suspend path, we don't want to be racing with the
scheduler kthreads pushing additional queued up jobs to the hw
queue (ringbuffer).  So park them first.  While we are at it,
move the wait for active jobs to complete into the new system-
suspend path.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Link: https://lore.kernel.org/r/20220310234611.424743-3-robdclark@gmail.com
drivers/gpu/drm/msm/adreno/adreno_device.c