]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/tyr: use shmem GEM object type in TyrDrmDriver
authorAlvin Sun <alvin.sun@linux.dev>
Tue, 28 Apr 2026 19:19:30 +0000 (12:19 -0700)
committerAlice Ryhl <aliceryhl@google.com>
Fri, 1 May 2026 10:43:51 +0000 (10:43 +0000)
Tyr buffer objects are shmem-backed, so the driver should use
drm::gem::shmem::Object<BoData> as its GEM object type instead of the base
drm::gem::Object<BoData> type.

Switching to the shmem GEM object type matches how Tyr allocates and
manages its buffer objects, and uses the shmem-specific GEM abstraction
provided by the DRM Rust bindings.

Select RUST_DRM_GEM_SHMEM_HELPER to ensure the required helpers are
available when DRM_TYR is enabled.

Signed-off-by: Alvin Sun <alvin.sun@linux.dev>
Signed-off-by: Deborah Brouwer <deborah.brouwer@collabora.com>
Link: https://patch.msgid.link/20260428-fw-boot-prerequisites-v1-3-c69af9abe1af@collabora.com
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
drivers/gpu/drm/tyr/Kconfig
drivers/gpu/drm/tyr/driver.rs

index e933e6478027222de6543d112ce5973d62c76c05..51a68ef8212ce62677bef2eb3a1a24cf1e17ae09 100644 (file)
@@ -8,6 +8,7 @@ config DRM_TYR
        depends on !GENERIC_ATOMIC64  # for IOMMU_IO_PGTABLE_LPAE
        depends on COMMON_CLK
        default n
+       select RUST_DRM_GEM_SHMEM_HELPER
        help
          Rust DRM driver for ARM Mali CSF-based GPUs.
 
index bb90324043ed0a6bbe42f8a9a5b8f79b9fd2dfeb..cdb9b13bdb3291a0356a58cc9b2a18d60becb7a0 100644 (file)
@@ -171,7 +171,7 @@ const INFO: drm::DriverInfo = drm::DriverInfo {
 impl drm::Driver for TyrDrmDriver {
     type Data = TyrDrmDeviceData;
     type File = TyrDrmFileData;
-    type Object = drm::gem::Object<BoData>;
+    type Object = drm::gem::shmem::Object<BoData>;
 
     const INFO: drm::DriverInfo = INFO;