]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: gsp: fix incorrect advancing of write pointer
authorEliot Courtney <ecourtney@nvidia.com>
Thu, 29 Jan 2026 07:44:59 +0000 (16:44 +0900)
committerAlexandre Courbot <acourbot@nvidia.com>
Tue, 24 Feb 2026 23:16:55 +0000 (08:16 +0900)
commit9045ae2afc7b7cd51a98d7d773529b56572a4b1b
treee4288cd09a94318ef97fc26423f732ca5e24b4e3
parent4bef417ea46cbc701500b1b92b962586ec6e0900
gpu: nova-core: gsp: fix incorrect advancing of write pointer

We should modulo not bitwise-and here. The current code could, for
example, set wptr to MSGQ_NUM_PAGES which is not valid.

Fixes: 75f6b1de8133 ("gpu: nova-core: gsp: Add GSP command queue bindings and handling")
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260129-nova-core-cmdq1-v3-1-2ede85493a27@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp/cmdq.rs