Skip to contentSkip to conversation

baseband/acc: fix for VRB1 PMD

PATCH Applied Nicolas Chautru 2 participants 4 messages Nov 3, 2023 – Nov 9, 2023

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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")
---
 drivers/baseband/acc/rte_vrb_pmd.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc/rte_vrb_pmd.c +2 -1
index ae230b828a..686e086a5c 100644
@@ -2218,7 +2218,8 @@ vrb1_enqueue_ldpc_enc_one_op_tb(struct acc_queue *q, struct rte_bbdev_enc_op *op
 	uint16_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
Reviewed-by on v1 1/1
#2 lore raw

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")
---
  drivers/baseband/acc/rte_vrb_pmd.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc/rte_vrb_pmd.c +0 -0
index ae230b828a..686e086a5c 100644

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 *op
  	uint16_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;

Thanks,
Maxime

#3 lore raw
In reply to Nicolas Chautru
Quoted 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 VRB1

  drivers/baseband/acc/rte_vrb_pmd.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

Applied to next-baseband/for-main.

Thanks,
Maxime