baseband/acc: fix for VRB1 PMD
cover baseband/acc: fix for VRB1 PMD
Fix bug for the VRB1 PMD in LDPC Encoder TB mode.
Targeting the rc3 if possible.
Nicolas Chautru (1):
baseband/acc: fix for TB mode on VRB1
drivers/baseband/acc/rte_vrb_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Signature · 1 line
2.34.1
PATCH 1/1 baseband/acc: fix for TB mode on VRB1
The input size is computed incorrectly for the
LDPC encoder TB processing.
Fixes e640f6cdfa84 ("baseband/acc200: add LDPC processing")
Signed-off-by Nicolas Chautru <[email protected]>
--- drivers/baseband/acc/rte_vrb_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc/rte_vrb_pmd.c +2 -1
@@ -2218,7 +2218,8 @@ vrb1_enqueue_ldpc_enc_one_op_tb(struct acc_queue *q, struct rte_bbdev_enc_op *opuint16_t init_enq_descs = enq_descs;uint32_t in_offset =0 , out_offset =0 ; - input_len_B = ((op->ldpc_enc.basegraph ==1 ?22 :10 ) * op->ldpc_enc.z_c) >>3 ; + input_len_B = ((op->ldpc_enc.basegraph ==1 ?22 :10 ) * op->ldpc_enc.z_c + - op->ldpc_enc.n_filler) >>3 ;if (check_bit (op->ldpc_enc.op_flags,RTE_BBDEV_LDPC_CRC_24B_ATTACH )) input_len_B -=3 ;
Signature · 1 line
2.34.1
Re: [PATCH v1 1/1] baseband/acc: fix for TB mode on VRB1
Quoted 16 lines · Nicolas Chautru
The input size is computed incorrectly for the
LDPC encoder TB processing.Fixes e640f6cdfa84 ("baseband/acc200: add LDPC processing")Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/rte_vrb_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/baseband/acc/rte_vrb_pmd.c +0
-0
drivers/baseband/acc/rte_vrb_pmd.c vrb1_enqueue_ldpc_enc_one_op_tb(struct acc_queue *q, struct rte_bbdev_enc_op *op · line 2225
Quoted 9 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-1@@ -2218,7 +2218,8 @@ vrb1_enqueue_ldpc_enc_one_op_tb(struct acc_queue *q, struct rte_bbdev_enc_op *opuint16_t init_enq_descs = enq_descs;uint32_t in_offset =0 , out_offset =0 ; - input_len_B = ((op->ldpc_enc.basegraph ==1 ?22 :10 ) * op->ldpc_enc.z_c) >>3 ; + input_len_B = ((op->ldpc_enc.basegraph ==1 ?22 :10 ) * op->ldpc_enc.z_c + - op->ldpc_enc.n_filler) >>3 ;if (check_bit (op->ldpc_enc.op_flags,RTE_BBDEV_LDPC_CRC_24B_ATTACH )) input_len_B -=3 ;
Reviewed-by Maxime Coquelin <[email protected]>
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 9 lines · Nicolas Chautru
Fix bug for the VRB1 PMD in LDPC Encoder TB mode.
Targeting the rc3 if possible.Nicolas Chautru (1):
baseband/acc: fix for TB mode on VRB1drivers/baseband/acc/rte_vrb_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to next-baseband/for-main.
Thanks,
Maxime