We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1716aed commit c8e1fe6Copy full SHA for c8e1fe6
1 file changed
drivers/gpu/drm/asahi/buffer.rs
@@ -591,11 +591,13 @@ impl Buffer::ver {
591
// priv seems to work and might be faster?
592
// Needs to be FW-writable anyway, so ualloc
593
// won't work.
594
- let buf =
595
- Arc::try_new(inner.ualloc_priv.lock().array_empty_tagged(
+ let buf = Arc::new(
+ inner.ualloc_priv.lock().array_empty_tagged(
596
(tpc_size + mmu::UAT_PGMSK) & !mmu::UAT_PGMSK,
597
b"TPC ",
598
- )?)?;
+ )?,
599
+ GFP_KERNEL,
600
+ )?;
601
inner.tpc = Some(buf.clone());
602
buf
603
}
0 commit comments