Skip to contentSkip to conversation

PM4 packets list number of dwords not bytes

PATCH In review Tom St Denis 2 participants 2 messages Mar 8, 2017 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PM4 packets list number of dwords not bytes

When counting size of IBs count in dwords...

---
 src/lib/ring_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ring_decode.c +1 -1
index 401d6caaa088..a991f5ffa237 100644
@@ -334,7 +334,7 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder
 					decoder->pm4.next_ib_state.ib_addr_hi = BITS(ib, 0, 16);
 					break;
 				case 2: printf("IB_SIZE:%lu, VMID: %lu", BITS(ib, 0, 20), BITS(ib, 24, 32));
-					decoder->pm4.next_ib_state.ib_size = BITS(ib, 0, 20);
+					decoder->pm4.next_ib_state.ib_size = BITS(ib, 0, 20) * 4;
 					decoder->pm4.next_ib_state.ib_vmid = BITS(ib, 24, 32);
 					add_ib(decoder);
 					break;
Signature · 6 lines
2.11.0

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

Reviewed-by
#2 lore raw
Quoted 13 lines · Tom St Denis

When counting size of IBs count in dwords...

---
 src/lib/ring_decode.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ring_decode.c +0 -0
index 401d6caaa088..a991f5ffa237 100644

src/lib/ring_decode.c static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder · line 340

Quoted 8 lines
src/lib/ring_decode.c +1 -1
@@ -334,7 +334,7 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder
 					decoder->pm4.next_ib_state.ib_addr_hi = BITS(ib, 0, 16);
 					break;
 				case 2: printf("IB_SIZE:%lu, VMID: %lu", BITS(ib, 0, 20), BITS(ib, 24, 32));
-					decoder->pm4.next_ib_state.ib_size = BITS(ib, 0, 20);
+					decoder->pm4.next_ib_state.ib_size = BITS(ib, 0, 20) * 4;
 					decoder->pm4.next_ib_state.ib_vmid = BITS(ib, 24, 32);
 					add_ib(decoder);
 					break;

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