summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-06 17:05:16 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-10-06 17:05:16 -0400
commitc8b9b89b15c334ea61e8fba635763e406e7b9f0c (patch)
tree748d3fe32a477d37cc0c90ba56a9ff4a803bbbc9 /kernel/gsp_phys_booter.c
parent1216d19c93b390abbd761f3ad817afe69325f1a9 (diff)
downloadopen-iov-c8b9b89b15c334ea61e8fba635763e406e7b9f0c.tar.gz
open-iov-c8b9b89b15c334ea61e8fba635763e406e7b9f0c.zip
vgsp: m37 pcas gate (window-only stock form) + QMD w48..50 post-mortem
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c20
1 files changed, 13 insertions, 7 deletions
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)",