From 4ba1d6b47566ca18f67d8a3c4b19330399d34ef6 Mon Sep 17 00:00:00 2001 From: Satya Benson Date: Tue, 1 Dec 2026 06:45:43 -0500 Subject: [PATCH] drm/asahi: g17: update g17-render-owed-stamp-tests stubs for forfeit_blocker and note_retired Recent g17 timeout/recovery changes added a published timestamp argument to recovery::note_retired() and called Packet::{note_first_excuse, first_excuse} and Queues::forfeit_blocker() from Backend::defer_timeout(). Update the standalone host-test fixture in tools/asahi/g17-render-owed-stamp-tests.py to match those signatures and extract Queues::forfeit_blocker() from runtime/render.rs alongside ComputeQueueStub::forfeit_head(), restoring Host tests on main. Signed-off-by: Satya Benson --- tools/asahi/g17-render-owed-stamp-tests.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/asahi/g17-render-owed-stamp-tests.py b/tools/asahi/g17-render-owed-stamp-tests.py index 443c011e35fe1..80367198a090a 100755 --- a/tools/asahi/g17-render-owed-stamp-tests.py +++ b/tools/asahi/g17-render-owed-stamp-tests.py @@ -180,6 +180,7 @@ def fixture(): 'pub(in crate::g17) fn defer_render_timeout(', 'pub(in crate::g17) fn render_timeout_heads(', 'pub(in crate::g17) fn render_timeout_decision(', + 'pub(in crate::g17) fn forfeit_blocker(', ] ) defer_timeout_fn = item(backend_src, ' fn defer_timeout(') @@ -242,7 +243,7 @@ def fixture(): ''' + timeout_src + r''' } pub(crate) mod recovery { - pub(crate) fn note_retired() {} + pub(crate) fn note_retired(_: u64) {} #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub(crate) enum Class { Spared, Guilty } #[derive(Clone, Copy, Debug, PartialEq, Eq)] @@ -402,6 +403,8 @@ def fixture(): fn engine(&self) -> Engine { Engine::Render } fn check_firmware_producers(&self) -> Result { Ok(()) } fn within_allowance(&self, _: u64) -> bool { self.allowance.get() } + fn note_first_excuse(&self, _: u64) {} + fn first_excuse(&self) -> u64 { 0 } fn reset_publication_for_replay(&self) {} } @@ -634,6 +637,7 @@ def fixture(): pub struct ComputeQueueStub { head: Option } impl ComputeQueueStub { fn timeout_head(&self) -> Option { self.head } + fn forfeit_head(&self, _: g17::timeout::Head) -> bool { false } } pub struct ComputeEntry { queue: Option> } pub struct Queues {