From c8b9b89b15c334ea61e8fba635763e406e7b9f0c Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Tue, 6 Oct 2026 17:05:16 -0400 Subject: vgsp: m37 pcas gate (window-only stock form) + QMD w48..50 post-mortem --- kernel/gsp_phys_booter.c | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'kernel/gsp_phys_booter.c') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index a4d9718..8b78d9a 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -13877,11 +13877,13 @@ static u32 gsp_phys_rmcall_build_gr_launch(u32 *pb, memcpy(p, qmd, GSP_PHYS_GR_QMD_WORDS * 4); p += GSP_PHYS_GR_QMD_WORDS; } - p = gsp_phys_rmcall_push_gr(p, GSP_PHYS_RMCALL_GR_SEND_PCAS_A, - (u32)(qmd_va >> 8)); - p = gsp_phys_rmcall_push_gr(p, - GSP_PHYS_RMCALL_GR_SEND_SIGNALING_PCAS_B, - GSP_PHYS_RMCALL_GR_PCAS_INVALIDATE_SCHEDULE); + if (gsp_phys_rmcall_gr_pcas_value()) { + p = gsp_phys_rmcall_push_gr(p, GSP_PHYS_RMCALL_GR_SEND_PCAS_A, + (u32)(qmd_va >> 8)); + p = gsp_phys_rmcall_push_gr(p, + GSP_PHYS_RMCALL_GR_SEND_SIGNALING_PCAS_B, + GSP_PHYS_RMCALL_GR_PCAS_INVALIDATE_SCHEDULE); + } p = gsp_phys_rmcall_push_gr(p, GSP_PHYS_RMCALL_GR_SET_REPORT_SEMAPHORE_A, (u32)(sem_va >> 32)); p = gsp_phys_rmcall_push_gr(p, GSP_PHYS_RMCALL_GR_SET_REPORT_SEMAPHORE_B, @@ -14811,6 +14813,7 @@ gr_page_unmapped: ud + GSP_PHYS_RMCALL_USERD_GPGET_OFF) : 0; u32 q0 = 0, q1 = 0, q23 = 0, q24 = 0, q25 = 0; + u32 q48 = 0, q49 = 0, q50 = 0; u32 q63 = 0; u32 relw = 0; @@ -14826,6 +14829,9 @@ gr_page_unmapped: q23 = get_unaligned_le32(qp + 92); q24 = get_unaligned_le32(qp + 96); q25 = get_unaligned_le32(qp + 100); + q48 = get_unaligned_le32(qp + 192); + q49 = get_unaligned_le32(qp + 196); + q50 = get_unaligned_le32(qp + 200); q63 = get_unaligned_le32( qp + GSP_PHYS_GR_QMD_SENTINEL_WORD * @@ -14836,9 +14842,9 @@ gr_page_unmapped: relw = READ_ONCE( *(u32 *)((u8 *)__va(qmd_rel_hpa) + qmd_rel_off)); - pr_info("vgsp-gr: post-mortem gpget=%u->%u qmd_page w0=%08x w1=%08x w23..25=%08x %08x %08x w63=%08x relw=%08x iq2m=%s%s\n", + pr_info("vgsp-gr: post-mortem gpget=%u->%u qmd_page w0=%08x w1=%08x w23..25=%08x %08x %08x w48..50=%08x %08x %08x w63=%08x relw=%08x iq2m=%s%s\n", sub.gpget, gpget_post, q0, q1, q23, q24, - q25, q63, relw, + q25, q48, q49, q50, q63, relw, q63 == GSP_PHYS_GR_QMD_SENTINEL ? "not-run (sentinel intact)" : "ran (page overwritten)", -- cgit v1.2.3