Re: [PATCH v4 1/2] gpu: nova-core: gsp: inline methods providing queue range invariants

From: Gary Guo

Date: Wed Apr 01 2026 - 11:37:58 EST


On Wed Apr 1, 2026 at 3:29 PM BST, Alexandre Courbot wrote:
> These methods hold a range invariant for the read/write pointers
> (namely, that the pointers are always in the `0..MSGQ_NUM_PAGES` range).
>
> The calling code depends on these invariants to build properly, so make
> them `#[inline(always)]` to ensure that they are propagated where they
> need to be.
>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>

Reviewed-by: Gary Guo <gary@xxxxxxxxxxx>

> ---
> drivers/gpu/nova-core/gsp/cmdq.rs | 4 ++++
> drivers/gpu/nova-core/gsp/fw.rs | 4 ++++
> 2 files changed, 8 insertions(+)