baseband/acc100: changes for 22.11
cover baseband/acc100: changes for 22.11
Upstreaming ACC100 changes for 22.11.
This patch series is dependant on series:
https://patches.dpdk.org/project/dpdk/patch/1657150110-69957
Hernan Vargas (33):
baseband/acc100: update dev close function baseband/acc100: quit queue setup for undef dev baseband/acc100: add default e value for FCW baseband/acc100: add LDPC encoder padding function baseband/acc100: add scatter-gather support baseband/acc100: add HARQ index helper function baseband/acc100: avoid mux for small inbound frames baseband/acc100: separate validation functions from debug baseband/acc100: add LDPC transport block support baseband/acc10x: limit cases for HARQ pruning baseband/acc100: update validate LDPC enc/dec baseband/acc100: add workaround for deRM corner cases baseband/acc100: enable vf2pf doorbell register baseband/acc100: add ring companion address baseband/acc100: configure PMON control registers baseband/acc100: configurable queue depth baseband/acc100: add queue stop operation basbeband/acc100: check turbo dec/enc input baseband/acc100: check for unlikely operation vals baseband/acc100: enforce additional check on FCW baseband/acc100: update uplink CB input length baseband/acc100: rename ldpc encode function arg baseband/acc100: update log messages baseband/acc100: allocate ring/queue mem when NULL baseband/acc100: store FCW from first CB descriptor baseband/acc100: remove input error check from enc baseband/acc100: make desc optimization optional baseband/acc100: update device info baseband/acc100: reduce input length for CRC24B baseband/acc100: initialize ring data value baseband/acc100: update debug print for LDPC FCW baseband/acc100: set device min alignment to 1 baseband/acc100: update meson file sdk dependency
drivers/baseband/acc100/acc100_pmd.h | 41 +- drivers/baseband/acc100/acc100_vf_enum.h | 6 + drivers/baseband/acc100/meson.build | 21 + drivers/baseband/acc100/rte_acc100_pmd.c | 1196 ++++++++++++++++++---- 4 files changed, 1068 insertions(+), 196 deletions(-)
Signature · 1 line
2.37.1
PATCH 1/33 baseband/acc100: update dev close function
Free harq_layout and reset device pointers.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +8 -1
@@ -340,6 +340,8 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc100_device *d,int i =0 ;uint32_t q_sw_ring_size =ACC100_MAX_QUEUE_DEPTH *get_desc_len ();uint32_t dev_sw_ring_size = q_sw_ring_size * num_queues; +/* Free first in case this is a reconfiguration */ +rte_free (d->sw_rings_base);/* Find an aligned block of memory to store sw rings */ while (i <ACC100_SW_RING_MEM_ALLOC_ATTEMPTS ) {
@@ -768,7 +770,11 @@ acc100_dev_close(struct rte_bbdev *dev)rte_free (d->tail_ptrs);rte_free (d->info_ring);rte_free (d->sw_rings_base); +rte_free (d->harq_layout); d->sw_rings_base =NULL ; + d->tail_ptrs =NULL ; + d->info_ring =NULL ; + d->harq_layout =NULL ; }/* Ensure all in flight HW transactions are completed */ usleep (ACC100_LONG_WAIT );
@@ -4665,7 +4671,8 @@ poweron_cleanup(struct rte_bbdev *bbdev, struct acc100_device *d, }printf ("Number of 5GUL engines %d\n" , numEngines); -rte_free (d->sw_rings_base); +if (d->sw_rings_base !=NULL ) +rte_free (d->sw_rings_base);usleep (ACC100_LONG_WAIT ); }
Signature · 1 line
2.37.1
PATCH 2/33 baseband/acc100: quit queue setup for undef dev
In reply to Hernan VargasMove check for undefined device before allocating queue data structure.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +4 -4
@@ -831,6 +831,10 @@ acc100_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,struct acc100_queue *q;int16_t q_idx; +if (d ==NULL ) { +rte_bbdev_log (ERR ,"Undefined device" ); +return -ENODEV ; + }/* Allocate the queue data structure. */ q =rte_zmalloc_socket (dev->device->driver->name,sizeof (*q),RTE_CACHE_LINE_SIZE , conf->socket);
@@ -838,10 +842,6 @@ acc100_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,rte_bbdev_log (ERR ,"Failed to allocate queue memory" );return -ENOMEM ; } -if (d ==NULL ) { -rte_bbdev_log (ERR ,"Undefined device" ); -return -ENODEV ; - } q->d = d; q->ring_addr =RTE_PTR_ADD (d->sw_rings, (d->sw_ring_size * queue_id));
Signature · 1 line
2.37.1
PATCH 3/33 baseband/acc100: add default e value for FCW
In reply to Hernan VargasUpdate frame control word LDPC encoder fill function to take a default e value as a parameter.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +4 -4
@@ -1271,7 +1271,7 @@ get_k0(uint16_t n_cb, uint16_t z_c, uint8_t bg, uint8_t rv_index)/* Fill in a frame control word for LDPC encoding. */ static inline void acc100_fcw_le_fill (const struct rte_bbdev_enc_op *op, -struct acc100_fcw_le *fcw,int num_cb) +struct acc100_fcw_le *fcw,int num_cb,uint32_t default_e) { fcw->qm = op->ldpc_enc.q_m; fcw->nfiller = op->ldpc_enc.n_filler;
@@ -1280,7 +1280,7 @@ acc100_fcw_le_fill(const struct rte_bbdev_enc_op *op, fcw->ncb = op->ldpc_enc.n_cb; fcw->k0 =get_k0 (fcw->ncb, fcw->Zc, op->ldpc_enc.basegraph, op->ldpc_enc.rv_index); - fcw->rm_e = op->ldpc_enc.cb_params.e; + fcw->rm_e = (default_e ==0 ) ? op->ldpc_enc.cb_params.e : default_e; fcw->crc_select =check_bit (op->ldpc_enc.op_flags,RTE_BBDEV_LDPC_CRC_24B_ATTACH ); fcw->bypass_intlv = check_bit(op->ldpc_enc.op_flags,
@@ -2528,7 +2528,7 @@ enqueue_ldpc_enc_n_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op **ops,uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx; -acc100_fcw_le_fill (ops[0 ], &desc->req.fcw_le, num); +acc100_fcw_le_fill (ops[0 ], &desc->req.fcw_le, num,0 );/** This could be done at polling */ acc100_header_init (&desc->req);
@@ -2590,7 +2590,7 @@ enqueue_ldpc_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx; -acc100_fcw_le_fill (op, &desc->req.fcw_le,1 ); +acc100_fcw_le_fill (op, &desc->req.fcw_le,1 ,0 ); input = op->ldpc_enc.input.data; output_head = output = op->ldpc_enc.output.data;
Signature · 1 line
2.37.1
PATCH 4/33 baseband/acc100: add LDPC encoder padding function
In reply to Hernan VargasLDPC Encoder input may need to be padded to avoid small beat for ACC100.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +16 -7
@@ -1307,7 +1307,6 @@ acc100_fcw_td_fill(const struct rte_bbdev_dec_op *op, struct acc100_fcw_td *fcw) RTE_BBDEV_TURBO_HALF_ITERATION_EVEN); } -#ifdef RTE_LIBRTE_BBDEV_DEBUG static inline bool is_acc100 (struct acc100_queue *q)
@@ -1320,7 +1319,6 @@ validate_op_required(struct acc100_queue *q) {return is_acc100 (q); } -#endif /* Fill in a frame control word for LDPC decoding. */ static inline void
@@ -1776,12 +1774,24 @@ acc100_dma_desc_te_fill(struct rte_bbdev_enc_op *op,return 0 ; } +/* May need to pad LDPC Encoder input to avoid small beat for ACC100 */ +static inline uint16_t +pad_le_in (uint16_t blen,struct acc100_queue *q) +{ +if (!is_acc100 (q)) +return blen; +uint16_t last_beat = blen %64 ; +if ((last_beat >0 ) && (last_beat <=8 )) + blen +=8 ; +return blen; +} +static inline int acc100_dma_desc_le_fill (struct rte_bbdev_enc_op *op,struct acc100_dma_req_desc *desc,struct rte_mbuf **input,struct rte_mbuf *output,uint32_t *in_offset,uint32_t *out_offset,uint32_t *out_length, -uint32_t *mbuf_total_left,uint32_t *seg_total_left) +uint32_t *mbuf_total_left,uint32_t *seg_total_left,struct acc100_queue *q) {int next_triplet =1 ;/* FCW already done */ uint16_t K , in_length_in_bits, in_length_in_bytes;
@@ -1805,8 +1815,7 @@ acc100_dma_desc_le_fill(struct rte_bbdev_enc_op *op, } next_triplet =acc100_dma_fill_blk_type_in (desc, input, in_offset, - in_length_in_bytes, - seg_total_left, next_triplet); +pad_le_in (in_length_in_bytes, q), seg_total_left, next_triplet);if (unlikely (next_triplet <0 )) { rte_bbdev_log(ERR, "Mismatch between data to process and mbuf data length in bbdev_op: %p",
@@ -2534,7 +2543,7 @@ enqueue_ldpc_enc_n_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op **ops,acc100_header_init (&desc->req); desc->req.numCBs = num; - in_length_in_bytes = ops[0 ]->ldpc_enc.input.data->data_len; + in_length_in_bytes =pad_le_in (ops[0 ]->ldpc_enc.input.data->data_len, q); out_length = (enc->cb_params.e +7 ) >>3 ; desc->req.m2dlen =1 + num; desc->req.d2mlen = num;
@@ -2603,7 +2612,7 @@ enqueue_ldpc_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, ret =acc100_dma_desc_le_fill (op, &desc->req, &input, output, &in_offset, &out_offset, &out_length, &mbuf_total_left, - &seg_total_left); + &seg_total_left, q);if (unlikely (ret <0 ))return ret;
Signature · 1 line
2.37.1
PATCH 5/33 baseband/acc100: add scatter-gather support
In reply to Hernan VargasAdd flag to support scatter-gather for the mbuf
--- drivers/baseband/acc100/rte_acc100_pmd.c | 45 ++++++++++++++++-------- 1 file changed, 31 insertions(+), 14 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +31 -14
@@ -1588,6 +1588,8 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw,* Store information about device capabilities * @param next_triplet * Index for ACC100 DMA Descriptor triplet +* @param scattergather +* Flag to support scatter-gather for the mbuf * * @return * Returns index of next triplet on success, other value if lengths of
@@ -1597,12 +1599,17 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw,static inline int acc100_dma_fill_blk_type_in (struct acc100_dma_req_desc *desc,struct rte_mbuf **input,uint32_t *offset,uint32_t cb_len, -uint32_t *seg_total_left,int next_triplet) +uint32_t *seg_total_left,int next_triplet, +bool scattergather) {uint32_t part_len;struct rte_mbuf *m = *input; - part_len = (*seg_total_left < cb_len) ? *seg_total_left : cb_len; +if (scattergather) + part_len = (*seg_total_left < cb_len) ? + *seg_total_left : cb_len; +else + part_len = cb_len; cb_len -= part_len; *seg_total_left -= part_len;
@@ -1738,7 +1745,9 @@ acc100_dma_desc_te_fill(struct rte_bbdev_enc_op *op, } next_triplet =acc100_dma_fill_blk_type_in (desc, input, in_offset, - length, seg_total_left, next_triplet); + length, seg_total_left, next_triplet, +check_bit (op->turbo_enc.op_flags, +RTE_BBDEV_TURBO_ENC_SCATTER_GATHER ));if (unlikely (next_triplet <0 )) { rte_bbdev_log(ERR, "Mismatch between data to process and mbuf data length in bbdev_op: %p",
@@ -1815,7 +1824,7 @@ acc100_dma_desc_le_fill(struct rte_bbdev_enc_op *op, } next_triplet =acc100_dma_fill_blk_type_in (desc, input, in_offset, -pad_le_in (in_length_in_bytes, q), seg_total_left, next_triplet); +pad_le_in (in_length_in_bytes, q), seg_total_left, next_triplet, false);if (unlikely (next_triplet <0 )) { rte_bbdev_log(ERR, "Mismatch between data to process and mbuf data length in bbdev_op: %p",
@@ -1903,7 +1912,9 @@ acc100_dma_desc_td_fill(struct rte_bbdev_dec_op *op, } next_triplet =acc100_dma_fill_blk_type_in (desc, input, in_offset, kw, - seg_total_left, next_triplet); + seg_total_left, next_triplet, +check_bit (op->turbo_dec.op_flags, +RTE_BBDEV_TURBO_DEC_SCATTER_GATHER ));if (unlikely (next_triplet <0 )) { rte_bbdev_log(ERR, "Mismatch between data to process and mbuf data length in bbdev_op: %p",
@@ -2005,7 +2016,9 @@ acc100_dma_desc_ld_fill(struct rte_bbdev_dec_op *op, next_triplet =acc100_dma_fill_blk_type_in (desc, input, in_offset, input_length, - seg_total_left, next_triplet); + seg_total_left, next_triplet, +check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_DEC_SCATTER_GATHER ));if (unlikely (next_triplet <0 )) { rte_bbdev_log(ERR,
@@ -3145,8 +3158,9 @@ enqueue_ldpc_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, fcw = &desc->req.fcw_ld; q->d->fcw_ld_fill (op, fcw, harq_layout); -/* Special handling when overusing mbuf */ -if (fcw->rm_e <ACC100_MAX_E_MBUF ) +/* Special handling when using mbuf or not */ +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_DEC_SCATTER_GATHER )) seg_total_left =rte_pktmbuf_data_len (input) - in_offset;else
@@ -3222,9 +3236,12 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, r = op->ldpc_dec.tb_params.r;while (mbuf_total_left >0 && r < c) { - - seg_total_left =rte_pktmbuf_data_len (input) - in_offset; - +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_DEC_SCATTER_GATHER )) + seg_total_left =rte_pktmbuf_data_len (input) + - in_offset; +else + seg_total_left = op->ldpc_dec.input.length;/* Set up DMA descriptor */ desc = q->ring_addr + ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask);
@@ -3249,8 +3266,9 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, sizeof(desc->req.fcw_td) - 8);rte_memdump (stderr,"Req Desc." , desc,sizeof (*desc));#endif - -if (seg_total_left ==0 ) { +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_DEC_SCATTER_GATHER ) + && (seg_total_left ==0 )) {/* Go to the next mbuf */ input = input->next; in_offset =0 ;
@@ -3261,7 +3279,6 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, current_enqueued_cbs++; r++; } -#ifdef RTE_LIBRTE_BBDEV_DEBUG if (check_mbuf_total_left (mbuf_total_left) !=0 )return -EINVAL ;
Signature · 1 line
2.37.1
PATCH 6/33 baseband/acc100: add HARQ index helper function
In reply to Hernan VargasRefactor code to use the HARQ index helper function and make harq_idx uint32.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 32 +++++++++++------------- 1 file changed, 14 insertions(+), 18 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +14 -18
@@ -1307,6 +1307,11 @@ acc100_fcw_td_fill(const struct rte_bbdev_dec_op *op, struct acc100_fcw_td *fcw) RTE_BBDEV_TURBO_HALF_ITERATION_EVEN); } +/* Convert offset to harq index for harq_layout structure */ +static inline uint32_t hq_index (uint32_t offset) +{ +return (offset >>ACC100_HARQ_OFFSET_SHIFT ) &ACC100_HARQ_OFFSET_MASK ; +}static inline bool is_acc100 (struct acc100_queue *q)
@@ -1326,7 +1331,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, union acc100_harq_layout_data *harq_layout) {uint16_t harq_out_length, harq_in_length, ncb_p, k0_p, parity_offset; -uint16_t harq_index; +uint32_t harq_index;uint32_t l;bool harq_prun = false;
@@ -1365,8 +1370,7 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION); fcw->llr_pack_mode =check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_LLR_COMPRESSION ); - harq_index = op->ldpc_dec.harq_combined_output.offset / -ACC100_HARQ_OFFSET ; + harq_index =hq_index (op->ldpc_dec.harq_combined_output.offset);#ifdef ACC100_EXT_MEM /* Limit cases when HARQ pruning is valid */ harq_prun = ((op->ldpc_dec.harq_combined_output.offset %
@@ -1446,12 +1450,6 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, } } -/* Convert offset to harq index for harq_layout structure */ -static inline uint32_t hq_index (uint32_t offset) -{ -return (offset >>ACC100_HARQ_OFFSET_SHIFT ) &ACC100_HARQ_OFFSET_MASK ; -} -/* Fill in a frame control word for LDPC decoding for ACC101 */ static inline void acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw,
@@ -2135,12 +2133,11 @@ acc100_dma_desc_ld_update(struct rte_bbdev_dec_op *op,struct rte_bbdev_dec_op *prev_op = desc->op_addr; op->ldpc_dec.harq_combined_output.length = prev_op->ldpc_dec.harq_combined_output.length; -int16_t hq_idx = op->ldpc_dec.harq_combined_output.offset / -ACC100_HARQ_OFFSET ; -int16_t prev_hq_idx = - prev_op->ldpc_dec.harq_combined_output.offset - /ACC100_HARQ_OFFSET ; - harq_layout[hq_idx].val = harq_layout[prev_hq_idx].val; +uint32_t harq_idx =hq_index ( + op->ldpc_dec.harq_combined_output.offset); +uint32_t prev_harq_idx =hq_index ( + prev_op->ldpc_dec.harq_combined_output.offset); + harq_layout[harq_idx].val = harq_layout[prev_harq_idx].val;#ifndef ACC100_EXT_MEM struct rte_bbdev_op_data ho = op->ldpc_dec.harq_combined_output;
@@ -2972,10 +2969,9 @@ harq_loopback(struct acc100_queue *q, struct rte_bbdev_dec_op *op,bool ddr_mem_in =check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE );union acc100_harq_layout_data *harq_layout = q->d->harq_layout; -uint16_t harq_index = (ddr_mem_in ? +uint32_t harq_index =hq_index (ddr_mem_in ? op->ldpc_dec.harq_combined_input.offset : - op->ldpc_dec.harq_combined_output.offset) - /ACC100_HARQ_OFFSET ; + op->ldpc_dec.harq_combined_output.offset);uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask);
Signature · 1 line
2.37.1
PATCH 7/33 baseband/acc100: avoid mux for small inbound frames
In reply to Hernan VargasUpdate check_mux to avoid multiplexing small inbound frames.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +11 -5
@@ -3551,20 +3551,25 @@ acc100_enqueue_enc_cb(struct rte_bbdev_queue_data *q_data, }/* Check we can mux encode operations with common FCW */ -static inline bool +static inline int16_t check_mux (struct rte_bbdev_enc_op **ops,uint16_t num) {uint16_t i;if (num <=1 ) -return false; +return 1 ;for (i =1 ; i < num; ++i) {/* Only mux compatible code blocks */ if (memcmp ((uint8_t *)(&ops[i]->ldpc_enc) +ACC100_ENC_OFFSET , (uint8_t *)(&ops[0 ]->ldpc_enc) +ACC100_ENC_OFFSET ,ACC100_CMP_ENC_SIZE ) !=0 ) -return false; +return i; } -return true; +/* Avoid multiplexing small inbound size frames */ +int Kp = (ops[0 ]->ldpc_enc.basegraph ==1 ?22 :10 ) * + ops[0 ]->ldpc_enc.z_c - ops[0 ]->ldpc_enc.n_filler; +if (Kp <=ACC100_LIMIT_DL_MUX_BITS ) +return 1 ; +return num; }/** Enqueue encode operations for ACC100 device in CB mode. */
@@ -3586,7 +3591,8 @@ acc100_enqueue_ldpc_enc_cb(struct rte_bbdev_queue_data *q_data, } avail--; enq =RTE_MIN (left,ACC100_MUX_5GDL_DESC ); -if (check_mux (&ops[i], enq)) { + enq =check_mux (&ops[i], enq); +if (enq >1 ) { ret =enqueue_ldpc_enc_n_op_cb (q, &ops[i], desc_idx, enq);if (ret <0 ) {
Signature · 1 line
2.37.1
PATCH 8/33 baseband/acc100: separate validation functions from debug
In reply to Hernan VargasUse new flag RTE_LIBRTE_BBDEV_SKIP_VALIDATE enable/disable validation functions. The validation API will be enabled by default.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 37 ++++++++++++------------ 1 file changed, 19 insertions(+), 18 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +19 -18
@@ -2225,7 +2225,8 @@ acc100_dma_enqueue(struct acc100_queue *q, uint16_t n, } -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE +/* Validates turbo encoder parameters */ static inline int validate_enc_op (struct rte_bbdev_enc_op *op,struct acc100_queue *q)
@@ -2482,10 +2483,10 @@ enqueue_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, seg_total_left;struct rte_mbuf *input, *output_head, *output; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_enc_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +rte_bbdev_log (ERR ,"Turbo encoder validation rejected" );return -EINVAL ; }#endif
@@ -2536,10 +2537,10 @@ enqueue_ldpc_enc_n_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op **ops,uint16_t in_length_in_bytes;struct rte_bbdev_op_ldpc_enc *enc = &ops[0 ]->ldpc_enc; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_ldpc_enc_op (ops[0 ], q) ==-1 ) { -rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +rte_bbdev_log (ERR ,"LDPC encoder validation rejected" );return -EINVAL ; }#endif
@@ -2598,10 +2599,10 @@ enqueue_ldpc_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, seg_total_left;struct rte_mbuf *input, *output_head, *output; -#ifdef RTE_LIBRTE_BBDEV_DEBUG /* Validate op structure */ +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE if (validate_ldpc_enc_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +rte_bbdev_log (ERR ,"LDPC encoder validation rejected" );return -EINVAL ; }#endif
@@ -2655,10 +2656,10 @@ enqueue_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,struct rte_mbuf *input, *output_head, *output;uint16_t current_enqueued_cbs =0 ; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_enc_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +rte_bbdev_log (ERR ,"Turbo encoder validation rejected" );return -EINVAL ; }#endif
@@ -2727,7 +2728,7 @@ enqueue_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,return current_enqueued_cbs; } -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validates turbo decoder parameters */ static inline int validate_dec_op (struct rte_bbdev_dec_op *op,struct acc100_queue *q)
@@ -2878,10 +2879,10 @@ enqueue_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,struct rte_mbuf *input, *h_output_head, *h_output, *s_output_head, *s_output; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_dec_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +rte_bbdev_log (ERR ,"Turbo decoder validation rejected" );return -EINVAL ; }#endif
@@ -3102,10 +3103,10 @@ enqueue_ldpc_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,return ret; } -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_ldpc_dec_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +rte_bbdev_log (ERR ,"LDPC decoder validation rejected" );return -EINVAL ; }#endif
@@ -3207,10 +3208,10 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,struct rte_mbuf *input, *h_output_head, *h_output;uint16_t current_enqueued_cbs =0 ; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_ldpc_dec_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +rte_bbdev_log (ERR ,"LDPC decoder validation rejected" );return -EINVAL ; }#endif
@@ -3300,10 +3301,10 @@ enqueue_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, *s_output_head, *s_output;uint16_t current_enqueued_cbs =0 ; -#ifdef RTE_LIBRTE_BBDEV_DEBUG +#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE /* Validate op structure */ if (validate_dec_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +rte_bbdev_log (ERR ,"Turbo decoder validation rejected" );return -EINVAL ; }#endif
Signature · 1 line
2.37.1
PATCH 9/33 baseband/acc100: add LDPC transport block support
In reply to Hernan VargasAdd LDPC enqueue functions to handle transport blocks.
--- drivers/baseband/acc100/acc100_pmd.h | 1 + drivers/baseband/acc100/rte_acc100_pmd.c | 197 ++++++++++++++++++++++- 2 files changed, 196 insertions(+), 2 deletions(-)
drivers/baseband/acc100/acc100_pmd.h +1 -0
@@ -135,6 +135,7 @@#define ACC100_DEC_OFFSET (80)#define ACC100_EXT_MEM /* Default option with memory external to CPU */ #define ACC100_HARQ_OFFSET_THRESHOLD 1024 +#define ACC100_LIMIT_DL_MUX_BITS 534/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC100_N_ZC_1 66/* N = 66 Zc for BG 1 */
drivers/baseband/acc100/rte_acc100_pmd.c +195 -2
233 lines not on this page · raw message
Signature · 1 line
2.37.1
PATCH 10/33 baseband/acc10x: limit cases for HARQ pruning
In reply to Hernan VargasAdd flag ACC101_HARQ_PRUNING_OPTIMIZATION to limit cases when HARQ pruning is valid.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 52 +++++++++++++++++++----- 1 file changed, 41 insertions(+), 11 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +41 -11
@@ -1373,17 +1373,23 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, harq_index =hq_index (op->ldpc_dec.harq_combined_output.offset);#ifdef ACC100_EXT_MEM /* Limit cases when HARQ pruning is valid */ +#ifdef ACC100_HARQ_PRUNING_OPTIMIZATION harq_prun = ((op->ldpc_dec.harq_combined_output.offset % -ACC100_HARQ_OFFSET ) ==0 ) && - (op->ldpc_dec.harq_combined_output.offset <=UINT16_MAX - *ACC100_HARQ_OFFSET ); +ACC100_HARQ_OFFSET ) ==0 ); +#endif #endif if (fcw->hcin_en >0 ) { harq_in_length = op->ldpc_dec.harq_combined_input.length;if (fcw->hcin_decomp_mode >0 ) harq_in_length = harq_in_length *8 /6 ; - harq_in_length =RTE_ALIGN (harq_in_length,64 ); -if ((harq_layout[harq_index].offset >0 ) & harq_prun) { + harq_in_length =RTE_MIN (harq_in_length, op->ldpc_dec.n_cb + - op->ldpc_dec.n_filler); +/* Alignment on next 64B - Already enforced from HC output */ + harq_in_length =RTE_ALIGN_FLOOR (harq_in_length,64 ); +/* Stronger alignment requirement when in decompression mode */ +if (fcw->hcin_decomp_mode >0 ) + harq_in_length =RTE_ALIGN_FLOOR (harq_in_length,256 ); +if ((harq_layout[harq_index].offset >0 ) && harq_prun) {rte_bbdev_log_debug ("HARQ IN offset unexpected for now\n" ); fcw->hcin_size0 = harq_layout[harq_index].size0; fcw->hcin_offset = harq_layout[harq_index].offset;
@@ -1458,6 +1464,7 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw,uint16_t harq_out_length, harq_in_length, ncb_p, k0_p, parity_offset;uint32_t harq_index;uint32_t l; +bool harq_prun = false; fcw->qm = op->ldpc_dec.q_m; fcw->nfiller = op->ldpc_dec.n_filler;
@@ -1503,6 +1510,13 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, fcw->llr_pack_mode =check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_LLR_COMPRESSION ); harq_index =hq_index (op->ldpc_dec.harq_combined_output.offset); +#ifdef ACC100_EXT_MEM +/* Limit cases when HARQ pruning is valid */ +#ifdef ACC101_HARQ_PRUNING_OPTIMIZATION + harq_prun = ((op->ldpc_dec.harq_combined_output.offset % +ACC101_HARQ_OFFSET ) ==0 ); +#endif +#endif if (fcw->hcin_en >0 ) { harq_in_length = op->ldpc_dec.harq_combined_input.length;if (fcw->hcin_decomp_mode >0 )
@@ -1511,9 +1525,17 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_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,64 ); - fcw->hcin_size0 = harq_in_length; - fcw->hcin_offset =0 ; - fcw->hcin_size1 =0 ; +if ((harq_layout[harq_index].offset >0 ) && harq_prun) { +rte_bbdev_log_debug ("HARQ IN offset unexpected for now\n" ); + fcw->hcin_size0 = harq_layout[harq_index].size0; + fcw->hcin_offset = harq_layout[harq_index].offset; + fcw->hcin_size1 = harq_in_length - + harq_layout[harq_index].offset; + }else { + fcw->hcin_size0 = harq_in_length; + fcw->hcin_offset =0 ; + fcw->hcin_size1 =0 ; + } }else { fcw->hcin_size0 =0 ; fcw->hcin_offset =0 ;
@@ -1554,9 +1576,17 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, harq_out_length =RTE_MIN (harq_out_length, ncb_p);/* Alignment on next 64B */ harq_out_length =RTE_ALIGN_CEIL (harq_out_length,64 ); - fcw->hcout_size0 = harq_out_length; - fcw->hcout_size1 =0 ; - fcw->hcout_offset =0 ; +if ((k0_p > fcw->hcin_size0 +ACC100_HARQ_OFFSET_THRESHOLD ) && + harq_prun) { + fcw->hcout_size0 = (uint16_t ) fcw->hcin_size0; + fcw->hcout_offset = k0_p &0xFFC0 ; + fcw->hcout_size1 = harq_out_length - fcw->hcout_offset; + }else { + fcw->hcout_size0 = harq_out_length; + fcw->hcout_size1 =0 ; + fcw->hcout_offset =0 ; + } + harq_layout[harq_index].offset = fcw->hcout_offset; harq_layout[harq_index].size0 = fcw->hcout_size0; }else {
Signature · 1 line
2.37.1
PATCH 11/33 baseband/acc100: update validate LDPC enc/dec
In reply to Hernan VargasUpdate validate functions to check for valid LDPC parameters, handling HARQ and transport blocks.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 297 +++++++++++++++++++++-- 1 file changed, 283 insertions(+), 14 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +283 -14
@@ -2407,10 +2407,6 @@ validate_ldpc_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q)if (!validate_op_required (q))return 0 ; -if (op->mempool ==NULL ) { -rte_bbdev_log (ERR ,"Invalid mempool pointer" ); -return -1 ; - }if (ldpc_enc->input.data ==NULL ) {rte_bbdev_log (ERR ,"Invalid input pointer" );return -1 ;
@@ -2419,11 +2415,9 @@ validate_ldpc_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q)rte_bbdev_log (ERR ,"Invalid output pointer" );return -1 ; } -if (ldpc_enc->input.length > -RTE_BBDEV_LDPC_MAX_CB_SIZE >>3 ) { -rte_bbdev_log (ERR ,"CB size (%u) is too big, max: %d" , - ldpc_enc->input.length, -RTE_BBDEV_LDPC_MAX_CB_SIZE ); +if (ldpc_enc->input.length ==0 ) { +rte_bbdev_log (ERR ,"CB size (%u) is null" , + ldpc_enc->input.length);return -1 ; }if ((ldpc_enc->basegraph >2 ) || (ldpc_enc->basegraph ==0 )) {
@@ -2444,13 +2438,107 @@ validate_ldpc_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q) ldpc_enc->code_block_mode);return -1 ; } +if (ldpc_enc->z_c >384 ) { +rte_bbdev_log (ERR , +"Zc (%u) is out of range" , + ldpc_enc->z_c); +return -1 ; + }int K = (ldpc_enc->basegraph ==1 ?22 :10 ) * ldpc_enc->z_c; -if (ldpc_enc->n_filler >=K ) { +int N = (ldpc_enc->basegraph ==1 ?ACC100_N_ZC_1 :ACC100_N_ZC_2 ) + * ldpc_enc->z_c; +int q_m = ldpc_enc->q_m; +int crc24 =0 ; + +if (check_bit (op->ldpc_enc.op_flags, +RTE_BBDEV_LDPC_CRC_24A_ATTACH ) || +check_bit (op->ldpc_enc.op_flags, +RTE_BBDEV_LDPC_CRC_24B_ATTACH )) + crc24 =24 ; +if ((K - ldpc_enc->n_filler) %8 >0 ) {rte_bbdev_log (ERR , -"K and F are not compatible %u %u" , +"K - F not byte aligned %u" , +K - ldpc_enc->n_filler); +return -1 ; + } +if (ldpc_enc->n_filler > (K -2 * ldpc_enc->z_c)) { +rte_bbdev_log (ERR , +"K - F invalid %u %u" ,K , ldpc_enc->n_filler);return -1 ; } +if ((ldpc_enc->n_cb >N ) || (ldpc_enc->n_cb <=K )) { +rte_bbdev_log (ERR , +"Ncb (%u) is out of range K %d N %d" , + ldpc_enc->n_cb,K ,N ); +return -1 ; + } +if (!check_bit (op->ldpc_enc.op_flags, +RTE_BBDEV_LDPC_INTERLEAVER_BYPASS ) && + ((q_m ==0 ) || ((q_m >2 ) && ((q_m %2 ) ==1 )) + || (q_m >8 ))) { +rte_bbdev_log (ERR , +"Qm (%u) is out of range" , + ldpc_enc->q_m); +return -1 ; + } +if (ldpc_enc->code_block_mode ==RTE_BBDEV_CODE_BLOCK ) { +if (ldpc_enc->cb_params.e ==0 ) { +rte_bbdev_log (ERR , +"E is null" ); +return -1 ; + } +if (q_m >0 ) { +if (ldpc_enc->cb_params.e % q_m >0 ) { +rte_bbdev_log (ERR , +"E not multiple of qm %d" , q_m); +return -1 ; + } + } +if ((ldpc_enc->z_c <=11 ) && (ldpc_enc->cb_params.e >3456 )) { +rte_bbdev_log (ERR , +"E too large for small block" ); +return -1 ; + } +if (ldpc_enc->input.length > +RTE_BBDEV_LDPC_MAX_CB_SIZE >>3 ) { +rte_bbdev_log (ERR ,"CB size (%u) is too big, max: %d" , + ldpc_enc->input.length, +RTE_BBDEV_LDPC_MAX_CB_SIZE ); +return -1 ; + } +if (K < (int ) (ldpc_enc->input.length *8 + + ldpc_enc->n_filler) + crc24) { +rte_bbdev_log (ERR , +"K and F not matching input size %u %u %u" , +K , ldpc_enc->n_filler, + ldpc_enc->input.length); +return -1 ; + } + }else { +if ((ldpc_enc->tb_params.c ==0 ) || + (ldpc_enc->tb_params.ea ==0 ) || + (ldpc_enc->tb_params.eb ==0 )) { +rte_bbdev_log (ERR , +"TB parameter is null" ); +return -1 ; + } +if (q_m >0 ) { +if ((ldpc_enc->tb_params.ea % q_m >0 ) || + (ldpc_enc->tb_params.eb % q_m >0 )) { +rte_bbdev_log (ERR , +"E not multiple of qm %d" , + q_m); +return -1 ; + } + } +if ((ldpc_enc->z_c <=11 ) && (RTE_MAX (ldpc_enc->tb_params.ea, + ldpc_enc->tb_params.eb) >3456 )) { +rte_bbdev_log (ERR , +"E too large for small block" ); +return -1 ; + } + }return 0 ; }
@@ -2463,8 +2551,16 @@ validate_ldpc_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue *q)if (!validate_op_required (q))return 0 ; -if (op->mempool ==NULL ) { -rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +if (ldpc_dec->input.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid input pointer" ); +return -1 ; + } +if (ldpc_dec->hard_output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid output pointer" ); +return -1 ; + } +if (ldpc_dec->input.length ==0 ) { +rte_bbdev_log (ERR ,"input is null" );return -1 ; }if ((ldpc_dec->basegraph >2 ) || (ldpc_dec->basegraph ==0 )) {
@@ -2491,13 +2587,186 @@ validate_ldpc_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue *q) ldpc_dec->code_block_mode);return -1 ; } +/* Check Zc is valid value */ +if ((ldpc_dec->z_c >384 ) || (ldpc_dec->z_c <2 )) { +rte_bbdev_log (ERR , +"Zc (%u) is out of range" , + ldpc_dec->z_c); +return -1 ; + } +if (ldpc_dec->z_c >256 ) { +if ((ldpc_dec->z_c %32 ) !=0 ) { +rte_bbdev_log (ERR ,"Invalid Zc %d" , ldpc_dec->z_c); +return -1 ; + } + }else if (ldpc_dec->z_c >128 ) { +if ((ldpc_dec->z_c %16 ) !=0 ) { +rte_bbdev_log (ERR ,"Invalid Zc %d" , ldpc_dec->z_c); +return -1 ; + } + }else if (ldpc_dec->z_c >64 ) { +if ((ldpc_dec->z_c %8 ) !=0 ) { +rte_bbdev_log (ERR ,"Invalid Zc %d" , ldpc_dec->z_c); +return -1 ; + } + }else if (ldpc_dec->z_c >32 ) { +if ((ldpc_dec->z_c %4 ) !=0 ) { +rte_bbdev_log (ERR ,"Invalid Zc %d" , ldpc_dec->z_c); +return -1 ; + } + }else if (ldpc_dec->z_c >16 ) { +if ((ldpc_dec->z_c %2 ) !=0 ) { +rte_bbdev_log (ERR ,"Invalid Zc %d" , ldpc_dec->z_c); +return -1 ; + } + }int K = (ldpc_dec->basegraph ==1 ?22 :10 ) * ldpc_dec->z_c; -if (ldpc_dec->n_filler >=K ) { +int N = (ldpc_dec->basegraph ==1 ?ACC100_N_ZC_1 :ACC100_N_ZC_2 ) + * ldpc_dec->z_c; +int q_m = ldpc_dec->q_m; +if (ldpc_dec->n_filler >=K -2 * ldpc_dec->z_c) {rte_bbdev_log (ERR ,"K and F are not compatible %u %u" ,K , ldpc_dec->n_filler);return -1 ; } +if ((ldpc_dec->n_cb >N ) || (ldpc_dec->n_cb <=K )) { +rte_bbdev_log (ERR , +"Ncb (%u) is out of range K %d N %d" , + ldpc_dec->n_cb,K ,N ); +return -1 ; + } + +if (((q_m ==0 ) || ((q_m >2 ) && ((q_m %2 ) ==1 )) + || (q_m >8 ))) { +rte_bbdev_log (ERR , +"Qm (%u) is out of range" , + ldpc_dec->q_m); +return -1 ; + } +if (ldpc_dec->code_block_mode ==RTE_BBDEV_CODE_BLOCK ) { +if (ldpc_dec->cb_params.e ==0 ) { +rte_bbdev_log (ERR , +"E is null" ); +return -1 ; + } +if (ldpc_dec->cb_params.e % q_m >0 ) { +rte_bbdev_log (ERR , +"E not multiple of qm %d" , q_m); +return -1 ; + } +if (ldpc_dec->cb_params.e >512 * ldpc_dec->z_c) { +rte_bbdev_log (ERR , +"E too high" ); +return -1 ; + } + }else { +if ((ldpc_dec->tb_params.c ==0 ) || + (ldpc_dec->tb_params.ea ==0 ) || + (ldpc_dec->tb_params.eb ==0 )) { +rte_bbdev_log (ERR , +"TB parameter is null" ); +return -1 ; + } +if ((ldpc_dec->tb_params.ea % q_m >0 ) || + (ldpc_dec->tb_params.eb % q_m >0 )) { +rte_bbdev_log (ERR , +"E not multiple of qm %d" , q_m); +return -1 ; + } +if ((ldpc_dec->tb_params.ea >512 * ldpc_dec->z_c) || + (ldpc_dec->tb_params.eb >512 * ldpc_dec->z_c)) { +rte_bbdev_log (ERR , +"E too high" ); +return -1 ; + } + } +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_DECODE_BYPASS )) { +rte_bbdev_log (ERR ,"Avoid LDPC Decode bypass" ); +return -1 ; + } + +/* Avoid HARQ compression for small block size */ +if ((check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION )) + && (K <2048 )) { + op->ldpc_dec.op_flags ^=RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION ; + } +uint32_t min_harq_input =check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION ) ?256 :64 ; +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ) && + ldpc_dec->harq_combined_input.length < + min_harq_input) { +rte_bbdev_log (ERR ,"HARQ input size is too small %d < %d" , + ldpc_dec->harq_combined_input.length, + min_harq_input); +return -1 ; + } + +/* Enforce in-range HARQ input size */ +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE )) { +uint32_t max_harq_input =RTE_ALIGN_CEIL (ldpc_dec->n_cb - + ldpc_dec->n_filler,64 ); +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION )) + max_harq_input = max_harq_input *3 /4 ; +if (ldpc_dec->harq_combined_input.length > max_harq_input) { +rte_bbdev_log (ERR , +"HARQ input size out of range %d > %d, Ncb %d F %d K %d N %d" , + ldpc_dec->harq_combined_input.length, + max_harq_input, ldpc_dec->n_cb, + ldpc_dec->n_filler,K ,N ); +/* Fallback to flush HARQ combine */ + ldpc_dec->harq_combined_input.length =0 ; +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE )) { + op->ldpc_dec.op_flags ^= +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ; + } + } + } + +#ifdef ACC100_EXT_MEM +/* Enforce in-range HARQ offset */ +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE )) { +if ((op->ldpc_dec.harq_combined_input.offset >>10 ) + >= q->d->ddr_size) { +rte_bbdev_log (ERR , +"HARQin offset out of range %d > %d" , + op->ldpc_dec.harq_combined_input.offset, + q->d->ddr_size); +return -1 ; + } +if ((op->ldpc_dec.harq_combined_input.offset &0x3FF ) >0 ) { +rte_bbdev_log (ERR , +"HARQin offset not aligned on 1kB %d" , + op->ldpc_dec.harq_combined_input.offset); +return -1 ; + } + } +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE )) { +if ((op->ldpc_dec.harq_combined_output.offset >>10 ) + >= q->d->ddr_size) { +rte_bbdev_log (ERR , +"HARQout offset out of range %d > %d" , + op->ldpc_dec.harq_combined_output.offset, + q->d->ddr_size); +return -1 ; + } +if ((op->ldpc_dec.harq_combined_output.offset &0x3FF ) >0 ) { +rte_bbdev_log (ERR , +"HARQout offset not aligned on 1kB %d" , + op->ldpc_dec.harq_combined_output.offset); +return -1 ; + } + } +#endif +return 0 ; }#endif
Signature · 1 line
2.37.1
PATCH 12/33 baseband/acc100: add workaround for deRM corner cases
In reply to Hernan VargasAdd function to asses if de-ratematch pre-processing should be run in SW for corner cases.
--- drivers/baseband/acc100/acc100_pmd.h | 13 +++ drivers/baseband/acc100/rte_acc100_pmd.c | 103 ++++++++++++++++++++++- 2 files changed, 114 insertions(+), 2 deletions(-)
drivers/baseband/acc100/acc100_pmd.h +13 -0
@@ -140,6 +140,8 @@/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC100_N_ZC_1 66/* N = 66 Zc for BG 1 */ #define ACC100_N_ZC_2 50/* N = 50 Zc for BG 2 */ +#define ACC100_K_ZC_1 22/* K = 22 Zc for BG 1 */ +#define ACC100_K_ZC_2 10/* K = 10 Zc for BG 2 */ #define ACC100_K0_1_1 17/* K0 fraction numerator for rv 1 and BG 1 */ #define ACC100_K0_1_2 13/* K0 fraction numerator for rv 1 and BG 2 */ #define ACC100_K0_2_1 33/* K0 fraction numerator for rv 2 and BG 1 */
@@ -177,6 +179,16 @@#define ACC100_MS_IN_US (1000)#define ACC100_DDR_TRAINING_MAX (5000) +/* Code rate limitation when padding is required */ +#define ACC100_LIM_03 2/* 0.03 */ +#define ACC100_LIM_09 6/* 0.09 */ +#define ACC100_LIM_14 9/* 0.14 */ +#define ACC100_LIM_21 14/* 0.21 */ +#define ACC100_LIM_31 20/* 0.31 */ +#define ACC100_MAX_E (128 * 1024 - 2) + + +/* ACC100 DMA Descriptor triplet */ struct acc100_dma_triplet {uint64_t address;
@@ -572,6 +584,7 @@ struct __rte_cache_aligned acc100_queue {uint8_t *lb_out;rte_iova_t lb_in_addr_iova;rte_iova_t lb_out_addr_iova; +int8_t *derm_buffer;/* interim buffer for de-rm in SDK */ struct acc100_device *d; };
drivers/baseband/acc100/rte_acc100_pmd.c +101 -2
148 lines not on this page · raw message
Signature · 1 line
2.37.1
PATCH 13/33 baseband/acc100: enable vf2pf doorbell register
In reply to Hernan VargasSetup vf2pf doorbell register for ACC101
--- drivers/baseband/acc100/acc100_vf_enum.h | 6 ++++++ drivers/baseband/acc100/rte_acc100_pmd.c | 8 ++++++++ 2 files changed, 14 insertions(+)
drivers/baseband/acc100/acc100_vf_enum.h +6 -0
@@ -70,4 +70,10 @@ enum { ACC100_VF_INT_QMGR_AQ_OVERTHRESHOLD = 9, }; +/* TIP PF2VF Comms */ +enum { +ACC100_VF2PF_STATUS_REQUEST =0 , +ACC100_VF2PF_USING_VF =1 , +}; +#endif /* ACC100_VF_ENUM_H */
drivers/baseband/acc100/rte_acc100_pmd.c +8 -0
@@ -292,6 +292,13 @@ fetch_acc100_config(struct rte_bbdev *dev) acc100_conf->q_dl_5g.aq_depth_log2); } +static inline void +acc100_vf2pf (struct acc100_device *d,unsigned int payload) +{ +if (d->device_variant ==ACC101_VARIANT ) +acc100_reg_write (d, HWVfHiVfToPfDbellVf, payload); +} +static void free_base_addresses (void **base_addrs,int size) {
@@ -712,6 +719,7 @@ acc100_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)/* Mark as configured properly */ d->configured = true; +acc100_vf2pf (d,ACC100_VF2PF_USING_VF );rte_bbdev_log_debug ( "ACC100 (%s) configured sw_rings = %p, sw_rings_iova = %#"
Signature · 1 line
2.37.1
PATCH 14/33 baseband/acc100: add ring companion address
In reply to Hernan VargasStore the virtual address of companion ring as part of queue information. Use this address to calculate the op address.
--- drivers/baseband/acc100/acc100_pmd.h | 12 ++ drivers/baseband/acc100/rte_acc100_pmd.c | 143 ++++++++++++++--------- 2 files changed, 100 insertions(+), 55 deletions(-)
drivers/baseband/acc100/acc100_pmd.h +12 -0
@@ -126,6 +126,7 @@#define ACC100_5GUL_SIZE_0 16#define ACC100_5GUL_SIZE_1 40#define ACC100_5GUL_OFFSET_0 36 +#define ACC100_COMPANION_PTRS 8#define ACC100_FCW_VER 2#define ACC100_MUX_5GDL_DESC 6
@@ -375,6 +376,15 @@ struct __rte_packed acc100_fcw_le {uint32_t res8; }; +struct __rte_packed acc100_pad_ptr { +void *op_addr; +uint64_t pad1;/* pad to 64 bits */ +}; + +struct __rte_packed acc100_ptrs { +struct acc100_pad_ptr ptr[ACC100_COMPANION_PTRS ]; +}; +/* ACC100 DMA Request Descriptor */ struct __rte_packed acc100_dma_req_desc {union {
@@ -568,6 +578,8 @@ struct __rte_cache_aligned acc100_queue {uint32_t sw_ring_depth;/* mask used to wrap enqueued descriptors on the sw ring */ uint32_t sw_ring_wrap_mask; +/* Virtual address of companion ring */ +struct acc100_ptrs *companion_ring_addr;/* MMIO register used to enqueue descriptors */ void *mmio_reg_enqueue;uint8_t vf_id;/* VF ID (max = 63) */
drivers/baseband/acc100/rte_acc100_pmd.c +88 -55
279 lines not on this page · raw message
Signature · 1 line
2.37.1
PATCH 15/33 baseband/acc100: configure PMON control registers
In reply to Hernan VargasEnable performance monitor control registers.
--- drivers/baseband/acc100/acc100_pmd.h | 6 ++++++ drivers/baseband/acc100/rte_acc100_pmd.c | 5 +++++ 2 files changed, 11 insertions(+)
drivers/baseband/acc100/acc100_pmd.h +6 -0
@@ -508,6 +508,8 @@ struct acc100_registry_addr {unsigned int depth_log1_offset;unsigned int qman_group_func;unsigned int ddr_range; +unsigned int pmon_ctrl_a; +unsigned int pmon_ctrl_b; };/* Structure holding registry addresses for PF */
@@ -537,6 +539,8 @@ static const struct acc100_registry_addr pf_reg_addr = { .depth_log1_offset = HWPfQmgrGrpDepthLog21Vf, .qman_group_func = HWPfQmgrGrpFunction0, .ddr_range = HWPfDmaVfDdrBaseRw, + .pmon_ctrl_a = HWPfPermonACntrlRegVf, + .pmon_ctrl_b = HWPfPermonBCntrlRegVf, };/* Structure holding registry addresses for VF */
@@ -566,6 +570,8 @@ static const struct acc100_registry_addr vf_reg_addr = { .depth_log1_offset = HWVfQmgrGrpDepthLog21Vf, .qman_group_func = HWVfQmgrGrpFunction0Vf, .ddr_range = HWVfDmaDdrBaseRangeRoVf, + .pmon_ctrl_a = HWVfPmACntrlRegVf, + .pmon_ctrl_b = HWVfPmBCntrlRegVf, };/* Structure associated with each queue. */
drivers/baseband/acc100/rte_acc100_pmd.c +5 -0
@@ -653,6 +653,11 @@ acc100_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)/* Read the populated cfg from ACC100 registers */ fetch_acc100_config (dev); +for (value =0 ; value <=2 ; value++) { +acc100_reg_write (d, reg_addr->pmon_ctrl_a, value); +acc100_reg_write (d, reg_addr->pmon_ctrl_b, value); + } +/* Release AXI from PF */ if (d->pf_device)acc100_reg_write (d, HWPfDmaAxiControl,1 );
Signature · 1 line
2.37.1
PATCH 16/33 baseband/acc100: configurable queue depth
In reply to Hernan VargasMake queue depth configurable based on dec/enc mode.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +9 -3
@@ -970,9 +970,15 @@ acc100_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, q->qgrp_id = (q_idx >>ACC100_GRP_ID_SHIFT ) &0xF ; q->vf_id = (q_idx >>ACC100_VF_ID_SHIFT ) &0x3F ; q->aq_id = q_idx &0xF ; - q->aq_depth = (conf->op_type ==RTE_BBDEV_OP_TURBO_DEC ) ? - (1 << d->acc100_conf.q_ul_4g.aq_depth_log2) : - (1 << d->acc100_conf.q_dl_4g.aq_depth_log2); + q->aq_depth =0 ; +if (conf->op_type ==RTE_BBDEV_OP_TURBO_DEC ) + q->aq_depth = (1 << d->acc100_conf.q_ul_4g.aq_depth_log2); +else if (conf->op_type ==RTE_BBDEV_OP_TURBO_ENC ) + q->aq_depth = (1 << d->acc100_conf.q_dl_4g.aq_depth_log2); +else if (conf->op_type ==RTE_BBDEV_OP_LDPC_DEC ) + q->aq_depth = (1 << d->acc100_conf.q_ul_5g.aq_depth_log2); +else if (conf->op_type ==RTE_BBDEV_OP_LDPC_ENC ) + q->aq_depth = (1 << d->acc100_conf.q_dl_5g.aq_depth_log2); q->mmio_reg_enqueue = RTE_PTR_ADD(d->mmio_base, queue_offset(d->pf_device,
Signature · 1 line
2.37.1
PATCH 17/33 baseband/acc100: add queue stop operation
In reply to Hernan VargasImplement queue stop operation.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +58 -0
@@ -993,6 +993,63 @@ acc100_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,return 0 ; } +static inline void +acc100_print_op (struct rte_bbdev_dec_op *op,enum rte_bbdev_op_type op_type, +uint16_t index) +{ +if (op ==NULL ) +return ; +if (op_type ==RTE_BBDEV_OP_LDPC_DEC ) +rte_bbdev_log (INFO , +" Op 5GUL %d %d %d %d %d %d %d %d %d %d %d %d" , + index, + op->ldpc_dec.basegraph, op->ldpc_dec.z_c, + op->ldpc_dec.n_cb, op->ldpc_dec.q_m, + op->ldpc_dec.n_filler, op->ldpc_dec.cb_params.e, + op->ldpc_dec.op_flags, op->ldpc_dec.rv_index, + op->ldpc_dec.iter_max, op->ldpc_dec.iter_count, + op->ldpc_dec.harq_combined_input.length + ); +else if (op_type ==RTE_BBDEV_OP_LDPC_ENC ) { +struct rte_bbdev_enc_op *op_dl = (struct rte_bbdev_enc_op *) op; +rte_bbdev_log (INFO , +" Op 5GDL %d %d %d %d %d %d %d %d %d" , + index, + op_dl->ldpc_enc.basegraph, op_dl->ldpc_enc.z_c, + op_dl->ldpc_enc.n_cb, op_dl->ldpc_enc.q_m, + op_dl->ldpc_enc.n_filler, op_dl->ldpc_enc.cb_params.e, + op_dl->ldpc_enc.op_flags, op_dl->ldpc_enc.rv_index + ); + } +} + +static int +acc100_queue_stop (struct rte_bbdev *dev,uint16_t queue_id) +{ +struct acc100_queue *q; +struct rte_bbdev_dec_op *op; +uint16_t i; + q = dev->data->queues[queue_id].queue_private; +rte_bbdev_log (INFO ,"Queue Stop %d H/T/D %d %d %x OpType %d" , + queue_id, q->sw_ring_head, q->sw_ring_tail, + q->sw_ring_depth, q->op_type); +for (i =0 ; i < q->sw_ring_depth; ++i) { + op = (q->ring_addr + i)->req.op_addr; +acc100_print_op (op, q->op_type, i); + } +/* ignore all operations in flight and clear counters */ + q->sw_ring_tail = q->sw_ring_head; + q->aq_enqueued =0 ; + q->aq_dequeued =0 ; + dev->data->queues[queue_id].queue_stats.enqueued_count =0 ; + dev->data->queues[queue_id].queue_stats.dequeued_count =0 ; + dev->data->queues[queue_id].queue_stats.enqueue_err_count =0 ; + dev->data->queues[queue_id].queue_stats.dequeue_err_count =0 ; + dev->data->queues[queue_id].queue_stats.enqueue_warn_count =0 ; + dev->data->queues[queue_id].queue_stats.dequeue_warn_count =0 ; +return 0 ; +} +/* Release ACC100 queue */ static int acc100_queue_release (struct rte_bbdev *dev,uint16_t q_id)
@@ -1187,6 +1244,7 @@ static const struct rte_bbdev_ops acc100_bbdev_ops = { .info_get = acc100_dev_info_get, .queue_setup = acc100_queue_setup, .queue_release = acc100_queue_release, + .queue_stop = acc100_queue_stop, .queue_intr_enable = acc100_queue_intr_enable, .queue_intr_disable = acc100_queue_intr_disable };
Signature · 1 line
2.37.1
PATCH 18/33 basbeband/acc100: check turbo dec/enc input
In reply to Hernan VargasAdd NULL check for the turbo decoder and encoder input length.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +18 -5
@@ -2401,6 +2401,11 @@ validate_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q)return -1 ; } +if (turbo_enc->input.length ==0 ) { +rte_bbdev_log (ERR ,"input length null" ); +return -1 ; + } +if (turbo_enc->code_block_mode ==RTE_BBDEV_TRANSPORT_BLOCK ) { tb = &turbo_enc->tb_params; if ((tb->k_neg < RTE_BBDEV_TURBO_MIN_CB_SIZE
@@ -2420,11 +2425,12 @@ validate_enc_op(struct rte_bbdev_enc_op *op, struct acc100_queue *q) RTE_BBDEV_TURBO_MAX_CB_SIZE);return -1 ; } -if (tb->c_neg > (RTE_BBDEV_TURBO_MAX_CODE_BLOCKS -1 )) +if (tb->c_neg >0 ) {rte_bbdev_log (ERR , -"c_neg (%u) is out of range 0 <= value <= %u" , - tb->c_neg, -RTE_BBDEV_TURBO_MAX_CODE_BLOCKS -1 ); +"c_neg (%u) expected to be null" , + tb->c_neg); +return -1 ; + }if (tb->c <1 || tb->c >RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ) { rte_bbdev_log(ERR, "c (%u) is out of range 1 <= value <= %u",
@@ -3323,6 +3329,11 @@ validate_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue *q)return -1 ; } +if (turbo_dec->input.length ==0 ) { +rte_bbdev_log (ERR ,"input length null" ); +return -1 ; + } +if (turbo_dec->code_block_mode ==RTE_BBDEV_TRANSPORT_BLOCK ) { tb = &turbo_dec->tb_params; if ((tb->k_neg < RTE_BBDEV_TURBO_MIN_CB_SIZE
@@ -3343,11 +3354,13 @@ validate_dec_op(struct rte_bbdev_dec_op *op, struct acc100_queue *q) RTE_BBDEV_TURBO_MAX_CB_SIZE);return -1 ; } -if (tb->c_neg > (RTE_BBDEV_TURBO_MAX_CODE_BLOCKS -1 )) +if (tb->c_neg > (RTE_BBDEV_TURBO_MAX_CODE_BLOCKS -1 )) {rte_bbdev_log (ERR ,"c_neg (%u) is out of range 0 <= value <= %u" , tb->c_neg,RTE_BBDEV_TURBO_MAX_CODE_BLOCKS -1 ); +return -1 ; + }if (tb->c <1 || tb->c >RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ) { rte_bbdev_log(ERR, "c (%u) is out of range 1 <= value <= %u",
Signature · 1 line
2.37.1
PATCH 19/33 baseband/acc100: check for unlikely operation vals
In reply to Hernan VargasAdd unlikely checks for NULL operation values.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +10 -0
@@ -3151,6 +3151,10 @@ enqueue_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, r = op->turbo_enc.tb_params.r;while (mbuf_total_left >0 && r < c) { +if (unlikely (input ==0 )) { +rte_bbdev_log (ERR ,"Not enough input segment" ); +return -EINVAL ; + } seg_total_left =rte_pktmbuf_data_len (input) - in_offset;/* Set up DMA descriptor */ desc = q->ring_addr + ((q->sw_ring_head + total_enqueued_cbs)
@@ -4494,6 +4498,8 @@ acc100_enqueue_ldpc_dec_tb(struct rte_bbdev_queue_data *q_data, } enqueued_cbs += ret; } +if (unlikely (enqueued_cbs ==0 )) +return 0 ;/* Nothing to enqueue */ acc100_dma_enqueue (q, enqueued_cbs, &q_data->queue_stats);
@@ -5059,6 +5065,8 @@ acc100_dequeue_dec(struct rte_bbdev_queue_data *q_data,for (i =0 ; i < dequeue_num; ++i) { op = (q->ring_addr + ((q->sw_ring_tail + dequeued_cbs) & q->sw_ring_wrap_mask))->req.op_addr; +if (unlikely (op ==NULL )) +break ;if (op->turbo_dec.code_block_mode ==RTE_BBDEV_TRANSPORT_BLOCK ) ret =dequeue_dec_one_op_tb (q, &ops[i], dequeued_cbs, &aq_dequeued);
@@ -5104,6 +5112,8 @@ acc100_dequeue_ldpc_dec(struct rte_bbdev_queue_data *q_data,for (i =0 ; i < dequeue_num; ++i) { op = (q->ring_addr + ((q->sw_ring_tail + dequeued_cbs) & q->sw_ring_wrap_mask))->req.op_addr; +if (unlikely (op ==NULL )) +break ;if (op->ldpc_dec.code_block_mode ==RTE_BBDEV_TRANSPORT_BLOCK ) ret =dequeue_dec_one_op_tb (q, &ops[i], dequeued_cbs, &aq_dequeued);
Signature · 1 line
2.37.1
PATCH 20/33 baseband/acc100: enforce additional check on FCW
In reply to Hernan VargasEnforce additional check on Frame Control Word validity and add stronger alignment for decompression mode.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 48 ++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +45 -3
@@ -1456,6 +1456,14 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, op->ldpc_dec.tb_params.ea : op->ldpc_dec.tb_params.eb; +if (unlikely (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ) && + (op->ldpc_dec.harq_combined_input.length ==0 ))) { +rte_bbdev_log (WARNING ,"Null HARQ input size provided" ); +/* Disable HARQ input in that case to carry forward */ + op->ldpc_dec.op_flags ^=RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ; + } + fcw->hcin_en =check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ); fcw->hcout_en = check_bit(op->ldpc_dec.op_flags,
@@ -1511,6 +1519,20 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, fcw->hcin_offset =0 ; fcw->hcin_size1 =0 ; } +/* Enforce additional check on FCW validity */ +uint32_t max_hc_in =RTE_ALIGN_CEIL (fcw->ncb - fcw->nfiller,64 ); +if ((fcw->hcin_size0 > max_hc_in) || + (fcw->hcin_size1 + fcw->hcin_offset > max_hc_in) || + ((fcw->hcin_size0 > fcw->hcin_offset) && + (fcw->hcin_size1 !=0 ))) { +rte_bbdev_log (ERR ," Invalid FCW : HCIn %d %d %d, Ncb %d F %d" , + fcw->hcin_size0, fcw->hcin_size1, + fcw->hcin_offset, + fcw->ncb, fcw->nfiller); +/* Disable HARQ input in that case to carry forward */ + op->ldpc_dec.op_flags ^=RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ; + fcw->hcin_en =0 ; + } fcw->itmax = op->ldpc_dec.iter_max; fcw->itstop = check_bit(op->ldpc_dec.op_flags,
@@ -1539,10 +1561,19 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, k0_p = (fcw->k0 > parity_offset) ? fcw->k0 - op->ldpc_dec.n_filler : fcw->k0; ncb_p = fcw->ncb - op->ldpc_dec.n_filler; - l = k0_p + fcw->rm_e; + l =RTE_MIN (k0_p + fcw->rm_e,INT16_MAX ); harq_out_length = (uint16_t ) fcw->hcin_size0; - harq_out_length =RTE_MIN (RTE_MAX (harq_out_length, l), ncb_p); - harq_out_length = (harq_out_length +0x3F ) &0xFFC0 ; + harq_out_length =RTE_MAX (harq_out_length, l); +/* Stronger alignment when in compression mode */ +if (fcw->hcout_comp_mode >0 ) + harq_out_length =RTE_ALIGN_CEIL (harq_out_length,256 ); +/* Cannot exceed the pruned Ncb circular buffer */ + harq_out_length =RTE_MIN (harq_out_length, ncb_p); +/* Alignment on next 64B */ + harq_out_length =RTE_ALIGN_CEIL (harq_out_length,64 ); +/* Stronger alignment when in compression mode enforced again */ +if (fcw->hcout_comp_mode >0 ) + harq_out_length =RTE_ALIGN_FLOOR (harq_out_length,256 );if ((k0_p > fcw->hcin_size0 +ACC100_HARQ_OFFSET_THRESHOLD ) && harq_prun) { fcw->hcout_size0 = (uint16_t ) fcw->hcin_size0;
@@ -1553,6 +1584,13 @@ acc100_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw, fcw->hcout_size1 =0 ; fcw->hcout_offset =0 ; } +if (fcw->hcout_size0 ==0 ) { +rte_bbdev_log (ERR ," Invalid FCW : HCout %d" , + fcw->hcout_size0); + op->ldpc_dec.op_flags ^=RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE ; + fcw->hcout_en =0 ; + } + harq_layout[harq_index].offset = fcw->hcout_offset; harq_layout[harq_index].size0 = fcw->hcout_size0; }else {
@@ -1594,6 +1632,10 @@ acc101_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc100_fcw_ld *fcw,/* Disable HARQ input in that case to carry forward */ op->ldpc_dec.op_flags ^=RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE ; } +if (unlikely (fcw->rm_e ==0 )) { +rte_bbdev_log (WARNING ,"Null E input provided" ); + fcw->rm_e =2 ; + } fcw->hcin_en =check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE );
Signature · 1 line
2.37.1
PATCH 21/33 baseband/acc100: update uplink CB input length
In reply to Hernan VargasUse the FCW E parameter for rate matching as the code block input length.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +1 -1
@@ -2174,7 +2174,7 @@ acc100_dma_desc_ld_fill(struct rte_bbdev_dec_op *op, crc24_overlap =24 ;/* Compute some LDPC BG lengths */ - input_length = dec->cb_params.e; + input_length = fcw->rm_e;if (check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_LLR_COMPRESSION )) input_length = (input_length *3 +3 ) /4 ;
Signature · 1 line
2.37.1
PATCH 22/33 baseband/acc100: rename ldpc encode function arg
In reply to Hernan VargasRename total_enqueued_cbs to total_enqueued_descs in the enqueue_ldpc_enc_n_op_cb function. No functional impact.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +6 -4
@@ -2978,10 +2978,13 @@ enqueue_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,return 1 ; } -/* Enqueue one encode operations for ACC100 device in CB mode */ + +/* Enqueue one encode operations for ACC100 device in CB mode +* multiplexed on the same descriptor +*/ static inline int enqueue_ldpc_enc_n_op_cb (struct acc100_queue *q,struct rte_bbdev_enc_op **ops, -uint16_t total_enqueued_cbs,int16_t num) +uint16_t total_enqueued_descs,int16_t num) {union acc100_dma_desc *desc =NULL ;uint32_t out_length;
@@ -2991,14 +2994,13 @@ enqueue_ldpc_enc_n_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op **ops,struct rte_bbdev_op_ldpc_enc *enc = &ops[0 ]->ldpc_enc;#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE -/* Validate op structure */ if (validate_ldpc_enc_op (ops[0 ], q) ==-1 ) {rte_bbdev_log (ERR ,"LDPC encoder validation rejected" );return -EINVAL ; }#endif -uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_descs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;acc100_fcw_le_fill (ops[0 ], &desc->req.fcw_le, num,0 );
Signature · 1 line
2.37.1
PATCH 23/33 baseband/acc100: update log messages
In reply to Hernan VargasAdd extra values for some log messages. No functional impact.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +9 -5
@@ -1173,6 +1173,7 @@ acc100_dev_info_get(struct rte_bbdev *dev,/* Read and save the populated config from ACC100 registers */ fetch_acc100_config (dev); +/* Check the status of device */ dev_info->device_status =RTE_BBDEV_DEV_NOT_SUPPORTED ;/* Expose number of queues */
@@ -3255,7 +3256,7 @@ enqueue_ldpc_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op *op, {#ifndef RTE_LIBRTE_BBDEV_SKIP_VALIDATE if (validate_ldpc_enc_op (op, q) ==-1 ) { -rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +rte_bbdev_log (ERR ,"LDPC encoder validation rejected" );return -EINVAL ; }#endif
@@ -4178,8 +4179,9 @@ acc100_enqueue_status(struct rte_bbdev_queue_data *q_data, { q_data->enqueue_status = status; q_data->queue_stats.enqueue_status_count[status]++; -rte_bbdev_log (WARNING ,"Enqueue Status: %d %#" PRIx64"" , - status, + +rte_bbdev_log (WARNING ,"Enqueue Status: %s %#" PRIx64"" , +rte_bbdev_enqueue_status_str (status), q_data->queue_stats.enqueue_status_count[status]); }
@@ -4879,6 +4881,7 @@ dequeue_ldpc_dec_one_op_cb(struct rte_bbdev_queue_data *q_data,return -1 ; rsp.val = atom_desc.rsp.val; +rte_bbdev_log_debug ("Resp. desc %p: %x\n" , desc, rsp.val);/* Dequeue */ op = desc->req.op_addr;
@@ -4961,8 +4964,9 @@ dequeue_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op **ref_op, atom_desc.atom_hdr =__atomic_load_n ((uint64_t *)desc, __ATOMIC_RELAXED); rsp.val = atom_desc.rsp.val; -rte_bbdev_log_debug ("Resp. desc %p: %x" , desc, - rsp.val); +rte_bbdev_log_debug ("Resp. desc %p: %x r %d c %d\n" , + desc, rsp.val, + cb_idx, cbs_in_tb); op->status |= ((rsp.input_err) ? (1 <<RTE_BBDEV_DATA_ERROR ) :0 );
Signature · 1 line
2.37.1
PATCH 24/33 baseband/acc100: allocate ring/queue mem when NULL
In reply to Hernan VargasAllocate info ring, tail pointers and HARQ layout memory for a device only if it hasn't already been allocated.
--- drivers/baseband/acc100/acc100_pmd.h | 9 ++++++--- drivers/baseband/acc100/rte_acc100_pmd.c | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-)
drivers/baseband/acc100/acc100_pmd.h +6 -3
@@ -61,8 +61,10 @@#define ACC100_SIZE_64MBYTE (64*1024*1024)/* Number of elements in an Info Ring */ #define ACC100_INFO_RING_NUM_ENTRIES 1024 -/* Number of elements in HARQ layout memory */ -#define ACC100_HARQ_LAYOUT (64*1024*1024) +/* Number of elements in HARQ layout memory +* 128M x 32kB = 4GB addressable memory +*/ +#define ACC100_HARQ_LAYOUT (128*1024*1024)/* Assume offset for HARQ in memory */ #define ACC100_HARQ_OFFSET (32*1024)#define ACC100_HARQ_OFFSET_SHIFT 15
@@ -215,7 +217,8 @@ union acc100_dma_rsp_desc { timestampEn:1, iterCountFrac:8, iter_cnt:8, - rsrvd3:6, + harq_failure:1, + rsrvd3:5, sdone:1, fdone:1;uint32_t add_info_0;
drivers/baseband/acc100/rte_acc100_pmd.c +6 -3
@@ -582,7 +582,8 @@ allocate_info_ring(struct rte_bbdev *dev)else reg_addr = &vf_reg_addr;/* Allocate InfoRing */ - d->info_ring =rte_zmalloc_socket ("Info Ring" , +if (d->info_ring ==NULL ) + d->info_ring =rte_zmalloc_socket ("Info Ring" ,ACC100_INFO_RING_NUM_ENTRIES *sizeof (*d->info_ring),RTE_CACHE_LINE_SIZE , dev->data->socket_id);
@@ -679,7 +680,8 @@ acc100_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)acc100_reg_write (d, reg_addr->ring_size, value);/* Configure tail pointer for use when SDONE enabled */ - d->tail_ptrs =rte_zmalloc_socket ( +if (d->tail_ptrs ==NULL ) + d->tail_ptrs =rte_zmalloc_socket ( dev->device->driver->name,ACC100_NUM_QGRPS *ACC100_NUM_AQS *sizeof (uint32_t ),RTE_CACHE_LINE_SIZE , socket_id);
@@ -711,7 +713,8 @@ acc100_setup_queues(struct rte_bbdev *dev, uint16_t num_queues, int socket_id)/* Continue */ } - d->harq_layout =rte_zmalloc_socket ("HARQ Layout" , +if (d->harq_layout ==NULL ) + d->harq_layout =rte_zmalloc_socket ("HARQ Layout" ,ACC100_HARQ_LAYOUT *sizeof (*d->harq_layout),RTE_CACHE_LINE_SIZE , dev->data->socket_id);if (d->harq_layout ==NULL ) {
Signature · 1 line
2.37.1
PATCH 25/33 baseband/acc100: store FCW from first CB descriptor
In reply to Hernan VargasStore the descriptor from the first code block from a transport block. Copy the LDPC FCW from the first descriptor into the rest of the CBs in that TB.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +4 -0
@@ -3883,6 +3883,7 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, uint16_t total_enqueued_cbs, uint8_t cbs_in_tb) {union acc100_dma_desc *desc =NULL ; +union acc100_dma_desc *desc_first =NULL ;int ret;uint8_t r, c; uint32_t in_offset, h_out_offset,
@@ -3901,6 +3902,7 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx; + desc_first = desc;uint64_t fcw_offset = (desc_idx <<8 ) +ACC100_DESC_FCW_OFFSET ;union acc100_harq_layout_data *harq_layout = q->d->harq_layout; q->d->fcw_ld_fill (op, &desc->req.fcw_ld, harq_layout);
@@ -3926,6 +3928,8 @@ enqueue_ldpc_dec_one_op_tb(struct acc100_queue *q, struct rte_bbdev_dec_op *op, & q->sw_ring_wrap_mask); desc->req.data_ptrs[0 ].address = q->ring_addr_iova + fcw_offset; desc->req.data_ptrs[0 ].blen =ACC100_FCW_LD_BLEN ; +rte_memcpy (&desc->req.fcw_ld, &desc_first->req.fcw_ld, +ACC100_FCW_LD_BLEN ); ret = acc100_dma_desc_ld_fill(op, &desc->req, &input, h_output, &in_offset, &h_out_offset, &h_out_length,
Signature · 1 line
2.37.1
PATCH 26/33 baseband/acc100: remove input error check from enc
In reply to Hernan VargasInput data error check is not needed in encoder functions.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +0 -5
@@ -4712,9 +4712,6 @@ dequeue_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op **ref_op,/* Clearing status, it will be set based on response */ op->status =0 ; - - op->status |= ((rsp.input_err) - ? (1 <<RTE_BBDEV_DATA_ERROR ) :0 ); op->status |= ((rsp.dma_err) ? (1 <<RTE_BBDEV_DRV_ERROR ) :0 ); op->status |= ((rsp.fcw_err) ? (1 <<RTE_BBDEV_DRV_ERROR ) :0 );
@@ -4792,8 +4789,6 @@ dequeue_enc_one_op_tb(struct acc100_queue *q, struct rte_bbdev_enc_op **ref_op, rsp.val, descs_in_tb, desc->req.numCBs); - op->status |= ((rsp.input_err) - ? (1 <<RTE_BBDEV_DATA_ERROR ) :0 ); op->status |= ((rsp.dma_err) ? (1 <<RTE_BBDEV_DRV_ERROR ) :0 ); op->status |= ((rsp.fcw_err) ? (1 <<RTE_BBDEV_DRV_ERROR ) :0 );
Signature · 1 line
2.37.1
PATCH 27/33 baseband/acc100: make desc optimization optional
In reply to Hernan VargasAdd ACC100_DESC_OPTIMIZATION flag to enable muxing of encode operations with common FCW.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +2 -1
@@ -4580,9 +4580,10 @@ acc100_enqueue_ldpc_dec_cb(struct rte_bbdev_queue_data *q_data,break ; } avail -=1 ; - +#ifdef ACC100_DESC_OPTIMIZATION if (i >0 ) same_op =cmp_ldpc_dec_op (&ops[i-1 ]); +#endif rte_bbdev_log(INFO, "Op %d %d %d %d %d %d %d %d %d %d %d %d\n", i, ops[i]->ldpc_dec.op_flags, ops[i]->ldpc_dec.rv_index, ops[i]->ldpc_dec.iter_max, ops[i]->ldpc_dec.iter_count,
Signature · 1 line
2.37.1
PATCH 28/33 baseband/acc100: update device info
In reply to Hernan VargasRemove unused capabilities, use dummy operation as start count for number of queues.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +2 -3
@@ -1082,7 +1082,6 @@ acc100_dev_info_get(struct rte_bbdev *dev, {struct acc100_device *d = dev->data->dev_private;int i; -static const struct rte_bbdev_op_cap bbdev_capabilities[] = { { .type =RTE_BBDEV_OP_TURBO_DEC ,
@@ -1094,7 +1093,6 @@ acc100_dev_info_get(struct rte_bbdev *dev,RTE_BBDEV_TURBO_EARLY_TERMINATION |RTE_BBDEV_TURBO_DEC_INTERRUPTS |RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN | -RTE_BBDEV_TURBO_MAP_DEC |RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP |RTE_BBDEV_TURBO_DEC_CRC_24B_DROP | RTE_BBDEV_TURBO_DEC_SCATTER_GATHER,
@@ -1189,12 +1187,13 @@ acc100_dev_info_get(struct rte_bbdev *dev, d->acc100_conf.q_ul_5g.num_qgroups; dev_info->num_queues[RTE_BBDEV_OP_LDPC_ENC ] = d->acc100_conf.q_dl_5g.num_aqs_per_groups * d->acc100_conf.q_dl_5g.num_qgroups; + dev_info->num_queues[RTE_BBDEV_OP_FFT ] =0 ; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_DEC ] = d->acc100_conf.q_ul_4g.num_qgroups; dev_info->queue_priority[RTE_BBDEV_OP_TURBO_ENC ] = d->acc100_conf.q_dl_4g.num_qgroups; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_DEC ] = d->acc100_conf.q_ul_5g.num_qgroups; dev_info->queue_priority[RTE_BBDEV_OP_LDPC_ENC ] = d->acc100_conf.q_dl_5g.num_qgroups; dev_info->max_num_queues =0 ; -for (i =RTE_BBDEV_OP_TURBO_DEC ; i <RTE_BBDEV_OP_LDPC_ENC ; i++) +for (i =RTE_BBDEV_OP_NONE ; i <=RTE_BBDEV_OP_LDPC_ENC ; i++) dev_info->max_num_queues += dev_info->num_queues[i]; dev_info->queue_size_lim =ACC100_MAX_QUEUE_DEPTH ; dev_info->hardware_accelerated = true;
Signature · 1 line
2.37.1
PATCH 29/33 baseband/acc100: reduce input length for CRC24B
In reply to Hernan VargasInput length should be reduced only for CRC24B.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +1 -2
@@ -1989,8 +1989,7 @@ acc100_dma_desc_le_fill(struct rte_bbdev_enc_op *op,K = (enc->basegraph ==1 ?22 :10 ) * enc->z_c; in_length_in_bits =K - enc->n_filler; -if ((enc->op_flags &RTE_BBDEV_LDPC_CRC_24A_ATTACH ) || - (enc->op_flags &RTE_BBDEV_LDPC_CRC_24B_ATTACH )) +if (enc->op_flags &RTE_BBDEV_LDPC_CRC_24B_ATTACH ) in_length_in_bits -=24 ; in_length_in_bytes = in_length_in_bits >>3 ;
Signature · 1 line
2.37.1
PATCH 30/33 baseband/acc100: initialize ring data value
In reply to Hernan VargasInitialize ring data value to 0 only for PF error interrupts or for doorbell VF2PF interrupt.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +4 -3
@@ -437,11 +437,12 @@ acc100_check_ir(struct acc100_device *acc100_dev)while (ring_data->valid) {if ((ring_data->int_nb <ACC100_PF_INT_DMA_DL_DESC_IRQ ) || ( ring_data->int_nb > -ACC100_PF_INT_DMA_DL5G_DESC_IRQ )) +ACC100_PF_INT_DMA_DL5G_DESC_IRQ )) {rte_bbdev_log (WARNING ,"InfoRing: ITR:%d Info:0x%x" , ring_data->int_nb, ring_data->detailed_info); -/* Initialize Info Ring entry and move forward */ - ring_data->val =0 ; +/* Initialize Info Ring entry and move forward */ + ring_data->val =0 ; + } info_ring_head++; ring_data = acc100_dev->info_ring + (info_ring_head &ACC100_INFO_RING_MASK );
Signature · 1 line
2.37.1
PATCH 31/33 baseband/acc100: update debug print for LDPC FCW
In reply to Hernan VargasPrint full size of FCW LDPC structure on debug messages.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +1 -1
@@ -3867,7 +3867,7 @@ enqueue_ldpc_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,#ifdef RTE_LIBRTE_BBDEV_DEBUG rte_memdump (stderr,"FCW" , &desc->req.fcw_ld, -sizeof (desc->req.fcw_ld) -8 ); +sizeof (desc->req.fcw_ld));rte_memdump (stderr,"Req Desc." , desc,sizeof (*desc));#endif
Signature · 1 line
2.37.1
PATCH 32/33 baseband/acc100: set device min alignment to 1
In reply to Hernan VargasMinimum alignment of buffers set to 1 byte.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +1 -1
@@ -1204,7 +1204,7 @@ acc100_dev_info_get(struct rte_bbdev *dev, d->acc100_conf.q_ul_4g.num_qgroups -1 ; dev_info->default_queue_conf = default_queue_conf; dev_info->cpu_flag_reqs =NULL ; - dev_info->min_alignment =64 ; + dev_info->min_alignment =1 ; dev_info->capabilities = bbdev_capabilities;#ifdef ACC100_EXT_MEM dev_info->harq_buffer_size = d->ddr_size;
Signature · 1 line
2.37.1
PATCH 33/33 baseband/acc100: update meson file sdk dependency
In reply to Hernan VargasUpdate meson files with FlexRAN SDK dependency.
--- drivers/baseband/acc100/meson.build | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
drivers/baseband/acc100/meson.build +21 -0
@@ -1,6 +1,27 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel Corporation +# check for FlexRAN SDK libraries +dep_dec5g = dependency('flexran_sdk_ldpc_decoder_5gnr', required: false) + +if dep_dec5g.found() + ext_deps += cc.find_library('libstdc++', required: true) + ext_deps += cc.find_library('libirc', required: true) + ext_deps += cc.find_library('libimf', required: true) + ext_deps += cc.find_library('libipps', required: true) + ext_deps += cc.find_library('libsvml', required: true) + ext_deps += dep_dec5g + ext_deps += dependency('flexran_sdk_ldpc_encoder_5gnr', required: true) + ext_deps += dependency('flexran_sdk_LDPC_ratematch_5gnr', required: true) + ext_deps += dependency('flexran_sdk_rate_dematching_5gnr', required: true) + ext_deps += dependency('flexran_sdk_turbo', required: true) + ext_deps += dependency('flexran_sdk_crc', required: true) + ext_deps += dependency('flexran_sdk_rate_matching', required: true) + ext_deps += dependency('flexran_sdk_common', required: true) + cflags += ['-DRTE_BBDEV_SDK_AVX2'] + cflags += ['-DRTE_BBDEV_SDK_AVX512'] +endif + deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] sources = files('rte_acc100_pmd.c')
Signature · 1 line
2.37.1
Quoted 3 lines · Hernan Vargas
Upstreaming ACC100 changes for 22.11.
This patch series is dependant on series:
https://patches.dpdk.org/project/dpdk/patch/1657150110-69957
Can you go into some more detail about these changes ?
Ex/ which are the fixes and which are the features ?
Tom
Quoted 42 lines
Hernan Vargas (33):
baseband/acc100: update dev close function baseband/acc100: quit queue setup for undef dev baseband/acc100: add default e value for FCW baseband/acc100: add LDPC encoder padding function baseband/acc100: add scatter-gather support baseband/acc100: add HARQ index helper function baseband/acc100: avoid mux for small inbound frames baseband/acc100: separate validation functions from debug baseband/acc100: add LDPC transport block support baseband/acc10x: limit cases for HARQ pruning baseband/acc100: update validate LDPC enc/dec baseband/acc100: add workaround for deRM corner cases baseband/acc100: enable vf2pf doorbell register baseband/acc100: add ring companion address baseband/acc100: configure PMON control registers baseband/acc100: configurable queue depth baseband/acc100: add queue stop operation basbeband/acc100: check turbo dec/enc input baseband/acc100: check for unlikely operation vals baseband/acc100: enforce additional check on FCW baseband/acc100: update uplink CB input length baseband/acc100: rename ldpc encode function arg baseband/acc100: update log messages baseband/acc100: allocate ring/queue mem when NULL baseband/acc100: store FCW from first CB descriptor baseband/acc100: remove input error check from enc baseband/acc100: make desc optimization optional baseband/acc100: update device info baseband/acc100: reduce input length for CRC24B baseband/acc100: initialize ring data value baseband/acc100: update debug print for LDPC FCW baseband/acc100: set device min alignment to 1 baseband/acc100: update meson file sdk dependencydrivers/baseband/acc100/acc100_pmd.h | 41 +- drivers/baseband/acc100/acc100_vf_enum.h | 6 + drivers/baseband/acc100/meson.build | 21 + drivers/baseband/acc100/rte_acc100_pmd.c | 1196 ++++++++++++++++++---- 4 files changed, 1068 insertions(+), 196 deletions(-)