From b58dc8007ca218079f5a06cd188262a3c8e3977c Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 16 Nov 2026 05:55:30 -0500 Subject: vgsp: eng87 - do not consume the carrier when the forward slot is busy CONT.548/c886: a clean 247 window (VS-BIND base=0x450c1f4) reached MME-CARRY-FIRE gen=4 and was immediately cancelled with reason= request-busy: svc_gr_carrier_request() claimed the armed carrier (the take clears the arm) before taking the forwarding slot, so the lost slot lock left the pack uncompleted. Probe SVC_FWD_INFLIGHT before the take so the retryable busy case returns without consuming the arm. --- kernel/gsp_sema_service.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kernel') diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index f094d2b..455adff 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -43827,6 +43827,17 @@ static bool svc_gr_carrier_request(struct nv_vgpu_device *vgpu, /* One launch owner per channel: never compete with a real candidate. */ if (svc_gr_cand_unoffered_for(h_object) || svc_fwd_hold.active) return false; + /* + * CONT 548: do not consume the armed carrier when the forwarding + * slot is already in flight. The take below clears the arm; if the + * slot lock then fails the carrier is cancelled ("request-busy") + * and the pack is never completed (c886: FIRE gen=4 immediately + * followed by CANCEL request-busy on a clean 247 window). The slot + * can still be taken between this probe and the lock, but this + * removes the observed race for the retryable path. + */ + if (test_bit(SVC_FWD_INFLIGHT, &svc_fwd_state)) + return false; if (release) { if (!gsp_phys_gr_mme_release_take(h_object, &held, &win)) return false; -- cgit v1.2.3