Skip to content

Commit 56f1bce

Browse files
committed
drm/asahi: queue: Alocate the NotifierList as shared
macOS does it this way, and the firmware needs it (no cache management!) Fixes firmware crashes with piglit with high concurrency. Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent b9ad34c commit 56f1bce

File tree

1 file changed

+2
-1
lines changed
  • drivers/gpu/drm/asahi/queue

1 file changed

+2
-1
lines changed

drivers/gpu/drm/asahi/queue/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,8 @@ impl Queue::ver {
381381

382382
let data = dev.data();
383383

384-
let mut notifier_list = alloc.private.new_default::<fw::event::NotifierList>()?;
384+
// Must be shared, no cache management on this one!
385+
let mut notifier_list = alloc.shared.new_default::<fw::event::NotifierList>()?;
385386

386387
let self_ptr = notifier_list.weak_pointer();
387388
notifier_list.with_mut(|raw, _inner| {

0 commit comments

Comments
 (0)