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

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

 



Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>

On 03/09/2017 07:03 AM, Tom St Denis wrote:
> 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;
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20170309/ce769f93/attachment-0001.sig>


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

  Powered by Linux