]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: gsp: add mechanism to wait for space on command queue
authorEliot Courtney <ecourtney@nvidia.com>
Fri, 6 Mar 2026 07:21:59 +0000 (16:21 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 10 Mar 2026 07:07:33 +0000 (16:07 +0900)
commitb4281ffb80d341c2c7cf0343784ec77dbd7f9189
tree567976d38f94b55ff4ed985bd80f5ad82d459d90
parent9a3e455927f3d7f06f445897626360220cf6a27b
gpu: nova-core: gsp: add mechanism to wait for space on command queue

Add a timeout to `allocate_command` which waits for space on the GSP
command queue. It uses a similar timeout to nouveau.

This lets `send_command` wait for space to free up in the command queue.
This is required to support continuation records which can fill up the
queue.

Tested-by: Zhi Wang <zhiw@nvidia.com>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260306-cmdq-continuation-v6-2-cc7b629200ee@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/cmdq.rs