From 27e51965ddb535c03a107cd108486af09824cfe9 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Fri, 23 Oct 2026 07:53:26 -0400 Subject: Revert "vgsp-sema: keep the learned VA map across the session flush (re-compact, not wipe)" This reverts commit 1a49c7eb69c03f58bc51939828de222a2ac42fea. --- kernel/gsp_sema_service.c | 18 +----------------- tools/cuda-ab/push_battery.sh | 2 +- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 22eccb7..42e8d76 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -11700,23 +11700,7 @@ static void svc_session_flush(void) } svc_gr_diag_reset(); /* m150: per-session diagnostic budgets */ - /* - * r532: the learned map is NOT wiped here. The flush fires when the - * channel table momentarily empties - which a live client's UVM - * channel cycling triggers - and wiping the map then left the - * client's already-resolved data VAs unresolvable until a rebuild - * scan re-found them, which it may not: r531 multikernel's operands - * (0x72a05a5...) went NO ENTRY 40+ s after the gen-12 flush (the - * rebuild restored 14-31 K entries without them) and the pump - * stalled for minutes with the client spinning; streams2/ - * streams_events then read back whole-page garbage. The map is a - * cache with a merge-on-rebuild contract (the fresh scan updates a - * VA it re-finds and appends the rest), so a re-compaction keeps it - * bounded without dropping live translations. Reused-VA correctness - * is carried by the ledger (the launch's own landing, r349), the - * pin-wins rule and the fresh scan - not by wholesale eviction. - */ - svc_map_finalize(); + svc.map_n = 0; svc_pb_n = 0; svc_pd_found = 0; svc_pd_attempts = 0; diff --git a/tools/cuda-ab/push_battery.sh b/tools/cuda-ab/push_battery.sh index 0557238..644beba 100755 --- a/tools/cuda-ab/push_battery.sh +++ b/tools/cuda-ab/push_battery.sh @@ -6,7 +6,7 @@ set -u HERE="$(cd "$(dirname "$0")" && pwd)" RUN="$HERE/run" GUEST_DIR="${1:-/tmp}" -CLIENTS="victory_mail smiley vecadd_loop streams2 memcpy_roundtrip multikernel victory_saxpy victory_reduce victory_matmul victory_strided victory_memset2d victory_atomics victory_streams_events victory_math vector_add inplace_scale" +CLIENTS="victory_mail smiley vecadd_loop streams2 memcpy_roundtrip multikernel victory_saxpy victory_reduce victory_matmul victory_strided victory_memset2d victory_atomics victory_streams_events victory_math vector_add" export SSHPASS="${VGPU_GUEST_PASS:-ubuntu}" FILES="" for c in $CLIENTS; do [ -x "$RUN/$c" ] && FILES="$FILES $RUN/$c"; done -- cgit v1.2.3