[PATCH umr] PM4 packets list number of dwords not bytes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux