Skip to content

Commit 7066658

Browse files
committed
fixup! fixup! drm/asahi: Expose firmware version to userspace
Signed-off-by: Janne Grunau <j@jannau.net>
1 parent d6876b6 commit 7066658

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

drivers/gpu/drm/asahi/gpu.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,15 @@ impl GpuManager::ver {
823823
},
824824
GFP_KERNEL,
825825
)?)
826+
}
827+
828+
/// Create the global GPU event manager, and return an `Arc<>` to it.
829+
fn make_event_manager(alloc: &mut KernelAllocators) -> Result<Arc<event::EventManager>> {
830+
Ok(Arc::new(event::EventManager::new(alloc)?, GFP_KERNEL)?)
831+
}
832+
833+
/// Create a new MMIO mapping and add it to the mappings list in initdata at the specified
834+
/// index.
826835
fn iomap(
827836
this: &mut Pin<UniqueArc<GpuManager::ver>>,
828837
cfg: &'static hw::HwConfig,

0 commit comments

Comments
 (0)