diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-15 18:41:45 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-15 18:41:45 -0500 |
| commit | 01c22a8d96d9de45a02d7556178445b3eed89f2b (patch) | |
| tree | e8708d09806a1ac6d5fa7fdcee55ba8b7c6622e8 | |
| parent | 65a63cf18abc242facc53c9f0f72ef4550fee332 (diff) | |
| download | open-iov-01c22a8d96d9de45a02d7556178445b3eed89f2b.tar.gz open-iov-01c22a8d96d9de45a02d7556178445b3eed89f2b.zip | |
vgsp: eng70 - census the vertex-stream family and dump VS size/attribute state
The per-draw VB bind is still located: extend sema_mme_census to
0x1c00..0x1cf8 (vertex stream FORMAT/LOCATION/SIZE) and 0x600..0x61c
(stream sizes), print up to 3 data words per hit (the location pairs
need UPPER,LOWER), and add a second DRAW-STATE line with the stream
sizes (SZ0/SZ1/SZ3) and the first SET_VERTEX_ATTRIBUTE_A(0..2) words
(ATTR0), so a zero-size stream or a mismatched attribute format is
visible next to VS0 and the viewport.
| -rw-r--r-- | kernel/gsp_phys_booter.c | 12 | ||||
| -rw-r--r-- | kernel/gsp_sema_service.c | 14 |
2 files changed, 22 insertions, 4 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 8da7478..ad55aab 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -5445,6 +5445,18 @@ static void gsp_phys_draw_state_log(void __iomem *bar0, u32 h_object, gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0274u), gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0d74u), gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0d78u)); + pr_info("vgsp-draw: DRAW-STATE h=0x%x SZ0=%08x/%08x SZ1=%08x/%08x SZ3=%08x/%08x ATTR0=%08x/%08x/%08x/%08x\n", + h_object, + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0600u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0604u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0608u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x060cu), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x0618u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x061cu), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1160u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1164u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1170u), + gsp_phys_mme_shadow_read(bar0, 0xc597u, 0x1174u)); } static bool gsp_phys_mme_fast_sample(void __iomem *bar0, const char *tag, diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 20b52cb..6eb3547 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -18286,7 +18286,7 @@ static void svc_mme_census(const u8 *buf, u32 len, u64 push_va, u32 h_object) { u32 off = 0; u32 nhit = 0; - char line[512]; + char line[900]; int lc = 0; if (!READ_ONCE(svc_mme_census_flag) || svc_mme_census_n >= 128) @@ -18317,15 +18317,21 @@ static void svc_mme_census(const u8 *buf, u32 len, u64 push_va, u32 h_object) if ((addr >= 0x114u && addr <= 0x124u) || addr == 0x234u || (addr >= 0x550u && addr <= 0x568u) || + (addr >= 0x600u && addr <= 0x61cu) || + (addr >= 0x1c00u && addr <= 0x1cf8u) || (addr >= 0x3400u && addr <= 0x34fcu) || (addr >= 0x3800u && addr <= 0x39fcu)) { - u32 v0 = 0; + u32 v0 = 0, v1 = 0, v2 = 0; if (off + 8 <= len) memcpy(&v0, buf + off + 4, 4); + if (off + 12 <= len) + memcpy(&v1, buf + off + 8, 4); + if (off + 16 <= len) + memcpy(&v2, buf + off + 12, 4); lc += scnprintf(line + lc, sizeof(line) - lc, - "%s0x%x@0x%x(%08x)", - nhit ? "," : "", addr, off, v0); + "%s0x%x@0x%x(%08x,%08x,%08x)", + nhit ? "," : "", addr, off, v0, v1, v2); nhit++; } off += (op == 1u || op == 3u || op == 5u) && cnt ? |
