Skip to contentSkip to conversation

Simple tidy up of PKT0 data printout.

PATCH New Tom St Denis 1 participant 1 message Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Simple tidy up of PKT0 data printout.

Makes it more obvious which lines of output are the data and not headers for PKT0 format packets.

---
 src/lib/ring_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ring_decode.c +1 -1
index d87d489b1e4a..c00300e4ced8 100644
@@ -584,7 +584,7 @@ static void print_decode_pm4(struct umr_asic *asic, struct umr_ring_decoder *dec
 			return;
 		case 0x80000000:
 			name = umr_reg_name(asic, decoder->pm4.next_write_mem.addr_lo);
-			printf("PKT0 %s(0x%lx) == %lx", name, (unsigned long)decoder->pm4.next_write_mem.addr_lo, (unsigned long)ib);
+			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);
 
 			// detect VCN/UVD IBs and chain them once all
 			// 4 pieces of information are found
Signature · 6 lines
2.12.0

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx