drm/nouveau: enable dynamic job-flow control
authorDanilo Krummrich <dakr@redhat.com>
Tue, 14 Nov 2023 00:27:25 +0000 (01:27 +0100)
committerDanilo Krummrich <dakr@redhat.com>
Fri, 24 Nov 2023 20:24:51 +0000 (21:24 +0100)
commit46990918f35c1bf6e367cf8e0423e7344fec9fcb
tree52c25ddbd2cae0cfb55422fe71c70aa4fb029c0e
parent5f03a507b29e44a848f315c7240c19894dd8be4f
drm/nouveau: enable dynamic job-flow control

Make use of the scheduler's credit limit and scheduler job's credit
count to account for the actual size of a job, such that we fill up the
ring efficiently.

Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20231114002728.3491-2-dakr@redhat.com
drivers/gpu/drm/nouveau/nouveau_abi16.c
drivers/gpu/drm/nouveau/nouveau_drm.c
drivers/gpu/drm/nouveau/nouveau_exec.c
drivers/gpu/drm/nouveau/nouveau_sched.c
drivers/gpu/drm/nouveau/nouveau_sched.h
drivers/gpu/drm/nouveau/nouveau_uvmm.c