Re: [PATCH v2] gpu: nova-core: use Init for firmware initialization

From: Eliot Courtney

Date: Tue Nov 24 2026 - 00:22:35 EST


On Mon Nov 23, 2026 at 2:13 AM JST, Danilo Krummrich wrote:
> Now that SGTable no longer requires pinning, move Radix3 and GspFirmware
> from PinInit to Init.
>
> In an x86-64 build, GspFirmware is 312 bytes, including its 216-byte
> Radix3. This is reasonable for the stack, but returning it by value
> increases boot()'s local stack reservation from 432 to 1040 bytes.
>
> On TU102 for instance, the nested hal.boot() call reserves another 1128
> bytes for locals.
>
> Thus, keep the KBox allocation and in-place initialization.
>
> Signed-off-by: Danilo Krummrich <dakr@xxxxxxxxxx>
> ---
> Changes in v2:
> - Convert to impl Init to not increase the overall stack usage.
> ---

Reviewed-by: Eliot Courtney <ecourtney@xxxxxxxxxx>