]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: preserve error information in gpu_name()
authorJohn Hubbard <jhubbard@nvidia.com>
Thu, 8 Jan 2026 00:58:10 +0000 (16:58 -0800)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 12 Jan 2026 13:11:04 +0000 (14:11 +0100)
commit8d6a8e79226d5e0907c7554235113afa06479029
treecf7a540781e9bb4f4397f8f72e57c7d572edef65
parent2d7b4a44fb768e1887e7e4cdd8b86817ccd9c3bf
gpu: nova-core: preserve error information in gpu_name()

Change gpu_name() to return a Result instead of an Option. This avoids
silently discarding error information when parsing the GPU name string
from the GSP.

Update the callsite to log a warning with the error details on failure,
rather than just displaying "invalid GPU name".

Suggested-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260108005811.86014-2-jhubbard@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/gsp/boot.rs
drivers/gpu/nova-core/gsp/commands.rs