]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: align LibosMemoryRegionInitArgument size to page size
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 22 Jan 2026 22:28:46 +0000 (16:28 -0600)
committerAlexandre Courbot <acourbot@nvidia.com>
Sat, 24 Jan 2026 01:48:59 +0000 (10:48 +0900)
commit58d26d42818c0f8c9b334cc7cf318b43046e675f
tree4de3752b7d89890070d2b0f5b3801be610d11b6a
parentdbfb5aa41f16484e5a5971571739e7ae80f5e32c
gpu: nova-core: align LibosMemoryRegionInitArgument size to page size

On Turing and GA100 (i.e. the versions that use Libos v2), GSP-RM insists
that the 'size' parameter of the LibosMemoryRegionInitArgument struct be
aligned to 4KB.  The logging buffers are already aligned to that size, so
only the GSP_ARGUMENTS_CACHED struct needs to be adjusted.  Make that
adjustment by adding padding to the end of the struct.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260122222848.2555890-12-ttabi@nvidia.com
[acourbot@nvidia.com: GspArgumentsAligned -> GspArgumentsPadded]
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
drivers/gpu/nova-core/gsp.rs
drivers/gpu/nova-core/gsp/fw.rs