summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 02:19:07 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-16 02:19:07 -0500
commitca40a5851d2beec9a1645f16541b4309e7a210f1 (patch)
tree4fe80b12f892693b4069af871ff91be3b2e6b7b0
parentd9967fbe057457c07081585f350242f8024fd6af (diff)
downloadopen-iov-ca40a5851d2beec9a1645f16541b4309e7a210f1.tar.gz
open-iov-ca40a5851d2beec9a1645f16541b4309e7a210f1.zip
vgsp: eng81 - dump the 480 B VB block at the bound CALL(2) VA
The slot-2 VERTEX_STREAM VA (0x450e100) is now bound as the stream location; the release still stores nothing. Dump the first 64 B of the client VB (resolved HPA) at save time (VS-BLOB2) so the 24x20 B float2 vertex payload is verifiable/rejectable, and compare the relocated shadow (VS0) against pagebase+client_offset (the suspected 0xf4 skew).
-rw-r--r--kernel/gsp_phys_booter.c43
1 files changed, 43 insertions, 0 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c
index deb8adc..54716e7 100644
--- a/kernel/gsp_phys_booter.c
+++ b/kernel/gsp_phys_booter.c
@@ -19587,6 +19587,49 @@ static void gsp_phys_gr_mme_release_save(const struct gsp_phys_gr_submit *req,
vva == scan_va) ? "scan" : "sticky",
req->h_object, req->push_va);
/*
+ * eng81: dump the VB block at the bound
+ * client VA (480 B = 24x20 B) so the
+ * float2 vertex payload is verifiable.
+ */
+ if (vj == 0u && have_call &&
+ vva == slot2_va) {
+ struct gsp_sema_gr_reloc vr;
+ u64 vpg = vva &
+ ~(u64)(GSP_PHYS_PAGE_SIZE - 1);
+
+ if (!gsp_sema_gr_reloc_resolve(vpg,
+ &vr) &&
+ vr.hpa) {
+ const u8 *vp =
+ (const u8 *)__va(vr.hpa) +
+ (vva &
+ (GSP_PHYS_PAGE_SIZE - 1));
+
+ pr_info("vgsp-gr: VS-BLOB2 va=0x%llx hpa=0x%llx w0..15=%08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x %08x\n",
+ (unsigned long long)vva,
+ (unsigned long long)vr.hpa,
+ get_unaligned_le32(vp),
+ get_unaligned_le32(vp + 4),
+ get_unaligned_le32(vp + 8),
+ get_unaligned_le32(vp + 12),
+ get_unaligned_le32(vp + 16),
+ get_unaligned_le32(vp + 20),
+ get_unaligned_le32(vp + 24),
+ get_unaligned_le32(vp + 28),
+ get_unaligned_le32(vp + 32),
+ get_unaligned_le32(vp + 36),
+ get_unaligned_le32(vp + 40),
+ get_unaligned_le32(vp + 44),
+ get_unaligned_le32(vp + 48),
+ get_unaligned_le32(vp + 52),
+ get_unaligned_le32(vp + 56),
+ get_unaligned_le32(vp + 60));
+ } else {
+ pr_info("vgsp-gr: VS-BLOB2 va=0x%llx unresolved\n",
+ (unsigned long long)vva);
+ }
+ }
+ /*
* Stream size (Turing binds SIZE_A/B; the
* replay has none). 1 MB covers the 24x20 B
* payload with margin. Emitted for every