diff options
Diffstat (limited to 'kernel/gsp_phys_booter.c')
| -rw-r--r-- | kernel/gsp_phys_booter.c | 43 |
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 |
