[PATCH v3 00/13] drm/tyr: firmware loading and MCU boot support
From: Deborah Brouwer
Date: Mon Apr 13 2026 - 18:32:36 EST
This series adds firmware loading and MCU boot support to the Tyr DRM
driver. It includes:
- A parser for the Mali CSF firmware binary format
- A kernel-managed BO type (KernelBo) for internal driver allocations
- GPU virtual memory (VM) integration using drm_gpuvm
- An MMU module and a generic slot manager
- Shmem-backed GEM support for Tyr
- Loading firmware, VM activation, and MCU boot at probe()
Dependencies:
- [PATCH v10 0/5] Rust bindings for gem shmem
https://lore.kernel.org/rust-for-linux/20260409001559.622026-1-lyude@xxxxxxxxxx/
- [PATCH v6 0/5] Rust GPUVM immediate mode
https://lore.kernel.org/rust-for-linux/20260409-gpuvm-rust-v6-0-b16e6ada7261@xxxxxxxxxx/
- [PATCH v6 0/5] Introduce DeviceContext
https://lore.kernel.org/rust-for-linux/20260320233645.950190-1-lyude@xxxxxxxxxx/
- [PATCH v5 0/6] drm/tyr: Use register! macro
https://lore.kernel.org/rust-for-linux/20260409-b4-tyr-use-register-macro-v5-v5-0-8abfff8a0204@xxxxxxxxxxxxx/
Other Prerequisites:
This series also depends on additional prerequisite fixes not included in
this posting. The full stack (base + prerequisites + this series) is
available here:
https://gitlab.freedesktop.org/dbrouwer/linux/-/tree/dbrouwer/fw-boot
Development history / discussion:
https://gitlab.freedesktop.org/panfrost/linux/-/merge_requests/56
---
Changes in v3:
New commits:
- drm/tyr: remove unused device from platform data
- drm/tyr: use shmem GEM object type in TyrDrmDriver
drm/tyr: select required dependencies in Kconfig
- Rename commit since the dependencies are not limited to DRM.
- Select new RUST_DRM_GEM_SHMEM_HELPER instead of DRM_GEM_SHMEM_HELPER.
drm/tyr: set DMA mask using GPU physical address
- Use register macro to read pa_bits instead of separate helper function.
drm/tyr: add MMU module
- Switch MMU code to typed register APIs (TRANSCFG, MEMATTR, STATUS, LOCKADDR, etc.).
- Use MmuCommand enum for MMU commands instead of raw constants.
- Minor cleanups and renaming (MAX_AS, AS_PRESENT handling).
drm/tyr: add GPU virtual memory module
- Extract VA/PA bits via typed MMU_FEATURES register.
- Update the VM code to match the new GPUVM v6 and shmem GEM v10 APIs.
drm/tyr: add a kernel buffer object
- Reject zero-sized KernelBo allocations up front.
drm/tyr: add firmware loading and MCU boot support
- Use typed GPU control registers.
- Pass iomem by Arc into Firmware::new() since we store it eventually.
- Link to v2: https://lore.kernel.org/rust-for-linux/20260302232500.244489-1-deborah.brouwer@xxxxxxxxxxxxx/
Changes in v2:
- The whole series is rebased on drm-rust-next including v7.0-rc1.
- Each patch has its own changelog.
Link to v1: https://lore.kernel.org/rust-for-linux/20260212013713.304343-1-deborah.brouwer@xxxxxxxxxxxxx/
Signed-off-by: Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>
---
Alvin Sun (1):
drm/tyr: use shmem GEM object type in TyrDrmDriver
Beata Michalska (1):
drm/tyr: set DMA mask using GPU physical address
Boris Brezillon (5):
drm/tyr: select required dependencies in Kconfig
drm/tyr: rename TyrObject to BoData
drm/tyr: Add generic slot manager
drm/tyr: add MMU module
drm/tyr: add GPU virtual memory module
Daniel Almeida (1):
drm/tyr: add parser for firmware binary
Deborah Brouwer (5):
drm/tyr: remove unused device from platform data
drm/tyr: move clock cleanup into Clocks Drop impl
drm/tyr: add shmem backing for GEM objects
drm/tyr: add a kernel buffer object
drm/tyr: add firmware loading and MCU boot support
drivers/gpu/drm/tyr/Kconfig | 15 +-
drivers/gpu/drm/tyr/driver.rs | 67 ++-
drivers/gpu/drm/tyr/fw.rs | 272 +++++++++++
drivers/gpu/drm/tyr/fw/parser.rs | 519 ++++++++++++++++++++
drivers/gpu/drm/tyr/gem.rs | 159 +++++-
drivers/gpu/drm/tyr/mmu.rs | 127 +++++
drivers/gpu/drm/tyr/mmu/address_space.rs | 571 ++++++++++++++++++++++
drivers/gpu/drm/tyr/regs.rs | 110 +++++
drivers/gpu/drm/tyr/slot.rs | 436 +++++++++++++++++
drivers/gpu/drm/tyr/tyr.rs | 4 +
drivers/gpu/drm/tyr/vm.rs | 805 +++++++++++++++++++++++++++++++
11 files changed, 3050 insertions(+), 35 deletions(-)
---
base-commit: 240d78e2b309660fbedfab3663ae63ee0416a40d
change-id: 20260413-b4-fw-boot-v3-864f444839f0
Best regards,
--
Deborah Brouwer <deborah.brouwer@xxxxxxxxxxxxx>