]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: gsp: add reply/no-reply info to `CommandToGsp`
authorEliot Courtney <ecourtney@nvidia.com>
Wed, 18 Mar 2026 04:07:11 +0000 (13:07 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Wed, 18 Mar 2026 12:53:14 +0000 (21:53 +0900)
commitc3bd240f97491122e3c9e9922def7e59eecd6145
tree14f6a7824e0c9813006a4dd9b1d26c9a2a7c13c3
parent67d9ef2bdd62c541a22da04875ccd0722ba1d3d4
gpu: nova-core: gsp: add reply/no-reply info to `CommandToGsp`

Add type infrastructure to know what reply is expected from each
`CommandToGsp`. Uses a marker type `NoReply` which does not implement
`MessageFromGsp` to mark commands which don't expect a response.

Update `send_command` to wait for a reply and add `send_command_no_wait`
which sends a command that has no reply, without blocking.

This prepares for adding locking to the queue.

Tested-by: Zhi Wang <zhiw@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260318-cmdq-locking-v5-3-18b37e3f9069@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/boot.rs
drivers/gpu/nova-core/gsp/cmdq.rs
drivers/gpu/nova-core/gsp/cmdq/continuation.rs
drivers/gpu/nova-core/gsp/commands.rs