[PATCH 0/2] drm/tyr: add Job IRQ handling and GPU event wait support
Laura Nao <[email protected]>
| Newsgroups | org.kernel.vger.rust-for-linux,org.freedesktop.lists.dri-devel,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
This series follows up to [1], which adds support for firmware loading and MCU booting to the Tyr driver. The changes included here were originally introduced in v4[2], then dropped to reduce the scope of the series, and have been adjusted to work with the HRT (Higher-Ranked Lifetime Types) driver architecture recently introduced. The first commit adds a new Wait type, wrapping a CondVar and a Mutex, for sleeping until a condition is met or a timeout expires. This can be used to wait for GPU-driven events. The second commit adds a threaded IRQ wrapper for the firmware Job interrupts, used to signal events from the global CSF (GLB) and Command Stream Group (CSG) interfaces. These changes will be later used to wait for global CSF interface readiness after firmware boot, as part of the CSF firmware interfaces support that will be submitted as a separate series. This series is based on drm-rust-next and depends on: - [PATCH v7 0/7] drm/tyr: firmware loading and MCU boot support[1] - [PATCH v2] rust: irq: make Registration compatible with lifetime-bound drivers[2] [1] https://lore.kernel.org/rust-for-linux/[email protected]/#t [2] https://lore.kernel.org/rust-for-linux/[email protected]/ Deborah Brouwer (1): drm/tyr: add Wait type for GPU events Laura Nao (1): drm/tyr: add Job IRQ handling drivers/gpu/drm/tyr/driver.rs | 75 ++++++++++++++++++++ drivers/gpu/drm/tyr/fw.rs | 4 ++ drivers/gpu/drm/tyr/fw/irq.rs | 104 ++++++++++++++++++++++++++++ drivers/gpu/drm/tyr/tyr.rs | 1 + drivers/gpu/drm/tyr/wait.rs | 126 ++++++++++++++++++++++++++++++++++ 5 files changed, 310 insertions(+) create mode 100644 drivers/gpu/drm/tyr/fw/irq.rs create mode 100644 drivers/gpu/drm/tyr/wait.rs -- 2.39.5