Skip to content

Commit c9c569e

Browse files
hoshinolinajannau
authored andcommitted
drm/asahi: Fix event tracking when JobSubmission is dropped
Signed-off-by: Asahi Lina <lina@asahilina.net>
1 parent 6d57e6f commit c9c569e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/asahi/workqueue.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,8 +555,10 @@ impl<'a> Drop for JobSubmission::ver<'a> {
555555
self.command_count
556556
);
557557
event.1.sub(self.event_count as u32);
558+
let val = event.1;
558559
inner.commit_seq -= self.command_count as u64;
559560
inner.event_seq -= self.event_count as u64;
561+
inner.last_submitted = Some(val);
560562
mod_pr_debug!("WorkQueue({:?}): Dropped JobSubmission\n", inner.pipe_type);
561563
}
562564
}

0 commit comments

Comments
 (0)