Skip to content

Commit 326aaa1

Browse files
hoshinolinajannau
authored andcommitted
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 94d9465 commit 326aaa1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • drivers/gpu/drm/asahi/queue

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

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

383383
let data = dev.data();
384384

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

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

0 commit comments

Comments
 (0)