diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 05:55:30 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 05:55:30 -0500 |
| commit | b58dc8007ca218079f5a06cd188262a3c8e3977c (patch) | |
| tree | cd92b6da9a9b9e17d4a634a5c0710706b0f350ae | |
| parent | f4ade16e3a73c309881f3e6bed096575d9098a8b (diff) | |
| download | open-iov-b58dc8007ca218079f5a06cd188262a3c8e3977c.tar.gz open-iov-b58dc8007ca218079f5a06cd188262a3c8e3977c.zip | |
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.
| -rw-r--r-- | kernel/gsp_sema_service.c | 11 |
1 files changed, 11 insertions, 0 deletions
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; |
