]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpu: nova: require little endian
authorEliot Courtney <ecourtney@nvidia.com>
Tue, 7 Apr 2026 03:59:50 +0000 (12:59 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 29 Apr 2026 21:47:45 +0000 (23:47 +0200)
The driver already assumes little endian in a lot of locations. For
example, all the code that reads RPCs out of the command queue just
directly interprets the bytes.

Make this explicit in Kconfig.

Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260407-fix-kconfig-v2-1-6b4fb06c690c@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/drm/nova/Kconfig
drivers/gpu/nova-core/Kconfig

index 3e637ad7b5bad964e724d3ccf6cf7fc948d626f4..a2028b8539d73b2e2b57e1a305aa755da096c44c 100644 (file)
@@ -4,6 +4,7 @@ config DRM_NOVA
        depends on DRM=y
        depends on PCI
        depends on RUST
+       depends on !CPU_BIG_ENDIAN
        select AUXILIARY_BUS
        select NOVA_CORE
        default n
index a4f2380654e2d15da7925dd157011b7e55a284e0..d8456f8eaa057897e4dc38ed8c4225b26b78fae3 100644 (file)
@@ -3,6 +3,7 @@ config NOVA_CORE
        depends on 64BIT
        depends on PCI
        depends on RUST
+       depends on !CPU_BIG_ENDIAN
        select AUXILIARY_BUS
        select RUST_FW_LOADER_ABSTRACTIONS
        default n