From c9466885f8da0905d87e6c2191258d5f609c09a4 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Mon, 16 Nov 2026 02:26:20 -0500 Subject: vgsp: eng82 - collect the CALL(2) VERTEX_STREAM VB VA into the GL page set c840: VS-BLOB2 va=0x450e100 unresolved - the slot-2 VERTEX_STREAM payload's VB page (0x450e000) was never part of the forwarded launch's page set, so the sema resolver cannot map it and the synthesized stream-location pair cannot be relocated (the engine would fetch an unmapped guest VA). svc_gl_field now handles 0x3810: every plausible address word (>=0x100000, <2^40, 4-byte aligned) in the CALL(2) payload is added via svc_gl_add_ptr, so the candidate/forward page set includes the VB page and the release's pair relocation can resolve it. --- kernel/gsp_sema_service.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'kernel') diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 180979b..aeddb7f 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -10959,6 +10959,27 @@ static void svc_gl_field(u32 addr, u32 count, const u8 *data, u32 dlen) } return; } + /* + * eng82: the client's VERTEX_STREAM_TURING CALL(2) (0x3810) payload + * carries the VTG vertex-buffer VA (e.g. 0x0450e100). Collect the + * plausible address words into the section's page set so the + * forward fill resolves/maps the VB page and the release's + * synthesized stream-location pair can be relocated (c840: + * VS-BLOB2 va=0x450e100 unresolved - the VB page was never in the + * candidate set). + */ + if (addr == 0x3810u) { + u32 k; + + for (k = 1; k < count && k < 4u; k++) { + u32 w = v[k]; + + if (w >= 0x100000u && w < 0x1000000000ULL && + !(w & 3u)) + svc_gl_add_ptr((u64)w); + } + return; + } if (addr == 0x1b00) { if (count >= 2) svc_gl_add_ptr(((u64)(v[0] & 0xffu) << 32) | -- cgit v1.2.3