print the missing 0x prefix in WRITE_DATA packet
PATCH 1/2 print the missing 0x prefix in WRITE_DATA packet
Signed-off-by Xiaojie Yuan <[email protected]>
--- src/lib/ring_decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/lib/ring_decode.c +1 -1
@@ -664,7 +664,7 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoderif (!decoder->pm4.next_write_mem.addr_lo) decoder->pm4.next_write_mem.addr_hi++; }else { -printf ("DATA: %s%08lx%s" ,YELLOW , (unsigned long )ib,RST ); +printf ("DATA: %s0x%08lx%s" ,YELLOW , (unsigned long )ib,RST ); } }break ;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 2/2 add DST_SEL=8 field name for WRITE_DATA packet
otherwise we'll out-of-bound when accessing op_37_dst_sel[8]
Signed-off-by Xiaojie Yuan <[email protected]>
--- src/lib/ring_decode.c | 2 +- src/lib/umr_pm4_decode_opcodes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
src/lib/ring_decode.c +1 -1
@@ -465,7 +465,7 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder {static const char *op_3c_functions[] = {"true" ,"<" ,"<=" ,"==" ,"!=" ,">=" ,">" ,"reserved" };static const char *op_37_engines[] = {"ME" ,"PFP" ,"CE" ,"DE" }; -static const char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" }; +static const char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" ,"preemption meta memory" };static const char *op_40_mem_sel[] = {"mem-mapped reg" ,"memory" "tc_l2" ,"gds" ,"perfcounters" ,"immediate data" ,"atomic return data" ,"gds_atomic_return_data_0" ,"gds_atomic_return_data1" ,"gpu_clock_count" ,"system_clock_count" };static const char *op_84_cntr_sel[] = {"invalid" ,"ce" ,"cs" ,"ce and cs" };static const char *op_7a_index_str[] = {"default" ,"prim_type" ,"index_type" ,"num_instance" ,"multi_vgt_param" ,"reserved" ,"reserved" ,"reserved" };
src/lib/umr_pm4_decode_opcodes.c +1 -1
@@ -351,7 +351,7 @@ static void decode_pkt3(struct umr_asic *asic, struct umr_pm4_stream_decode_ui * {static char *op_3c_functions[] = {"true" ,"<" ,"<=" ,"==" ,"!=" ,">=" ,">" ,"reserved" };static char *op_37_engines[] = {"ME" ,"PFP" ,"CE" ,"DE" }; -static char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" }; +static char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" ,"preemption meta memory" };static char *op_40_mem_sel[] = {"mem-mapped reg" ,"memory" "tc_l2" ,"gds" ,"perfcounters" ,"immediate data" ,"atomic return data" ,"gds_atomic_return_data_0" ,"gds_atomic_return_data1" ,"gpu_clock_count" ,"system_clock_count" };static char *op_84_cntr_sel[] = {"invalid" ,"ce" ,"cs" ,"ce and cs" };static char *op_7a_index_str[] = {"default" ,"prim_type" ,"index_type" ,"num_instance" ,"multi_vgt_param" ,"reserved" ,"reserved" ,"reserved" };
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Re: [PATCH 2/2] add DST_SEL=8 field name for WRITE_DATA packet
Thanks, both pushed out to the master branch.
Cheers,
Tom
Quoted 26 lines · Xiaojie Yuan
otherwise we'll out-of-bound when accessing op_37_dst_sel[8]
Signed-off-by Xiaojie Yuan <[email protected]>--- src/lib/ring_decode.c | 2 +- src/lib/umr_pm4_decode_opcodes.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)src/lib/ring_decode.c +1
-1@@ -465,7 +465,7 @@ static void print_decode_pm4_pkt3(struct umr_asic *asic, struct umr_ring_decoder {static const char *op_3c_functions[] = {"true" ,"<" ,"<=" ,"==" ,"!=" ,">=" ,">" ,"reserved" };static const char *op_37_engines[] = {"ME" ,"PFP" ,"CE" ,"DE" }; -static const char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" }; +static const char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" ,"preemption meta memory" };static const char *op_40_mem_sel[] = {"mem-mapped reg" ,"memory" "tc_l2" ,"gds" ,"perfcounters" ,"immediate data" ,"atomic return data" ,"gds_atomic_return_data_0" ,"gds_atomic_return_data1" ,"gpu_clock_count" ,"system_clock_count" };static const char *op_84_cntr_sel[] = {"invalid" ,"ce" ,"cs" ,"ce and cs" };static const char *op_7a_index_str[] = {"default" ,"prim_type" ,"index_type" ,"num_instance" ,"multi_vgt_param" ,"reserved" ,"reserved" ,"reserved" };src/lib/umr_pm4_decode_opcodes.c +0
-0
src/lib/umr_pm4_decode_opcodes.c static void decode_pkt3(struct umr_asic *asic, struct umr_pm4_stream_decode_ui * · line 357
Quoted 8 lines
src/lib/umr_pm4_decode_opcodes.c +1
-1@@ -351,7 +351,7 @@ static void decode_pkt3(struct umr_asic *asic, struct umr_pm4_stream_decode_ui * {static char *op_3c_functions[] = {"true" ,"<" ,"<=" ,"==" ,"!=" ,">=" ,">" ,"reserved" };static char *op_37_engines[] = {"ME" ,"PFP" ,"CE" ,"DE" }; -static char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" }; +static char *op_37_dst_sel[] = {"mem-mapped reg" ,"memory sync" ,"TC/L2" ,"GDS" ,"reserved" ,"memory async" ,"reserved" ,"reserved" ,"preemption meta memory" };static char *op_40_mem_sel[] = {"mem-mapped reg" ,"memory" "tc_l2" ,"gds" ,"perfcounters" ,"immediate data" ,"atomic return data" ,"gds_atomic_return_data_0" ,"gds_atomic_return_data1" ,"gpu_clock_count" ,"system_clock_count" };static char *op_84_cntr_sel[] = {"invalid" ,"ce" ,"cs" ,"ce and cs" };static char *op_7a_index_str[] = {"default" ,"prim_type" ,"index_type" ,"num_instance" ,"multi_vgt_param" ,"reserved" ,"reserved" ,"reserved" };
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx