summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 05:02:06 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 05:02:06 -0500
commit7a9cb92889bfc6a2d05a2de83ae17b9d7d7b1b5d (patch)
tree9e6968cee6b28869b14629cf8be548c733fc7c75 /kernel/gsp_phys_booter.c
parent9a9e0e9a763af4076808790bc08ddd2079654125 (diff)
downloadopen-iov-7a9cb92889bfc6a2d05a2de83ae17b9d7d7b1b5d.tar.gz
open-iov-7a9cb92889bfc6a2d05a2de83ae17b9d7d7b1b5d.zip
vgsp: eng85 - owner-channel MME pack continuation (sema_gl_mme_pack_carry_client)
CONT.539: c858's split pack landed on the client channel h=0x1000013 and the continuation never armed because gsp_phys_gr_mme_carry_arm() required (h & 0xfffff000)==0xbeef0000. c848 only worked because the same bytes landed on h=0xbeef0100. New knob sema_gl_mme_pack_carry_client (default 0) relaxes the arm and take gates to the split's own owner channel; the synthetic windowless LOAD-ONLY launch still goes through that owner's forwarding candidate (the pump locates it by h_object), and the builder reads the global pack cursor so the continuation bytes are identical. The saved-window release carrier stays beef-only; its MME-CARRY-ARM mode=release fires once the pack becomes resident (the owner completion clears the pack-not-resident gate on the next pass). Params-r1624 enables it.
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index ea6b1ae..10d40c6 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -18764,6 +18764,20 @@ module_param_named(sema_gl_mme_pack_carry_ms,
gsp_phys_rmcall_gr_mme_pack_carry_ms, uint, 0644);
MODULE_PARM_DESC(sema_gl_mme_pack_carry_ms,
"Settle delay before the host-initiated pack-continuation carrier fires (clamped 20..5000 ms; default 100)");
+/*
+ * CONT 539: owner-channel pack continuation. The split pack lands on the
+ * channel that emitted the partial (c858: h=0x1000013), not always the beef
+ * draw channel (c848: h=0xbeef0100). The builder reads a global cursor, so
+ * the continuation bytes are identical on any channel; the synthetic
+ * windowless LOAD-ONLY launch goes through that channel's own forwarding
+ * candidate (the pump locates it by h_object). Off = the historical
+ * beef-only gate (default 0 for the A/B).
+ */
+static bool gsp_phys_rmcall_gr_mme_pack_carry_client;
+module_param_named(sema_gl_mme_pack_carry_client,
+ gsp_phys_rmcall_gr_mme_pack_carry_client, bool, 0644);
+MODULE_PARM_DESC(sema_gl_mme_pack_carry_client,
+ "Allow the pack-continuation carrier to arm/fire on the split owner channel (not only 0xbeefXXXX), still windowless LOAD-ONLY via that channel's forwarding candidate (default 0 = off)");
static void gsp_phys_gr_mme_iram_gate_fail(void);
@@ -18795,7 +18809,9 @@ static void gsp_phys_gr_mme_carry_arm(bool split, u32 poff, u32 maxa,
u32 ms;
if (!READ_ONCE(gsp_phys_rmcall_gr_mme_pack_carry) || !split ||
- poff >= maxa || (h_object & 0xfffff000u) != 0xbeef0000u ||
+ poff >= maxa ||
+ ((h_object & 0xfffff000u) != 0xbeef0000u &&
+ !READ_ONCE(gsp_phys_rmcall_gr_mme_pack_carry_client)) ||
READ_ONCE(gsp_phys_gr_mme_pack_load_h) != h_object ||
!gsp_phys_gr_golden_ready())
return;
@@ -18873,7 +18889,8 @@ bool gsp_phys_gr_mme_carry_take(u32 h_object, u32 *gen, u32 *off, u32 *maxa)
}
live_off = READ_ONCE(gsp_phys_gr_mme_pack_off);
if (gsp_phys_gr_mme_carry.h_object != h_object ||
- (h_object & 0xfffff000u) != 0xbeef0000u)
+ ((h_object & 0xfffff000u) != 0xbeef0000u &&
+ !READ_ONCE(gsp_phys_rmcall_gr_mme_pack_carry_client)))
reason = "h-mismatch";
else if (!gsp_phys_gr_golden_ready())
reason = "golden-lost";