Skip to content

Commit 05ea9c7

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

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
@@ -556,8 +556,10 @@ impl<'a> Drop for JobSubmission::ver<'a> {
556556
self.command_count
557557
);
558558
event.1.sub(self.event_count as u32);
559+
let val = event.1;
559560
inner.commit_seq -= self.command_count as u64;
560561
inner.event_seq -= self.event_count as u64;
562+
inner.last_submitted = Some(val);
561563
mod_pr_debug!("WorkQueue({:?}): Dropped JobSubmission\n", inner.pipe_type);
562564
}
563565
}

0 commit comments

Comments
 (0)