summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 16:29:05 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 16:29:05 -0500
commitffa7e59600ea22a282afa910d0aa2158a41c9ef3 (patch)
tree5d2d22c2c4f22c687c9d9de961a1fb8eb8d997e1 /kernel/gsp_phys_booter.c
parent47a82e6a9d091d61db82569a35ad35629ed61df3 (diff)
downloadopen-iov-ffa7e59600ea22a282afa910d0aa2158a41c9ef3.tar.gz
open-iov-ffa7e59600ea22a282afa910d0aa2158a41c9ef3.zip
vgsp: eng89l - latch the synthetic golden prelude
Every c970-c977 launch logged 'MME-PRELUDE copy raced an append (gen 1196248389->0); will re-emit next launch': the seqcheck compares the capture generation before/after the copy, and the synthetic golden gen can never match the empty capture's 0, so the prelude latch never set, the IRAM gate never verified, the carriers stayed load-only and no CALL/SA release could run - despite MME-GOLDEN overlay maxa=2799 and a complete pack. Accept the latch when g0 is the synthetic golden generation (the golden image is immutable and pl_n==0, so there is nothing to race).
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index 4913401..25d0c35 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -24810,7 +24810,17 @@ if (gsp_phys_gr_slot_kept(j, sa_mask,
/* seqcheck: a mid-copy append must not be recorded as
* emitted (the copy may be a torn prefix). */
gsp_sema_mme_prelude_get(NULL, &g1);
- if (pre_done && g1 == g0) {
+ /*
+ * eng89l: the synthetic golden generation has no
+ * capture to race with (pl_n==0); the golden image is
+ * immutable, so accept the latch. Without this every
+ * launch logged 'copy raced an append (gen MMEG->0)'
+ * and the pack never latched, the IRAM gate never
+ * verified and the carriers stayed load-only
+ * (c970-c977), even though the 2799-word golden pack
+ * was built.
+ */
+ if (pre_done && (g1 == g0 || g0 == 0x474d4d45u)) {
WRITE_ONCE(gsp_phys_gr_mme_prelude_gen, g0);
WRITE_ONCE(gsp_phys_gr_mme_prelude_h,
req->h_object);
@@ -24857,7 +24867,7 @@ if (gsp_phys_gr_slot_kept(j, sa_mask,
sj, sa_ent[sj],
gsp_sema_mme_ir_covered(sa_ent[sj]));
}
- } else if (pre_done) {
+ } else if (pre_done && g0 != 0x474d4d45u) {
pr_info("vgsp-gr: MME-PRELUDE copy raced an append (gen %u->%u); will re-emit next launch\n",
g0, g1);
} else {