From 1dab2b18a6b2bed1354c55822d060a539518806b Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Sun, 11 Oct 2026 23:26:27 -0400 Subject: vgsp-gr: dump first words of changed bounce pages (m142 diagnostic) Discriminates engine-side writes of float data (kernel ran with c on this buffer) from non-kernel writes (pointers/QMD-shaped words). --- kernel/gsp_phys_booter.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'kernel') diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 2267702..47e3bd0 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -17848,7 +17848,19 @@ gr_page_unmapped: * m142: which pages the engine touched. The * indexes name the relocated VA (bi page of * 0x110000); a c-range write is bi >= 0x40. + * Also dump the first words of the first two + * changed pages: float sums prove the kernel + * wrote them (the c-pointer landed on this + * buffer); pointers/QMD words prove something + * else wrote. */ + if (changed < 2) + pr_info("vgsp-gr: changed page bi=%u w0..3=%08x %08x %08x %08x\n", + bi, + get_unaligned_le32(src), + get_unaligned_le32(src + 4), + get_unaligned_le32(src + 8), + get_unaligned_le32(src + 12)); if (changed < 8) chg[changed] = bi; changed++; -- cgit v1.2.3