]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: gsp: add checking oversized commands
authorEliot Courtney <ecourtney@nvidia.com>
Fri, 6 Mar 2026 07:22:01 +0000 (16:22 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 10 Mar 2026 07:07:33 +0000 (16:07 +0900)
commit41584c71342e6046fc5af0bd7823e6c0c53ffb0c
tree1e22bc6e19df703e4e7830f7d23b3fe3061ed2ef
parent59f237a0d17fb95f60de15386a6ab968af4bd4d4
gpu: nova-core: gsp: add checking oversized commands

The limit is 16 pages for a single command sent to the GSP. Return an
error if `allocate_command` is called with a too large size.

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