]> git.ipfire.org Git - thirdparty/linux.git/commit
gpu: nova-core: use sized array for GSP log buffers
authorDanilo Krummrich <dakr@kernel.org>
Wed, 25 Mar 2026 00:39:17 +0000 (01:39 +0100)
committerDanilo Krummrich <dakr@kernel.org>
Fri, 27 Mar 2026 20:48:23 +0000 (21:48 +0100)
commit15a4bb87abac5229a4c36e34d388c4279d984b96
tree98cb9bd0f98903d1998eb11b3d7ce746667c65fc
parentd1619a433806c61d240a1eb9b4f03cb33ac40fce
gpu: nova-core: use sized array for GSP log buffers

Switch LogBuffer from Coherent<[u8]> (unsized) to
Coherent<[u8; LOG_BUFFER_SIZE]> (sized). The buffer size is a
compile-time constant (RM_LOG_BUFFER_NUM_PAGES * GSP_PAGE_SIZE), so a
fixed-size array is more precise and avoids the need for the runtime
length parameter of zeroed_slice().

Acked-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260325003921.3420-3-dakr@kernel.org
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/gsp.rs