Re: [PATCH v3] gpu: nova-core: fix stack overflow in GSP memory allocation
From: Danilo Krummrich
Date: Wed Mar 04 2026 - 19:00:11 EST
On Wed Feb 18, 2026 at 5:01 AM CET, Tim Kovalenko via B4 Relay wrote:
> From: Tim Kovalenko <tim.kovalenko@xxxxxxxxx>
>
> The `Cmdq::new` function was allocating a `PteArray` struct on the stack
> and was causing a stack overflow with 8216 bytes.
>
> Modify the `PteArray` to calculate and write the Page Table Entries
> directly into the coherent DMA buffer one-by-one. This reduces the stack
> usage quite a lot.
>
> Signed-off-by: Tim Kovalenko <tim.kovalenko@xxxxxxxxx>
Can you please rebase your patch on top of [1] and use index projection?
[1] https://lore.kernel.org/rust-for-linux/20260302164239.284084-1-gary@xxxxxxxxxx/
Thanks,
Danilo