summaryrefslogtreecommitdiffstats
path: root/kernel/gsp_phys_booter.c
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-15 18:41:45 -0500
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-11-15 18:41:45 -0500
commit01c22a8d96d9de45a02d7556178445b3eed89f2b (patch)
treee8708d09806a1ac6d5fa7fdcee55ba8b7c6622e8 /kernel/gsp_phys_booter.c
parent65a63cf18abc242facc53c9f0f72ef4550fee332 (diff)
downloadopen-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.
Diffstat (limited to 'kernel/gsp_phys_booter.c')
-rw-r--r--kernel/gsp_phys_booter.c12
1 files changed, 12 insertions, 0 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,