We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb4301c commit 458dbaaCopy full SHA for 458dbaa
1 file changed
drivers/gpu/drm/asahi/gpu.rs
@@ -814,12 +814,15 @@ impl GpuManager::ver {
814
}
815
816
/// Create the global GPU event manager, and return an `Arc<>` to it.
817
- fn make_event_manager(alloc: &mut KernelAllocators) -> Result<Arc<event::EventManager>> {
818
- Ok(Arc::try_new(event::EventManager::new(alloc)?)?)
819
- }
820
-
821
- /// Create a new MMIO mapping and add it to the mappings list in initdata at the specified
822
- /// index.
+ Ok(Box::new(
+ hw::DynConfig {
+ pwr: pwr_cfg,
+ uat_ttb_base: uat.ttb_base(),
+ id: gpu_id,
+ firmware_version: node.get_property(c_str!("apple,firmware-version"))?,
823
+ },
824
+ GFP_KERNEL,
825
+ )?)
826
fn iomap(
827
this: &mut Pin<UniqueArc<GpuManager::ver>>,
828
cfg: &'static hw::HwConfig,
0 commit comments