From 3481e62d9ae97ec7f354d252aa93bb765b8a7964 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sun, 15 Nov 2026 17:54:09 -0500 Subject: vgsp: eng68 - chain the release after any GR launch that leaves it owed c796: the release armed (MME-CARRY-ARM mode=release, held=68) when the client's own launch completed the pack, but that launch's poll owned the forwarding slot; the beef channel unregistered 0.99 s later (+0.1 s ARM) and the release only saw request-inflight/no-channel. The client's pack-completing launch is often its last push. Generalize eng64's chain: after ANY successful GR launch of the release's own beef handle, if the release is still owed (gsp_phys_gr_mme_release_owed_for), wait the settle grace in the same slot, claim and run the release work directly. The synthetic pack carrier path is unchanged; the release work still owns the outcome publish and INFLIGHT clear. --- kernel/gsp_phys_booter.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'kernel/gsp_phys_booter.c') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 607e947..a98a588 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -19551,6 +19551,27 @@ bool gsp_phys_gr_mme_release_take(u32 h_object, u32 *held, u32 *win) return true; } +/* + * eng68: the release is owed for a specific beef handle. The service + * chains the release after ANY successful GR launch of that handle (not + * only the synthetic pack carrier): the client's pack-completing launch is + * often the last push before it closes the channel (c796: release ARM at + * +0.1 s, beef channel unregistered +0.99 s, no pump pass could fire it). + * The chained release runs in the same forwarding slot immediately. + */ +bool gsp_phys_gr_mme_release_owed_for(u32 h_object) +{ + struct gsp_phys_gr_mme_release_state *s = &gsp_phys_gr_mme_release; + unsigned long flags; + bool owed; + + spin_lock_irqsave(&gsp_phys_gr_mme_release_lock, flags); + owed = s->valid && s->armed && !s->fired && !s->consumed && + s->h_object == h_object; + spin_unlock_irqrestore(&gsp_phys_gr_mme_release_lock, flags); + return owed; +} + /* An armed release is still owed (before its grace deadline too). */ bool gsp_phys_gr_mme_release_waiting(void) { -- cgit v1.2.3