Re: [PATCH v2 06/11] gpu: nova-core: gsp: logbuffer: make LogBuffer generic over its size

From: Eliot Courtney

Date: Sun Nov 29 2026 - 21:28:41 EST


On Mon Nov 30, 2026 at 12:11 AM JST, Alexandre Courbot wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> The r000 firmware has more log buffers than r570, of two sizes.
>
> Make `LogBuffer` generic over its number of pages. An array length
> cannot be computed from a const parameter, so the buffer becomes an
> array of pages instead of an array of bytes, and a snapshot is copied
> page by page.
>
> No functional change.
>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---

Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>