[PATCH umr 1/2] Fix UVD/VCN IB detection.

Tom St Denis tom.stdenis at amd.com
Fri Aug 25 12:55:44 UTC 2017


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

Signed-off-by: Tom St Denis <tom.stdenis at 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



More information about the amd-gfx mailing list