Skip to contentSkip to conversation

baseband/acc: fix for 23.11

PATCH Applied Hernan Vargas 2 participants 4 messages Sep 19, 2023 – Oct 12, 2023

lore
Share & tools
lore
#0 lore raw

cover baseband/acc: fix for 23.11

Fix ACC100 HARQ input alignment.

Hernan Vargas (1):
baseband/acc: fix ACC100 HARQ input is alignment

 drivers/baseband/acc/rte_acc100_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.37.1
#1 lore raw

PATCH 1/1 baseband/acc: fix ACC100 HARQ input is alignment

Some constraints are imposed onto the ACC100 HARQ input size, but that value is incorrectly aligned down when getting close to max (Ncb-F) which is not required.
The wireless performance impact is negligeable but still causes a few LLRs no to be combined at the very end of the circular buffer.

Fixes 5802f36dd492 ("baseband/acc100: enforce additional check on FCW")
---
 drivers/baseband/acc/rte_acc100_pmd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc/rte_acc100_pmd.c +1 -1
index 5362d39c302f..c736f3e4201c 100644
@@ -1218,7 +1218,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw,
 				- op->ldpc_dec.n_filler);
 
 		/* Alignment on next 64B - Already enforced from HC output */
-		harq_in_length = RTE_ALIGN_FLOOR(harq_in_length, ACC_HARQ_ALIGN_64B);
+		harq_in_length = RTE_ALIGN_CEIL(harq_in_length, ACC_HARQ_ALIGN_64B);
 
 		/* Stronger alignment requirement when in decompression mode */
 		if (fcw->hcin_decomp_mode > 0)
Signature · 1 line
2.37.1
Reviewed-by on v1 1/1
#2 lore raw

Re: [PATCH v1 1/1] baseband/acc: fix ACC100 HARQ input is alignment

Quoted 19 lines · Hernan Vargas

Some constraints are imposed onto the ACC100 HARQ input size, but that value is incorrectly aligned down when getting close to max (Ncb-F) which is not required.
The wireless performance impact is negligeable but still causes a few LLRs no to be combined at the very end of the circular buffer.

Fixes 5802f36dd492 ("baseband/acc100: enforce additional check on FCW")
---
  drivers/baseband/acc/rte_acc100_pmd.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc/rte_acc100_pmd.c +0 -0
index 5362d39c302f..c736f3e4201c 100644

drivers/baseband/acc/rte_acc100_pmd.c acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, · line 1224

Quoted 8 lines
drivers/baseband/acc/rte_acc100_pmd.c +1 -1
@@ -1218,7 +1218,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw,
  				- op->ldpc_dec.n_filler);
 
  		/* Alignment on next 64B - Already enforced from HC output */
-		harq_in_length = RTE_ALIGN_FLOOR(harq_in_length, ACC_HARQ_ALIGN_64B);
+		harq_in_length = RTE_ALIGN_CEIL(harq_in_length, ACC_HARQ_ALIGN_64B);
 
  		/* Stronger alignment requirement when in decompression mode */
  		if (fcw->hcin_decomp_mode > 0)

Thanks,
Maxime

#3 lore raw

Re: [PATCH v1 1/1] baseband/acc: fix ACC100 HARQ input is alignment

In reply to Hernan Vargas
Quoted 19 lines · Hernan Vargas

Some constraints are imposed onto the ACC100 HARQ input size, but that value is incorrectly aligned down when getting close to max (Ncb-F) which is not required.
The wireless performance impact is negligeable but still causes a few LLRs no to be combined at the very end of the circular buffer.

Fixes 5802f36dd492 ("baseband/acc100: enforce additional check on FCW")
---
  drivers/baseband/acc/rte_acc100_pmd.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc/rte_acc100_pmd.c +0 -0
index 5362d39c302f..c736f3e4201c 100644

drivers/baseband/acc/rte_acc100_pmd.c acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, · line 1224

Quoted 8 lines
drivers/baseband/acc/rte_acc100_pmd.c +1 -1
@@ -1218,7 +1218,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw,
  				- op->ldpc_dec.n_filler);
 
  		/* Alignment on next 64B - Already enforced from HC output */
-		harq_in_length = RTE_ALIGN_FLOOR(harq_in_length, ACC_HARQ_ALIGN_64B);
+		harq_in_length = RTE_ALIGN_CEIL(harq_in_length, ACC_HARQ_ALIGN_64B);
 
  		/* Stronger alignment requirement when in decompression mode */
  		if (fcw->hcin_decomp_mode > 0)

Applied to next-baseband/for-main.

Thanks,
Maxime