Re: [PATCH v4 6/6] gpu: nova-core: gsp: logbuffer: add LIBOS3 log buffers and state monitor buffer
From: Eliot Courtney
Date: Tue Dec 01 2026 - 03:49:09 EST
On Tue Dec 1, 2026 at 5:15 PM JST, Alexandre Courbot wrote:
> From: John Hubbard <jhubbard@xxxxxxxxxx>
>
> GSP-RM runs on LibOS, and each LibOS task logs into a buffer that the
> driver provides and names in the init argument array. On GA102 and
> later, the r000 firmware runs LIBOS3, version 3 of LibOS, which has six
> logging tasks. LIBOS3 also expects one more page, the state monitor
> buffer, in which GSP-RM reports its own state. On Turing and GA100 the
> r000 firmware runs LIBOS2, which maps only the init and RM log buffers
> and skips the names that it does not have.
>
> Nova-core allocates log buffers for three of the six tasks, and no state
> monitor buffer.
>
> Allocate the three missing log buffers and the state monitor buffer, and
> name every log buffer in the init argument array. Give each new log a
> debugfs file next to the existing ones, and retain it after unbind under
> the same module parameter as the existing ones.
>
> This is part of the r000 support. As it comes before the switch, the
> r570 firmware is passed the three new log buffers too, and nothing uses
> the state monitor buffer until the switch.
>
> Signed-off-by: John Hubbard <jhubbard@xxxxxxxxxx>
> Co-developed-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> Signed-off-by: Alexandre Courbot <acourbot@xxxxxxxxxx>
> ---
Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>