Since we add the IP name to the register names we
need to strip that off again.

Signed-off-by: Tom St Denis <tom.stde...@amd.com>
---
 src/lib/ring_decode.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lib/ring_decode.c b/src/lib/ring_decode.c
index 9d6e366e4594..52855ab4fb62 100644
--- a/src/lib/ring_decode.c
+++ b/src/lib/ring_decode.c
@@ -748,6 +748,10 @@ static void print_decode_pm4(struct umr_asic *asic, struct 
umr_ring_decoder *dec
                        name = umr_reg_name(asic, 
decoder->pm4.next_write_mem.addr_lo);
                        printf("   word (%lu): %s(0x%lx) <= 0x%lx", (unsigned 
long)decoder->pm4.cur_word++, name, (unsigned 
long)decoder->pm4.next_write_mem.addr_lo, (unsigned long)ib);
 
+                       // strip off IP name
+                       name = strstr(name, ".");
+                       if (name[0] == '.') ++name;
+
                        // detect VCN/UVD IBs and chain them once all
                        // 4 pieces of information are found
                        if (!strcmp(name, "mmUVD_LMI_RBC_IB_VMID")) {
-- 
2.12.0

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to