[PATCH umr] PM4 packets list number of dwords not bytes
Tom St Denis
tstdenis82 at gmail.com
Wed Mar 8 20:03:53 UTC 2017
When counting size of IBs count in dwords...
Signed-off-by: Tom St Denis <tom.stdenis at amd.com>
---
src/lib/ring_decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/ring_decode.c b/src/lib/ring_decode.c
index 401d6caaa088..a991f5ffa237 100644
--- a/src/lib/ring_decode.c
+++ b/src/lib/ring_decode.c
@@ -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;
--
2.11.0
More information about the amd-gfx
mailing list