summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-15 19:02:47 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-15 19:02:47 -0500
commit61177d1dcccf179f00cd3d737e9cd19c0b2e6095 (patch)
tree60094aac7ee62d72d33a53859527878835acbfd1 /kernel
parent7303ac45da9b39dc7f10b226ab1aaed9848c00f1 (diff)
downloadopen-iov-61177d1dcccf179f00cd3d737e9cd19c0b2e6095.tar.gz
open-iov-61177d1dcccf179f00cd3d737e9cd19c0b2e6095.zip
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.
Diffstat (limited to 'kernel')
-rw-r--r--kernel/gsp_phys_booter.c13
1 files changed, 10 insertions, 3 deletions
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;
}
}