Re: [PATCH 01/13] gpu: nova-core: fsp: limit FSP receive message allocation size

From: Alexandre Courbot

Date: Sat Jun 20 2026 - 10:08:55 EST


On Mon Jun 15, 2026 at 11:40 PM JST, Eliot Courtney wrote:
> Currently, the FSP receive message code will try to allocate whatever
> was sent without checking it at all. But the actual size allowed is
> limited to 1024 anyway, so discard any messages over that size as bogus.
>
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
> ---
> drivers/gpu/nova-core/falcon/fsp.rs | 36 ++++++++++++++++++++++++------------
> 1 file changed, 24 insertions(+), 12 deletions(-)

This patch looks like it does two things:

- The size check, which is described in the commit log,
- Reset the message queue pointers even in case of failure, which is not.

That second item also makes the diff a bit difficult to read. Could you
split the reset-on-error behavior into its own patch?