From 61177d1dcccf179f00cd3d737e9cd19c0b2e6095 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sun, 15 Nov 2026 19:02:47 -0500 Subject: vgsp: eng71c - bind the scanned vertex page by guest VA so the patch relocates it c816: the VS-SCAN candidate bound by the data page's server-managed reloc_va (0xa300310); the window patch's pair resolver did not know that VA, the launch hit MISS-ABORT and the release aborted (MME-CARRY-ABORT mode=release reason=hw-error rc=-42). Use the tracked data page's GUEST VA + offset (0x1204xxxxx+off) instead: gsp_phys_rmcall_gr_3d_reloc checks req->data/req->pages and rewrites the pair to an engine-visible shadow (same HPA), so the bound range is fetchable and the MISS-ABORT is avoided. --- kernel/gsp_phys_booter.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'kernel/gsp_phys_booter.c') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 990e33c..821357b 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -19231,10 +19231,9 @@ static u32 gsp_phys_gr_vs_scan(const struct gsp_phys_gr_submit *req, return 0; for (i = 0; i < req->n_data && i < 1025u; i++) { u64 va = req->data[i].va; - u64 rva = req->data[i].reloc_va; const u8 *p; - if (!rva || va < 0x120400000ULL || va >= 0x120800000ULL) + if (va < 0x120400000ULL || va >= 0x120800000ULL) continue; p = (const u8 *)__va(req->data[i].hpa); if (!p) @@ -19249,8 +19248,16 @@ static u32 gsp_phys_gr_vs_scan(const struct gsp_phys_gr_submit *req, continue; sc = gsp_phys_gr_vs_score(p + off); if (sc > best) { + /* + * Bind the GUEST VA: the window patch's pair + * resolver checks req->data/req->pages and + * rewrites it to an engine-visible shadow. + * The data page's reloc_va is server-managed + * and would MISS/abort the launch (c816: + * MME-CARRY-ABORT rc=-42). + */ best = sc; - *base_va = rva + off; + *base_va = va + off; *off_out = off; } } -- cgit v1.2.3