bbdev PMD ACC100
PATCH v7 9/11 baseband/acc100: add debug function to validate input
In reply to Nicolas ChautruDebug functions to validate the input API from user Only enabled in DEBUG mode at build time
--- drivers/baseband/acc100/rte_acc100_pmd.c | 424 +++++++++++++++++++++++++++++++ 1 file changed, 424 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +424 -0
@@ -1945,6 +1945,231 @@ } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validates turbo encoder parameters */ +static inline int +validate_enc_op (struct rte_bbdev_enc_op *op) +{ +struct rte_bbdev_op_turbo_enc *turbo_enc = &op->turbo_enc; +struct rte_bbdev_op_enc_turbo_cb_params *cb =NULL ; +struct rte_bbdev_op_enc_turbo_tb_params *tb =NULL ; +uint16_t kw, kw_neg, kw_pos; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if (turbo_enc->input.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid input pointer" ); +return -1 ; + } +if (turbo_enc->output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid output pointer" ); +return -1 ; + } +if (turbo_enc->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + turbo_enc->rv_index); +return -1 ; + } +if (turbo_enc->code_block_mode !=0 && + turbo_enc->code_block_mode !=1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + turbo_enc->code_block_mode); +return -1 ; + } + +if (turbo_enc->code_block_mode ==0 ) { + tb = &turbo_enc->tb_params; +if ((tb->k_neg <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_neg >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c_neg >0 ) { +rte_bbdev_log (ERR , +"k_neg (%u) is out of range %u <= value <= %u" , + tb->k_neg,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if (tb->k_pos <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_pos >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k_pos (%u) is out of range %u <= value <= %u" , + tb->k_pos,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -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 ); +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" , + tb->c,RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ); +return -1 ; + } +if (tb->cab > tb->c) { +rte_bbdev_log (ERR , +"cab (%u) is greater than c (%u)" , + tb->cab, tb->c); +return -1 ; + } +if ((tb->ea <RTE_BBDEV_TURBO_MIN_CB_SIZE || (tb->ea %2 )) + && tb->r < tb->cab) { +rte_bbdev_log (ERR , +"ea (%u) is less than %u or it is not even" , + tb->ea,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } +if ((tb->eb <RTE_BBDEV_TURBO_MIN_CB_SIZE || (tb->eb %2 )) + && tb->c > tb->cab) { +rte_bbdev_log (ERR , +"eb (%u) is less than %u or it is not even" , + tb->eb,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + + kw_neg =3 *RTE_ALIGN_CEIL (tb->k_neg +4 , +RTE_BBDEV_TURBO_C_SUBBLOCK ); +if (tb->ncb_neg < tb->k_neg || tb->ncb_neg > kw_neg) { +rte_bbdev_log (ERR , +"ncb_neg (%u) is out of range (%u) k_neg <= value <= (%u) kw_neg" , + tb->ncb_neg, tb->k_neg, kw_neg); +return -1 ; + } + + kw_pos =3 *RTE_ALIGN_CEIL (tb->k_pos +4 , +RTE_BBDEV_TURBO_C_SUBBLOCK ); +if (tb->ncb_pos < tb->k_pos || tb->ncb_pos > kw_pos) { +rte_bbdev_log (ERR , +"ncb_pos (%u) is out of range (%u) k_pos <= value <= (%u) kw_pos" , + tb->ncb_pos, tb->k_pos, kw_pos); +return -1 ; + } +if (tb->r > (tb->c -1 )) { +rte_bbdev_log (ERR , +"r (%u) is greater than c - 1 (%u)" , + tb->r, tb->c -1 ); +return -1 ; + } + }else { + cb = &turbo_enc->cb_params; +if (cb->k <RTE_BBDEV_TURBO_MIN_CB_SIZE + || cb->k >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k (%u) is out of range %u <= value <= %u" , + cb->k,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } + +if (cb->e <RTE_BBDEV_TURBO_MIN_CB_SIZE || (cb->e %2 )) { +rte_bbdev_log (ERR , +"e (%u) is less than %u or it is not even" , + cb->e,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + + kw =RTE_ALIGN_CEIL (cb->k +4 ,RTE_BBDEV_TURBO_C_SUBBLOCK ) *3 ; +if (cb->ncb < cb->k || cb->ncb > kw) { +rte_bbdev_log (ERR , +"ncb (%u) is out of range (%u) k <= value <= (%u) kw" , + cb->ncb, cb->k, kw); +return -1 ; + } + } + +return 0 ; +} +/* Validates LDPC encoder parameters */ +static inline int +validate_ldpc_enc_op (struct rte_bbdev_enc_op *op) +{ +struct rte_bbdev_op_ldpc_enc *ldpc_enc = &op->ldpc_enc; + +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 ; + } +if (ldpc_enc->output.data ==NULL ) { +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 ); +return -1 ; + } +if ((ldpc_enc->basegraph >2 ) || (ldpc_enc->basegraph ==0 )) { +rte_bbdev_log (ERR , +"BG (%u) is out of range 1 <= value <= 2" , + ldpc_enc->basegraph); +return -1 ; + } +if (ldpc_enc->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + ldpc_enc->rv_index); +return -1 ; + } +if (ldpc_enc->code_block_mode >1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + ldpc_enc->code_block_mode); +return -1 ; + } + +return 0 ; +} + +/* Validates LDPC decoder parameters */ +static inline int +validate_ldpc_dec_op (struct rte_bbdev_dec_op *op) +{ +struct rte_bbdev_op_ldpc_dec *ldpc_dec = &op->ldpc_dec; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if ((ldpc_dec->basegraph >2 ) || (ldpc_dec->basegraph ==0 )) { +rte_bbdev_log (ERR , +"BG (%u) is out of range 1 <= value <= 2" , + ldpc_dec->basegraph); +return -1 ; + } +if (ldpc_dec->iter_max ==0 ) { +rte_bbdev_log (ERR , +"iter_max (%u) is equal to 0" , + ldpc_dec->iter_max); +return -1 ; + } +if (ldpc_dec->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + ldpc_dec->rv_index); +return -1 ; + } +if (ldpc_dec->code_block_mode >1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + ldpc_dec->code_block_mode); +return -1 ; + } + +return 0 ; +} +#endif +/* Enqueue one encode operations for ACC100 device in CB mode */ static inline int enqueue_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,
@@ -1956,6 +2181,14 @@ seg_total_left;struct rte_mbuf *input, *output_head, *output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2008,6 +2241,14 @@uint16_t in_length_in_bytes;struct rte_bbdev_op_ldpc_enc *enc = &ops[0 ]->ldpc_enc; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_enc_op (ops[0 ]) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2065,6 +2306,14 @@ seg_total_left;struct rte_mbuf *input, *output_head, *output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2119,6 +2368,14 @@struct rte_mbuf *input, *output_head, *output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2191,6 +2448,142 @@return current_enqueued_cbs; } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validates turbo decoder parameters */ +static inline int +validate_dec_op (struct rte_bbdev_dec_op *op) +{ +struct rte_bbdev_op_turbo_dec *turbo_dec = &op->turbo_dec; +struct rte_bbdev_op_dec_turbo_cb_params *cb =NULL ; +struct rte_bbdev_op_dec_turbo_tb_params *tb =NULL ; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if (turbo_dec->input.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid input pointer" ); +return -1 ; + } +if (turbo_dec->hard_output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid hard_output pointer" ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_SOFT_OUTPUT ) && + turbo_dec->soft_output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid soft_output pointer" ); +return -1 ; + } +if (turbo_dec->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + turbo_dec->rv_index); +return -1 ; + } +if (turbo_dec->iter_min <1 ) { +rte_bbdev_log (ERR , +"iter_min (%u) is less than 1" , + turbo_dec->iter_min); +return -1 ; + } +if (turbo_dec->iter_max <=2 ) { +rte_bbdev_log (ERR , +"iter_max (%u) is less than or equal to 2" , + turbo_dec->iter_max); +return -1 ; + } +if (turbo_dec->iter_min > turbo_dec->iter_max) { +rte_bbdev_log (ERR , +"iter_min (%u) is greater than iter_max (%u)" , + turbo_dec->iter_min, turbo_dec->iter_max); +return -1 ; + } +if (turbo_dec->code_block_mode !=0 && + turbo_dec->code_block_mode !=1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + turbo_dec->code_block_mode); +return -1 ; + } + +if (turbo_dec->code_block_mode ==0 ) { + tb = &turbo_dec->tb_params; +if ((tb->k_neg <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_neg >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c_neg >0 ) { +rte_bbdev_log (ERR , +"k_neg (%u) is out of range %u <= value <= %u" , + tb->k_neg,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if ((tb->k_pos <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_pos >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c > tb->c_neg) { +rte_bbdev_log (ERR , +"k_pos (%u) is out of range %u <= value <= %u" , + tb->k_pos,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -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 ); +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" , + tb->c,RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ); +return -1 ; + } +if (tb->cab > tb->c) { +rte_bbdev_log (ERR , +"cab (%u) is greater than c (%u)" , + tb->cab, tb->c); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (tb->ea <RTE_BBDEV_TURBO_MIN_CB_SIZE + || (tb->ea %2 )) + && tb->cab >0 ) { +rte_bbdev_log (ERR , +"ea (%u) is less than %u or it is not even" , + tb->ea,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (tb->eb <RTE_BBDEV_TURBO_MIN_CB_SIZE + || (tb->eb %2 )) + && tb->c > tb->cab) { +rte_bbdev_log (ERR , +"eb (%u) is less than %u or it is not even" , + tb->eb,RTE_BBDEV_TURBO_MIN_CB_SIZE ); + } + }else { + cb = &turbo_dec->cb_params; +if (cb->k <RTE_BBDEV_TURBO_MIN_CB_SIZE + || cb->k >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k (%u) is out of range %u <= value <= %u" , + cb->k,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (cb->e <RTE_BBDEV_TURBO_MIN_CB_SIZE || + (cb->e %2 ))) { +rte_bbdev_log (ERR , +"e (%u) is less than %u or it is not even" , + cb->e,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + } + +return 0 ; +} +#endif +/** Enqueue one decode operations for ACC100 device in CB mode */ static inline int enqueue_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,
@@ -2203,6 +2596,14 @@struct rte_mbuf *input, *h_output_head, *h_output, *s_output_head, *s_output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2426,6 +2827,13 @@return ret; } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +return -EINVAL ; + } +#endif union acc100_dma_desc *desc;uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask);
@@ -2521,6 +2929,14 @@struct rte_mbuf *input, *h_output_head, *h_output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2611,6 +3027,14 @@ *s_output_head, *s_output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
Signature · 1 line
1.8.3.1
PATCH v7 10/11 baseband/acc100: add configure function
In reply to Nicolas ChautruAdd configure function to configure the PF from within the bbdev-test itself without external application configuration the device.
--- app/test-bbdev/test_bbdev_perf.c | 72 +++ drivers/baseband/acc100/meson.build | 2 + drivers/baseband/acc100/rte_acc100_cfg.h | 17 + drivers/baseband/acc100/rte_acc100_pmd.c | 505 +++++++++++++++++++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 7 + 5 files changed, 603 insertions(+)
app/test-bbdev/test_bbdev_perf.c +72 -0
@@ -52,6 +52,18 @@#define FLR_5G_TIMEOUT 610#endif +#ifdef RTE_LIBRTE_PMD_BBDEV_ACC100 +#include <rte_acc100_cfg.h> +#define ACC100PF_DRIVER_NAME ("intel_acc100_pf") +#define ACC100VF_DRIVER_NAME ("intel_acc100_vf") +#define ACC100_QMGR_NUM_AQS 16 +#define ACC100_QMGR_NUM_QGS 2 +#define ACC100_QMGR_AQ_DEPTH 5 +#define ACC100_QMGR_INVALID_IDX -1 +#define ACC100_QMGR_RR 1 +#define ACC100_QOS_GBR 0 +#endif +#define OPS_CACHE_SIZE 256U#define OPS_POOL_SIZE_MIN 511U/* 0.5K per queue */
@@ -653,6 +665,66 @@ typedef int (test_case_function)(struct active_device *ad, info->dev_name); }#endif +#ifdef RTE_LIBRTE_PMD_BBDEV_ACC100 +if ((get_init_device () == true) && + (!strcmp (info->drv.driver_name,ACC100PF_DRIVER_NAME ))) { +struct acc100_conf conf; +unsigned int i; + +printf ("Configure ACC100 FEC Driver %s with default values\n" , + info->drv.driver_name); + +/* clear default configuration before initialization */ +memset (&conf,0 ,sizeof (struct acc100_conf )); + +/* Always set in PF mode for built-in configuration */ + conf.pf_mode_en = true; +for (i =0 ; i <RTE_ACC100_NUM_VFS ; ++i) { + conf.arb_dl_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_4g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_ul_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_4g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_dl_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_5g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_ul_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_5g[i].round_robin_weight =ACC100_QMGR_RR ; + } + + conf.input_pos_llr_1_bit = true; + conf.output_pos_llr_1_bit = true; + conf.num_vf_bundles =1 ;/**< Number of VF bundles to setup */ + + conf.q_ul_4g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_ul_4g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_ul_4g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_ul_4g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_dl_4g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_dl_4g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_dl_4g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_dl_4g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_ul_5g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_ul_5g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_ul_5g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_ul_5g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_dl_5g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_dl_5g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_dl_5g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_dl_5g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + +/* setup PF with configuration information */ + ret =acc100_configure (info->dev_name, &conf); +TEST_ASSERT_SUCCESS (ret, +"Failed to configure ACC100 PF for bbdev %s" , + info->dev_name); +/* Let's refresh this now this is configured */ + } +rte_bbdev_info_get (dev_id, info); +#endif + nb_queues =RTE_MIN (rte_lcore_count (), info->drv.max_num_queues); nb_queues =RTE_MIN (nb_queues, (unsigned int )MAX_QUEUES );
drivers/baseband/acc100/meson.build +2 -0
@@ -4,3 +4,5 @@ deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] sources = files('rte_acc100_pmd.c') + +install_headers('rte_acc100_cfg.h')
drivers/baseband/acc100/rte_acc100_cfg.h +17 -0
@@ -89,6 +89,23 @@ struct acc100_conf {struct rte_arbitration_t arb_dl_5g[RTE_ACC100_NUM_VFS ]; }; +/** +* Configure a ACC100 device +* +* @param dev_name +* The name of the device. This is the short form of PCI BDF, e.g. 00:01.0. +* It can also be retrieved for a bbdev device from the dev_name field in the +* rte_bbdev_info structure returned by rte_bbdev_info_get(). +* @param conf +* Configuration to apply to ACC100 HW. +* +* @return +* Zero on success, negative value on failure. +*/ +__rte_experimental +int +acc100_configure (const char *dev_name,struct acc100_conf *conf); + #ifdef __cplusplus }#endif
drivers/baseband/acc100/rte_acc100_pmd.c +505 -0
520 lines not on this page · raw message
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map +7 -0
@@ -1,3 +1,10 @@ DPDK_21 { local: *; }; + +EXPERIMENTAL { + global: + + acc100_configure; + +};
Signature · 1 line
1.8.3.1
PATCH v7 11/11 doc: update bbdev feature table
In reply to Nicolas ChautruCorrecting overview matrix to use acc100 name
--- doc/guides/bbdevs/features/acc100.ini | 14 ++++++++++++++ doc/guides/bbdevs/features/mbc.ini | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc100.ini delete mode 100644 doc/guides/bbdevs/features/mbc.ini
doc/guides/bbdevs/features/acc100.ini new file +14 -0
@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = Y +Turbo Encoder (4G) = Y +LDPC Decoder (5G) = Y +LDPC Encoder (5G) = Y +LLR/HARQ Compression = Y +External DDR Access = Y +HW Accelerated = Y +BBDEV API = Y
doc/guides/bbdevs/features/mbc.ini deleted +0 -14
@@ -1,14 +0,0 @@ -; -; Supported features of the 'mbc' bbdev driver. -; -; Refer to default.ini for the full list of available PMD features. -; -[Features] -Turbo Decoder (4G) = Y -Turbo Encoder (4G) = Y -LDPC Decoder (5G) = Y -LDPC Encoder (5G) = Y -LLR/HARQ Compression = Y -External DDR Access = Y -HW Accelerated = Y -BBDEV API = Y
Signature · 1 line
1.8.3.1
Re: [dpdk-dev] [PATCH v7 11/11] doc: update bbdev feature table
Hi Nicolas,
Quoted 23 lines
Correcting overview matrix to use acc100 name
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/features/acc100.ini | 14 ++++++++++++++ doc/guides/bbdevs/features/mbc.ini | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc100.ini delete mode 100644 doc/guides/bbdevs/features/mbc.inidoc/guides/bbdevs/features/acc100.ini new file +4
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features.
doc/guides/bbdevs/features/acc100.ini line 14
Quoted 10 lines
doc/guides/bbdevs/features/acc100.ini new file +10
-0+; +[Features] +Turbo Decoder (4G) = Y +Turbo Encoder (4G) = Y +LDPC Decoder (5G) = Y +LDPC Encoder (5G) = Y +LLR/HARQ Compression = Y +External DDR Access = Y +HW Accelerated = Y +BBDEV API = Y
We normally do not take separate feature set patches for documentation. These should be split across your patchset, where you are actually adding the feature.
Also the release notes in the first patch is not correct as the PMD is not Complete there. You can add it in the last patch.
Quoted 11 lines
doc/guides/bbdevs/features/mbc.ini deleted +0
-4@@ -1,14 +0,0 @@ -; -; Supported features of the 'mbc' bbdev driver. -; -; Refer to default.ini for the full list of available PMD features.
doc/guides/bbdevs/features/mbc.ini line 14
Quoted 10 lines
doc/guides/bbdevs/features/mbc.ini deleted +0
-10-; -[Features] -Turbo Decoder (4G) = Y -Turbo Encoder (4G) = Y -LDPC Decoder (5G) = Y -LDPC Encoder (5G) = Y -LLR/HARQ Compression = Y -External DDR Access = Y -HW Accelerated = Y -BBDEV API = Y
Not sure how was it missed earlier.
Please submit a separate patch for this. This should also be sent for stable backport as well And add a fixes line.
Re: [dpdk-dev] [PATCH v7 11/11] doc: update bbdev feature table
Hi Akhil,
Quoted 41 lines
From: Akhil Goyal <[email protected]>
Hi Nicolas,
Quoted 23 lines
Correcting overview matrix to use acc100 name
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/features/acc100.ini | 14 ++++++++++++++ doc/guides/bbdevs/features/mbc.ini | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 doc/guides/bbdevs/features/acc100.ini delete mode 100644 doc/guides/bbdevs/features/mbc.inidoc/guides/bbdevs/features/acc100.ini new file +4
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features.doc/guides/bbdevs/features/acc100.ini line 14
Quoted 10 lines
doc/guides/bbdevs/features/acc100.ini new file +10
-0+; +[Features] +Turbo Decoder (4G) = Y +Turbo Encoder (4G) = Y +LDPC Decoder (5G) = Y +LDPC Encoder (5G) = Y +LLR/HARQ Compression = Y +External DDR Access = Y +HW Accelerated = Y +BBDEV API = YWe normally do not take separate feature set patches for documentation. These should be split across your patchset, where you are actually adding the feature.
Quoted 2 lines
Also the release notes in the first patch is not correct as the PMD is not Complete there. You can add it in the last patch.
No problem. Updated in the v9 now available.
Quoted 18 lines
Quoted 18 lines
doc/guides/bbdevs/features/mbc.ini deleted +0
-10@@ -1,14 +0,0 @@ -; -; Supported features of the 'mbc' bbdev driver. -; -; Refer to default.ini for the full list of available PMD features. -; -[Features] -Turbo Decoder (4G) = Y -Turbo Encoder (4G) = Y -LDPC Decoder (5G) = Y -LDPC Encoder (5G) = Y
Quoted 8 lines
doc/guides/bbdevs/features/mbc.ini line 14
Quoted 4 lines
doc/guides/bbdevs/features/mbc.ini deleted +0
-4-LLR/HARQ Compression = Y -External DDR Access = Y -HW Accelerated = Y -BBDEV API = YNot sure how was it missed earlier.
Please submit a separate patch for this. This should also be sent for stable backport as well And add a fixes line.
Yes that was my bad to overlook this. Sent now as well on separate patch.
More generally the patches related to BBDEV pending to be applied for 20.11 :
https://patches.dpdk.org/project/dpdk/list/?series=&submitter=chautru&state=&q=&archive=&delegate=
Thanks
Nic
v8 cover bbdev PMD ACC100
In reply to Nicolas Chautruv7: integrated the doc feature table in previous commit as suggested.
v7: Fingers trouble. Previous one sent mid-rebase. My bad.
v6: removed a legacy makefile no longer required
v5: rebase based on latest on main. The legacy makefiles are removed.
v4: an odd compilation error is reported for one CI variant using "gcc latest" which looks to me like a false positive of maybe-undeclared.
http://mails.dpdk.org/archives/test-report/2020-August/148936.html
Still forcing a dummy declare to remove this CI warning I will check with [email protected] in parallel.
v3: missed a change during rebase
v2: includes clean up from latest CI checks.
Nicolas Chautru (10):
drivers/baseband: add PMD for ACC100 baseband/acc100: add register definition file baseband/acc100: add info get function baseband/acc100: add queue configuration baseband/acc100: add LDPC processing functions baseband/acc100: add HARQ loopback support baseband/acc100: add support for 4G processing baseband/acc100: add interrupt support to PMD baseband/acc100: add debug function to validate input baseband/acc100: add configure function
app/test-bbdev/meson.build | 3 + app/test-bbdev/test_bbdev_perf.c | 72 + doc/guides/bbdevs/acc100.rst | 233 + doc/guides/bbdevs/features/acc100.ini | 14 + doc/guides/bbdevs/index.rst | 1 + doc/guides/rel_notes/release_20_11.rst | 6 + drivers/baseband/acc100/acc100_pf_enum.h | 1068 +++++ drivers/baseband/acc100/acc100_vf_enum.h | 73 + drivers/baseband/acc100/meson.build | 8 + drivers/baseband/acc100/rte_acc100_cfg.h | 113 + drivers/baseband/acc100/rte_acc100_pmd.c | 4684 ++++++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 593 +++ .../acc100/rte_pmd_bbdev_acc100_version.map | 10 + drivers/baseband/meson.build | 2 +- 14 files changed, 6879 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.h create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_cfg.h create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644 drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map
Signature · 1 line
1.8.3.1
PATCH v8 1/10 drivers/baseband: add PMD for ACC100
Add stubs for the ACC100 PMD
--- doc/guides/bbdevs/acc100.rst | 233 +++++++++++++++++++++ doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + doc/guides/rel_notes/release_20_11.rst | 6 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175 ++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 9 files changed, 476 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644 drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map
doc/guides/bbdevs/acc100.rst new file +233 -0
@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce. + +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G) +- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B from CB(s) + - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable early termination + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bits appended while decoding + - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` : HARQ memory input is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` : HARQ memory output is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` : loopback data to/from HARQ memory + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQ memory includes the fillers bits + - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supports compression of the HARQ input/output + - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeue interrupts + - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : perform subblock de-interleave + - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeue interrupts + - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bits appended while decoding + - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early early termination feature + - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and compiling DPDK. The +default set of bbdev compile flags may be found in config/common_base, where for example +the flag to build the ACC100 5G/4G FEC device, ``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``, +is already set. + +DPDK requires hugepages to be configured as detailed in section 2 of the DPDK manual. +The bbdev test application has been tested with a configuration 40 x 1GB hugepages. The +hugepage configuration of a server may be examined using: + +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +-------------- + +When the device first powers up, its PCI Physical Functions (PF) can be listed through this command: + +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIO drivers: +``vfio`` and ``igb_uio``. However, in order to work the ACC100 5G/4G +FEC device firstly needs to be bound to one of these linux drivers through DPDK. + + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID and use +``lspci`` to confirm the PF device is under use by ``igb_uio`` DPDK UIO driver. + +The igb_uio driver may be bound to the PF PCI device using one of three methods: + + +1. PCI functions (physical or virtual, depending on the use case) can be bound to +the UIO driver by repeating this command for every function. + +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the ``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using lspci -vd8086:0d5c + + +3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' depending on driver required + enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but vfio driver does not +support SR-IOV configuration right out of the box, so it will need to be patched. + + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under igb_uio control +"``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read ``sriov_totalvfs`` file.. + +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions intended to +enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as required, same +way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except that the file +name is different: + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfs + + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or getting assigned +to VMs/Containers. The configuration involves allocating the number of hardware +queues, priorities, load balance, bandwidth and other settings necessary for the +device to perform FEC functions. + +This configuration needs to be executed at least once after reboot or PCI FLR and can +be achieved by using the function ``acc100_configure()``, which sets up the +parameters defined in ``acc100_conf`` structure. + +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of test data for testing +the functionality of ACC100 5G/4G FEC encode and decode, depending on the device's +capabilities. The test application is located under app->test-bbdev folder and has the +following options: + +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the test app. + "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if not specified. + "-v", "--test-vector" : Test vector path (default=dpdk_path+/app/test-bbdev/test_vectors/bbdev_null.data). + "-n", "--num-ops" : Number of operations to process on device (default=32). + "-b", "--burst-size" : Operations enqueue/dequeue burst size (default=32). + "-s", "--snr" : SNR in dB used when generating LLRs for bler tests. + "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode data, +type one of the following: + +.. code-block:: console + + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_dec_default.data + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to configure the PF device with +a default set of values, if the "-i" or "- -init-device" option is included. The default values +are defined in test_bbdev_perf.c. + + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, bbdev also provides +a range of additional tests under the test_vectors folder, which may be useful. The results +of these tests will depend on the ACC100 5G/4G FEC capabilities which may cause some +testcases to be skipped, but no failure should be reported.
doc/guides/bbdevs/features/acc100.ini new file +14 -0
@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Y
doc/guides/bbdevs/index.rst +1 -0
@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100
doc/guides/rel_notes/release_20_11.rst +6 -0
@@ -55,6 +55,12 @@ New Features Also, make sure to start the actual text at the margin. ======================================================= +* **Added Intel ACC100 bbdev PMD.** + + Added a new ``acc100`` bbdev driver for the Intel\ |reg| ACC100 accelerator + also known as Mount Bryce. See the + :doc:`../bbdevs/acc100` BBDEV guide for more details on this new driver. + Removed Items -------------
drivers/baseband/acc100/meson.build new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')
drivers/baseband/acc100/rte_acc100_pmd.c new file +175 -0
175 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h new file +37 -0
@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation +*/ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) +#endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ +struct acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ +}; + +#endif /* _RTE_ACC100_PMD_H_ */
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3 -0
@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};
drivers/baseband/meson.build +1 -1
@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
Signature · 1 line
1.8.3.1
PATCH v8 2/10 baseband/acc100: add register definition file
In reply to Nicolas ChautruAdd in the list of registers for the device and related HW specs definitions.
--- drivers/baseband/acc100/acc100_pf_enum.h | 1068 ++++++++++++++++++++++++++++++ drivers/baseband/acc100/acc100_vf_enum.h | 73 ++ drivers/baseband/acc100/rte_acc100_pmd.h | 490 ++++++++++++++ 3 files changed, 1631 insertions(+) create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.h
drivers/baseband/acc100/acc100_pf_enum.h new file +1068 -0
@@ -0,0 +1,1068 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_PF_ENUM_H +#define ACC100_PF_ENUM_H + +/* +* ACC100 Register mapping on PF BAR0 +* This is automatically generated from RDL, format may change with new RDL +* Release. +* Variable names are as is +*/ +enum { + HWPfQmgrEgressQueuesTemplate =0x0007FE00 , + HWPfQmgrIngressAq =0x00080000 , + HWPfQmgrArbQAvail =0x00A00010 , + HWPfQmgrArbQBlock =0x00A00014 , + HWPfQmgrAqueueDropNotifEn =0x00A00024 , + HWPfQmgrAqueueDisableNotifEn =0x00A00028 , + HWPfQmgrSoftReset =0x00A00038 , + HWPfQmgrInitStatus =0x00A0003C , + HWPfQmgrAramWatchdogCount =0x00A00040 , + HWPfQmgrAramWatchdogCounterEn =0x00A00044 , + HWPfQmgrAxiWatchdogCount =0x00A00048 , + HWPfQmgrAxiWatchdogCounterEn =0x00A0004C , + HWPfQmgrProcessWatchdogCount =0x00A00050 , + HWPfQmgrProcessWatchdogCounterEn =0x00A00054 , + HWPfQmgrProcessUl4GWatchdogCounter =0x00A00058 , + HWPfQmgrProcessDl4GWatchdogCounter =0x00A0005C , + HWPfQmgrProcessUl5GWatchdogCounter =0x00A00060 , + HWPfQmgrProcessDl5GWatchdogCounter =0x00A00064 , + HWPfQmgrProcessMldWatchdogCounter =0x00A00068 , + HWPfQmgrMsiOverflowUpperVf =0x00A00070 , + HWPfQmgrMsiOverflowLowerVf =0x00A00074 , + HWPfQmgrMsiWatchdogOverflow =0x00A00078 , + HWPfQmgrMsiOverflowEnable =0x00A0007C , + HWPfQmgrDebugAqPointerMemGrp =0x00A00100 , + HWPfQmgrDebugOutputArbQFifoGrp =0x00A00140 , + HWPfQmgrDebugMsiFifoGrp =0x00A00180 , + HWPfQmgrDebugAxiWdTimeoutMsiFifo =0x00A001C0 , + HWPfQmgrDebugProcessWdTimeoutMsiFifo =0x00A001C4 , + HWPfQmgrDepthLog2Grp =0x00A00200 , + HWPfQmgrTholdGrp =0x00A00300 , + HWPfQmgrGrpTmplateReg0Indx =0x00A00600 , + HWPfQmgrGrpTmplateReg1Indx =0x00A00680 , + HWPfQmgrGrpTmplateReg2indx =0x00A00700 , + HWPfQmgrGrpTmplateReg3Indx =0x00A00780 , + HWPfQmgrGrpTmplateReg4Indx =0x00A00800 , + HWPfQmgrVfBaseAddr =0x00A01000 , + HWPfQmgrUl4GWeightRrVf =0x00A02000 , + HWPfQmgrDl4GWeightRrVf =0x00A02100 , + HWPfQmgrUl5GWeightRrVf =0x00A02200 , + HWPfQmgrDl5GWeightRrVf =0x00A02300 , + HWPfQmgrMldWeightRrVf =0x00A02400 , + HWPfQmgrArbQDepthGrp =0x00A02F00 , + HWPfQmgrGrpFunction0 =0x00A02F40 , + HWPfQmgrGrpFunction1 =0x00A02F44 , + HWPfQmgrGrpPriority =0x00A02F48 , + HWPfQmgrWeightSync =0x00A03000 , + HWPfQmgrAqEnableVf =0x00A10000 , + HWPfQmgrAqResetVf =0x00A20000 , + HWPfQmgrRingSizeVf =0x00A20004 , + HWPfQmgrGrpDepthLog20Vf =0x00A20008 , + HWPfQmgrGrpDepthLog21Vf =0x00A2000C , + HWPfQmgrGrpFunction0Vf =0x00A20010 , + HWPfQmgrGrpFunction1Vf =0x00A20014 , + HWPfDmaConfig0Reg =0x00B80000 , + HWPfDmaConfig1Reg =0x00B80004 , + HWPfDmaQmgrAddrReg =0x00B80008 , + HWPfDmaSoftResetReg =0x00B8000C , + HWPfDmaAxcacheReg =0x00B80010 , + HWPfDmaVersionReg =0x00B80014 , + HWPfDmaFrameThreshold =0x00B80018 , + HWPfDmaTimestampLo =0x00B8001C , + HWPfDmaTimestampHi =0x00B80020 , + HWPfDmaAxiStatus =0x00B80028 , + HWPfDmaAxiControl =0x00B8002C , + HWPfDmaNoQmgr =0x00B80030 , + HWPfDmaQosScale =0x00B80034 , + HWPfDmaQmanen =0x00B80040 , + HWPfDmaQmgrQosBase =0x00B80060 , + HWPfDmaFecClkGatingEnable =0x00B80080 , + HWPfDmaPmEnable =0x00B80084 , + HWPfDmaQosEnable =0x00B80088 , + HWPfDmaHarqWeightedRrFrameThreshold =0x00B800B0 , + HWPfDmaDataSmallWeightedRrFrameThresh =0x00B800B4 , + HWPfDmaDataLargeWeightedRrFrameThresh =0x00B800B8 , + HWPfDmaInboundCbMaxSize =0x00B800BC , + HWPfDmaInboundDrainDataSize =0x00B800C0 , + HWPfDmaVfDdrBaseRw =0x00B80400 , + HWPfDmaCmplTmOutCnt =0x00B80800 , + HWPfDmaProcTmOutCnt =0x00B80804 , + HWPfDmaStatusRrespBresp =0x00B80810 , + HWPfDmaCfgRrespBresp =0x00B80814 , + HWPfDmaStatusMemParErr =0x00B80818 , + HWPfDmaCfgMemParErrEn =0x00B8081C , + HWPfDmaStatusDmaHwErr =0x00B80820 , + HWPfDmaCfgDmaHwErrEn =0x00B80824 , + HWPfDmaStatusFecCoreErr =0x00B80828 , + HWPfDmaCfgFecCoreErrEn =0x00B8082C , + HWPfDmaStatusFcwDescrErr =0x00B80830 , + HWPfDmaCfgFcwDescrErrEn =0x00B80834 , + HWPfDmaStatusBlockTransmit =0x00B80838 , + HWPfDmaBlockOnErrEn =0x00B8083C , + HWPfDmaStatusFlushDma =0x00B80840 , + HWPfDmaFlushDmaOnErrEn =0x00B80844 , + HWPfDmaStatusSdoneFifoFull =0x00B80848 , + HWPfDmaStatusDescriptorErrLoVf =0x00B8084C , + HWPfDmaStatusDescriptorErrHiVf =0x00B80850 , + HWPfDmaStatusFcwErrLoVf =0x00B80854 , + HWPfDmaStatusFcwErrHiVf =0x00B80858 , + HWPfDmaStatusDataErrLoVf =0x00B8085C , + HWPfDmaStatusDataErrHiVf =0x00B80860 , + HWPfDmaCfgMsiEnSoftwareErr =0x00B80864 , + HWPfDmaDescriptorSignatuture =0x00B80868 , + HWPfDmaFcwSignature =0x00B8086C , + HWPfDmaErrorDetectionEn =0x00B80870 , + HWPfDmaErrCntrlFifoDebug =0x00B8087C , + HWPfDmaStatusToutData =0x00B80880 , + HWPfDmaStatusToutDesc =0x00B80884 , + HWPfDmaStatusToutUnexpData =0x00B80888 , + HWPfDmaStatusToutUnexpDesc =0x00B8088C , + HWPfDmaStatusToutProcess =0x00B80890 , + HWPfDmaConfigCtoutOutDataEn =0x00B808A0 , + HWPfDmaConfigCtoutOutDescrEn =0x00B808A4 , + HWPfDmaConfigUnexpComplDataEn =0x00B808A8 , + HWPfDmaConfigUnexpComplDescrEn =0x00B808AC , + HWPfDmaConfigPtoutOutEn =0x00B808B0 , + HWPfDmaFec5GulDescBaseLoRegVf =0x00B88020 , + HWPfDmaFec5GulDescBaseHiRegVf =0x00B88024 , + HWPfDmaFec5GulRespPtrLoRegVf =0x00B88028 , + HWPfDmaFec5GulRespPtrHiRegVf =0x00B8802C , + HWPfDmaFec5GdlDescBaseLoRegVf =0x00B88040 , + HWPfDmaFec5GdlDescBaseHiRegVf =0x00B88044 , + HWPfDmaFec5GdlRespPtrLoRegVf =0x00B88048 , + HWPfDmaFec5GdlRespPtrHiRegVf =0x00B8804C , + HWPfDmaFec4GulDescBaseLoRegVf =0x00B88060 , + HWPfDmaFec4GulDescBaseHiRegVf =0x00B88064 , + HWPfDmaFec4GulRespPtrLoRegVf =0x00B88068 , + HWPfDmaFec4GulRespPtrHiRegVf =0x00B8806C , + HWPfDmaFec4GdlDescBaseLoRegVf =0x00B88080 , + HWPfDmaFec4GdlDescBaseHiRegVf =0x00B88084 , + HWPfDmaFec4GdlRespPtrLoRegVf =0x00B88088 , + HWPfDmaFec4GdlRespPtrHiRegVf =0x00B8808C , + HWPfDmaVfDdrBaseRangeRo =0x00B880A0 , + HWPfQosmonACntrlReg =0x00B90000 , + HWPfQosmonAEvalOverflow0 =0x00B90008 , + HWPfQosmonAEvalOverflow1 =0x00B9000C , + HWPfQosmonADivTerm =0x00B90010 , + HWPfQosmonATickTerm =0x00B90014 , + HWPfQosmonAEvalTerm =0x00B90018 , + HWPfQosmonAAveTerm =0x00B9001C , + HWPfQosmonAForceEccErr =0x00B90020 , + HWPfQosmonAEccErrDetect =0x00B90024 , + HWPfQosmonAIterationConfig0Low =0x00B90060 , + HWPfQosmonAIterationConfig0High =0x00B90064 , + HWPfQosmonAIterationConfig1Low =0x00B90068 , + HWPfQosmonAIterationConfig1High =0x00B9006C , + HWPfQosmonAIterationConfig2Low =0x00B90070 , + HWPfQosmonAIterationConfig2High =0x00B90074 , + HWPfQosmonAIterationConfig3Low =0x00B90078 , + HWPfQosmonAIterationConfig3High =0x00B9007C , + HWPfQosmonAEvalMemAddr =0x00B90080 , + HWPfQosmonAEvalMemData =0x00B90084 , + HWPfQosmonAXaction =0x00B900C0 , + HWPfQosmonARemThres1Vf =0x00B90400 , + HWPfQosmonAThres2Vf =0x00B90404 , + HWPfQosmonAWeiFracVf =0x00B90408 , + HWPfQosmonARrWeiVf =0x00B9040C , + HWPfPermonACntrlRegVf =0x00B98000 , + HWPfPermonACountVf =0x00B98008 , + HWPfPermonAKCntLoVf =0x00B98010 , + HWPfPermonAKCntHiVf =0x00B98014 , + HWPfPermonADeltaCntLoVf =0x00B98020 , + HWPfPermonADeltaCntHiVf =0x00B98024 , + HWPfPermonAVersionReg =0x00B9C000 , + HWPfPermonACbControlFec =0x00B9C0F0 , + HWPfPermonADltTimerLoFec =0x00B9C0F4 , + HWPfPermonADltTimerHiFec =0x00B9C0F8 , + HWPfPermonACbCountFec =0x00B9C100 , + HWPfPermonAAccExecTimerLoFec =0x00B9C104 , + HWPfPermonAAccExecTimerHiFec =0x00B9C108 , + HWPfPermonAExecTimerMinFec =0x00B9C200 , + HWPfPermonAExecTimerMaxFec =0x00B9C204 , + HWPfPermonAControlBusMon =0x00B9C400 , + HWPfPermonAConfigBusMon =0x00B9C404 , + HWPfPermonASkipCountBusMon =0x00B9C408 , + HWPfPermonAMinLatBusMon =0x00B9C40C , + HWPfPermonAMaxLatBusMon =0x00B9C500 , + HWPfPermonATotalLatLowBusMon =0x00B9C504 , + HWPfPermonATotalLatUpperBusMon =0x00B9C508 , + HWPfPermonATotalReqCntBusMon =0x00B9C50C , + HWPfQosmonBCntrlReg =0x00BA0000 , + HWPfQosmonBEvalOverflow0 =0x00BA0008 , + HWPfQosmonBEvalOverflow1 =0x00BA000C , + HWPfQosmonBDivTerm =0x00BA0010 , + HWPfQosmonBTickTerm =0x00BA0014 , + HWPfQosmonBEvalTerm =0x00BA0018 , + HWPfQosmonBAveTerm =0x00BA001C , + HWPfQosmonBForceEccErr =0x00BA0020 , + HWPfQosmonBEccErrDetect =0x00BA0024 , + HWPfQosmonBIterationConfig0Low =0x00BA0060 , + HWPfQosmonBIterationConfig0High =0x00BA0064 , + HWPfQosmonBIterationConfig1Low =0x00BA0068 , + HWPfQosmonBIterationConfig1High =0x00BA006C , + HWPfQosmonBIterationConfig2Low =0x00BA0070 , + HWPfQosmonBIterationConfig2High =0x00BA0074 , + HWPfQosmonBIterationConfig3Low =0x00BA0078 , + HWPfQosmonBIterationConfig3High =0x00BA007C , + HWPfQosmonBEvalMemAddr =0x00BA0080 , + HWPfQosmonBEvalMemData =0x00BA0084 , + HWPfQosmonBXaction =0x00BA00C0 , + HWPfQosmonBRemThres1Vf =0x00BA0400 , + HWPfQosmonBThres2Vf =0x00BA0404 , + HWPfQosmonBWeiFracVf =0x00BA0408 , + HWPfQosmonBRrWeiVf =0x00BA040C , + HWPfPermonBCntrlRegVf =0x00BA8000 , + HWPfPermonBCountVf =0x00BA8008 , + HWPfPermonBKCntLoVf =0x00BA8010 , + HWPfPermonBKCntHiVf =0x00BA8014 , + HWPfPermonBDeltaCntLoVf =0x00BA8020 , + HWPfPermonBDeltaCntHiVf =0x00BA8024 , + HWPfPermonBVersionReg =0x00BAC000 , + HWPfPermonBCbControlFec =0x00BAC0F0 , + HWPfPermonBDltTimerLoFec =0x00BAC0F4 , + HWPfPermonBDltTimerHiFec =0x00BAC0F8 , + HWPfPermonBCbCountFec =0x00BAC100 , + HWPfPermonBAccExecTimerLoFec =0x00BAC104 , + HWPfPermonBAccExecTimerHiFec =0x00BAC108 , + HWPfPermonBExecTimerMinFec =0x00BAC200 , + HWPfPermonBExecTimerMaxFec =0x00BAC204 , + HWPfPermonBControlBusMon =0x00BAC400 , + HWPfPermonBConfigBusMon =0x00BAC404 , + HWPfPermonBSkipCountBusMon =0x00BAC408 , + HWPfPermonBMinLatBusMon =0x00BAC40C , + HWPfPermonBMaxLatBusMon =0x00BAC500 , + HWPfPermonBTotalLatLowBusMon =0x00BAC504 , + HWPfPermonBTotalLatUpperBusMon =0x00BAC508 , + HWPfPermonBTotalReqCntBusMon =0x00BAC50C , + HWPfFecUl5gCntrlReg =0x00BC0000 , + HWPfFecUl5gI2MThreshReg =0x00BC0004 , + HWPfFecUl5gVersionReg =0x00BC0100 , + HWPfFecUl5gFcwStatusReg =0x00BC0104 , + HWPfFecUl5gWarnReg =0x00BC0108 , + HwPfFecUl5gIbDebugReg =0x00BC0200 , + HwPfFecUl5gObLlrDebugReg =0x00BC0204 , + HwPfFecUl5gObHarqDebugReg =0x00BC0208 , + HwPfFecUl5g1CntrlReg =0x00BC1000 , + HwPfFecUl5g1I2MThreshReg =0x00BC1004 , + HwPfFecUl5g1VersionReg =0x00BC1100 , + HwPfFecUl5g1FcwStatusReg =0x00BC1104 , + HwPfFecUl5g1WarnReg =0x00BC1108 , + HwPfFecUl5g1IbDebugReg =0x00BC1200 , + HwPfFecUl5g1ObLlrDebugReg =0x00BC1204 , + HwPfFecUl5g1ObHarqDebugReg =0x00BC1208 , + HwPfFecUl5g2CntrlReg =0x00BC2000 , + HwPfFecUl5g2I2MThreshReg =0x00BC2004 , + HwPfFecUl5g2VersionReg =0x00BC2100 , + HwPfFecUl5g2FcwStatusReg =0x00BC2104 , + HwPfFecUl5g2WarnReg =0x00BC2108 , + HwPfFecUl5g2IbDebugReg =0x00BC2200 , + HwPfFecUl5g2ObLlrDebugReg =0x00BC2204 , + HwPfFecUl5g2ObHarqDebugReg =0x00BC2208 , + HwPfFecUl5g3CntrlReg =0x00BC3000 , + HwPfFecUl5g3I2MThreshReg =0x00BC3004 , + HwPfFecUl5g3VersionReg =0x00BC3100 , + HwPfFecUl5g3FcwStatusReg =0x00BC3104 , + HwPfFecUl5g3WarnReg =0x00BC3108 , + HwPfFecUl5g3IbDebugReg =0x00BC3200 , + HwPfFecUl5g3ObLlrDebugReg =0x00BC3204 , + HwPfFecUl5g3ObHarqDebugReg =0x00BC3208 , + HwPfFecUl5g4CntrlReg =0x00BC4000 , + HwPfFecUl5g4I2MThreshReg =0x00BC4004 , + HwPfFecUl5g4VersionReg =0x00BC4100 , + HwPfFecUl5g4FcwStatusReg =0x00BC4104 , + HwPfFecUl5g4WarnReg =0x00BC4108 , + HwPfFecUl5g4IbDebugReg =0x00BC4200 , + HwPfFecUl5g4ObLlrDebugReg =0x00BC4204 , + HwPfFecUl5g4ObHarqDebugReg =0x00BC4208 , + HwPfFecUl5g5CntrlReg =0x00BC5000 , + HwPfFecUl5g5I2MThreshReg =0x00BC5004 , + HwPfFecUl5g5VersionReg =0x00BC5100 , + HwPfFecUl5g5FcwStatusReg =0x00BC5104 , + HwPfFecUl5g5WarnReg =0x00BC5108 , + HwPfFecUl5g5IbDebugReg =0x00BC5200 , + HwPfFecUl5g5ObLlrDebugReg =0x00BC5204 , + HwPfFecUl5g5ObHarqDebugReg =0x00BC5208 , + HwPfFecUl5g6CntrlReg =0x00BC6000 , + HwPfFecUl5g6I2MThreshReg =0x00BC6004 , + HwPfFecUl5g6VersionReg =0x00BC6100 , + HwPfFecUl5g6FcwStatusReg =0x00BC6104 , + HwPfFecUl5g6WarnReg =0x00BC6108 , + HwPfFecUl5g6IbDebugReg =0x00BC6200 , + HwPfFecUl5g6ObLlrDebugReg =0x00BC6204 , + HwPfFecUl5g6ObHarqDebugReg =0x00BC6208 , + HwPfFecUl5g7CntrlReg =0x00BC7000 , + HwPfFecUl5g7I2MThreshReg =0x00BC7004 , + HwPfFecUl5g7VersionReg =0x00BC7100 , + HwPfFecUl5g7FcwStatusReg =0x00BC7104 , + HwPfFecUl5g7WarnReg =0x00BC7108 , + HwPfFecUl5g7IbDebugReg =0x00BC7200 , + HwPfFecUl5g7ObLlrDebugReg =0x00BC7204 , + HwPfFecUl5g7ObHarqDebugReg =0x00BC7208 , + HwPfFecUl5g8CntrlReg =0x00BC8000 , + HwPfFecUl5g8I2MThreshReg =0x00BC8004 , + HwPfFecUl5g8VersionReg =0x00BC8100 , + HwPfFecUl5g8FcwStatusReg =0x00BC8104 , + HwPfFecUl5g8WarnReg =0x00BC8108 , + HwPfFecUl5g8IbDebugReg =0x00BC8200 , + HwPfFecUl5g8ObLlrDebugReg =0x00BC8204 , + HwPfFecUl5g8ObHarqDebugReg =0x00BC8208 , + HWPfFecDl5gCntrlReg =0x00BCF000 , + HWPfFecDl5gI2MThreshReg =0x00BCF004 , + HWPfFecDl5gVersionReg =0x00BCF100 , + HWPfFecDl5gFcwStatusReg =0x00BCF104 , + HWPfFecDl5gWarnReg =0x00BCF108 , + HWPfFecUlVersionReg =0x00BD0000 , + HWPfFecUlControlReg =0x00BD0004 , + HWPfFecUlStatusReg =0x00BD0008 , + HWPfFecDlVersionReg =0x00BDF000 , + HWPfFecDlClusterConfigReg =0x00BDF004 , + HWPfFecDlBurstThres =0x00BDF00C , + HWPfFecDlClusterStatusReg0 =0x00BDF040 , + HWPfFecDlClusterStatusReg1 =0x00BDF044 , + HWPfFecDlClusterStatusReg2 =0x00BDF048 , + HWPfFecDlClusterStatusReg3 =0x00BDF04C , + HWPfFecDlClusterStatusReg4 =0x00BDF050 , + HWPfFecDlClusterStatusReg5 =0x00BDF054 , + HWPfChaFabPllPllrst =0x00C40000 , + HWPfChaFabPllClk0 =0x00C40004 , + HWPfChaFabPllClk1 =0x00C40008 , + HWPfChaFabPllBwadj =0x00C4000C , + HWPfChaFabPllLbw =0x00C40010 , + HWPfChaFabPllResetq =0x00C40014 , + HWPfChaFabPllPhshft0 =0x00C40018 , + HWPfChaFabPllPhshft1 =0x00C4001C , + HWPfChaFabPllDivq0 =0x00C40020 , + HWPfChaFabPllDivq1 =0x00C40024 , + HWPfChaFabPllDivq2 =0x00C40028 , + HWPfChaFabPllDivq3 =0x00C4002C , + HWPfChaFabPllDivq4 =0x00C40030 , + HWPfChaFabPllDivq5 =0x00C40034 , + HWPfChaFabPllDivq6 =0x00C40038 , + HWPfChaFabPllDivq7 =0x00C4003C , + HWPfChaDl5gPllPllrst =0x00C40080 , + HWPfChaDl5gPllClk0 =0x00C40084 , + HWPfChaDl5gPllClk1 =0x00C40088 , + HWPfChaDl5gPllBwadj =0x00C4008C , + HWPfChaDl5gPllLbw =0x00C40090 , + HWPfChaDl5gPllResetq =0x00C40094 , + HWPfChaDl5gPllPhshft0 =0x00C40098 , + HWPfChaDl5gPllPhshft1 =0x00C4009C , + HWPfChaDl5gPllDivq0 =0x00C400A0 , + HWPfChaDl5gPllDivq1 =0x00C400A4 , + HWPfChaDl5gPllDivq2 =0x00C400A8 , + HWPfChaDl5gPllDivq3 =0x00C400AC , + HWPfChaDl5gPllDivq4 =0x00C400B0 , + HWPfChaDl5gPllDivq5 =0x00C400B4 , + HWPfChaDl5gPllDivq6 =0x00C400B8 , + HWPfChaDl5gPllDivq7 =0x00C400BC , + HWPfChaDl4gPllPllrst =0x00C40100 , + HWPfChaDl4gPllClk0 =0x00C40104 , + HWPfChaDl4gPllClk1 =0x00C40108 , + HWPfChaDl4gPllBwadj =0x00C4010C , + HWPfChaDl4gPllLbw =0x00C40110 , + HWPfChaDl4gPllResetq =0x00C40114 , + HWPfChaDl4gPllPhshft0 =0x00C40118 , + HWPfChaDl4gPllPhshft1 =0x00C4011C , + HWPfChaDl4gPllDivq0 =0x00C40120 , + HWPfChaDl4gPllDivq1 =0x00C40124 , + HWPfChaDl4gPllDivq2 =0x00C40128 , + HWPfChaDl4gPllDivq3 =0x00C4012C , + HWPfChaDl4gPllDivq4 =0x00C40130 , + HWPfChaDl4gPllDivq5 =0x00C40134 , + HWPfChaDl4gPllDivq6 =0x00C40138 , + HWPfChaDl4gPllDivq7 =0x00C4013C , + HWPfChaUl5gPllPllrst =0x00C40180 , + HWPfChaUl5gPllClk0 =0x00C40184 , + HWPfChaUl5gPllClk1 =0x00C40188 , + HWPfChaUl5gPllBwadj =0x00C4018C , + HWPfChaUl5gPllLbw =0x00C40190 , + HWPfChaUl5gPllResetq =0x00C40194 , + HWPfChaUl5gPllPhshft0 =0x00C40198 , + HWPfChaUl5gPllPhshft1 =0x00C4019C , + HWPfChaUl5gPllDivq0 =0x00C401A0 , + HWPfChaUl5gPllDivq1 =0x00C401A4 , + HWPfChaUl5gPllDivq2 =0x00C401A8 , + HWPfChaUl5gPllDivq3 =0x00C401AC , + HWPfChaUl5gPllDivq4 =0x00C401B0 , + HWPfChaUl5gPllDivq5 =0x00C401B4 , + HWPfChaUl5gPllDivq6 =0x00C401B8 , + HWPfChaUl5gPllDivq7 =0x00C401BC , + HWPfChaUl4gPllPllrst =0x00C40200 , + HWPfChaUl4gPllClk0 =0x00C40204 , + HWPfChaUl4gPllClk1 =0x00C40208 , + HWPfChaUl4gPllBwadj =0x00C4020C , + HWPfChaUl4gPllLbw =0x00C40210 , + HWPfChaUl4gPllResetq =0x00C40214 , + HWPfChaUl4gPllPhshft0 =0x00C40218 , + HWPfChaUl4gPllPhshft1 =0x00C4021C , + HWPfChaUl4gPllDivq0 =0x00C40220 , + HWPfChaUl4gPllDivq1 =0x00C40224 , + HWPfChaUl4gPllDivq2 =0x00C40228 , + HWPfChaUl4gPllDivq3 =0x00C4022C , + HWPfChaUl4gPllDivq4 =0x00C40230 , + HWPfChaUl4gPllDivq5 =0x00C40234 , + HWPfChaUl4gPllDivq6 =0x00C40238 , + HWPfChaUl4gPllDivq7 =0x00C4023C , + HWPfChaDdrPllPllrst =0x00C40280 , + HWPfChaDdrPllClk0 =0x00C40284 , + HWPfChaDdrPllClk1 =0x00C40288 , + HWPfChaDdrPllBwadj =0x00C4028C , + HWPfChaDdrPllLbw =0x00C40290 , + HWPfChaDdrPllResetq =0x00C40294 , + HWPfChaDdrPllPhshft0 =0x00C40298 , + HWPfChaDdrPllPhshft1 =0x00C4029C , + HWPfChaDdrPllDivq0 =0x00C402A0 , + HWPfChaDdrPllDivq1 =0x00C402A4 , + HWPfChaDdrPllDivq2 =0x00C402A8 , + HWPfChaDdrPllDivq3 =0x00C402AC , + HWPfChaDdrPllDivq4 =0x00C402B0 , + HWPfChaDdrPllDivq5 =0x00C402B4 , + HWPfChaDdrPllDivq6 =0x00C402B8 , + HWPfChaDdrPllDivq7 =0x00C402BC , + HWPfChaErrStatus =0x00C40400 , + HWPfChaErrMask =0x00C40404 , + HWPfChaDebugPcieMsiFifo =0x00C40410 , + HWPfChaDebugDdrMsiFifo =0x00C40414 , + HWPfChaDebugMiscMsiFifo =0x00C40418 , + HWPfChaPwmSet =0x00C40420 , + HWPfChaDdrRstStatus =0x00C40430 , + HWPfChaDdrStDoneStatus =0x00C40434 , + HWPfChaDdrWbRstCfg =0x00C40438 , + HWPfChaDdrApbRstCfg =0x00C4043C , + HWPfChaDdrPhyRstCfg =0x00C40440 , + HWPfChaDdrCpuRstCfg =0x00C40444 , + HWPfChaDdrSifRstCfg =0x00C40448 , + HWPfChaPadcfgPcomp0 =0x00C41000 , + HWPfChaPadcfgNcomp0 =0x00C41004 , + HWPfChaPadcfgOdt0 =0x00C41008 , + HWPfChaPadcfgProtect0 =0x00C4100C , + HWPfChaPreemphasisProtect0 =0x00C41010 , + HWPfChaPreemphasisCompen0 =0x00C41040 , + HWPfChaPreemphasisOdten0 =0x00C41044 , + HWPfChaPadcfgPcomp1 =0x00C41100 , + HWPfChaPadcfgNcomp1 =0x00C41104 , + HWPfChaPadcfgOdt1 =0x00C41108 , + HWPfChaPadcfgProtect1 =0x00C4110C , + HWPfChaPreemphasisProtect1 =0x00C41110 , + HWPfChaPreemphasisCompen1 =0x00C41140 , + HWPfChaPreemphasisOdten1 =0x00C41144 , + HWPfChaPadcfgPcomp2 =0x00C41200 , + HWPfChaPadcfgNcomp2 =0x00C41204 , + HWPfChaPadcfgOdt2 =0x00C41208 , + HWPfChaPadcfgProtect2 =0x00C4120C , + HWPfChaPreemphasisProtect2 =0x00C41210 , + HWPfChaPreemphasisCompen2 =0x00C41240 , + HWPfChaPreemphasisOdten4 =0x00C41444 , + HWPfChaPreemphasisOdten2 =0x00C41244 , + HWPfChaPadcfgPcomp3 =0x00C41300 , + HWPfChaPadcfgNcomp3 =0x00C41304 , + HWPfChaPadcfgOdt3 =0x00C41308 , + HWPfChaPadcfgProtect3 =0x00C4130C , + HWPfChaPreemphasisProtect3 =0x00C41310 , + HWPfChaPreemphasisCompen3 =0x00C41340 , + HWPfChaPreemphasisOdten3 =0x00C41344 , + HWPfChaPadcfgPcomp4 =0x00C41400 , + HWPfChaPadcfgNcomp4 =0x00C41404 , + HWPfChaPadcfgOdt4 =0x00C41408 , + HWPfChaPadcfgProtect4 =0x00C4140C , + HWPfChaPreemphasisProtect4 =0x00C41410 , + HWPfChaPreemphasisCompen4 =0x00C41440 , + HWPfHiVfToPfDbellVf =0x00C80000 , + HWPfHiPfToVfDbellVf =0x00C80008 , + HWPfHiInfoRingBaseLoVf =0x00C80010 , + HWPfHiInfoRingBaseHiVf =0x00C80014 , + HWPfHiInfoRingPointerVf =0x00C80018 , + HWPfHiInfoRingIntWrEnVf =0x00C80020 , + HWPfHiInfoRingPf2VfWrEnVf =0x00C80024 , + HWPfHiMsixVectorMapperVf =0x00C80060 , + HWPfHiModuleVersionReg =0x00C84000 , + HWPfHiIosf2axiErrLogReg =0x00C84004 , + HWPfHiHardResetReg =0x00C84008 , + HWPfHi5GHardResetReg =0x00C8400C , + HWPfHiInfoRingBaseLoRegPf =0x00C84010 , + HWPfHiInfoRingBaseHiRegPf =0x00C84014 , + HWPfHiInfoRingPointerRegPf =0x00C84018 , + HWPfHiInfoRingIntWrEnRegPf =0x00C84020 , + HWPfHiInfoRingVf2pfLoWrEnReg =0x00C84024 , + HWPfHiInfoRingVf2pfHiWrEnReg =0x00C84028 , + HWPfHiLogParityErrStatusReg =0x00C8402C , + HWPfHiLogDataParityErrorVfStatusLo =0x00C84030 , + HWPfHiLogDataParityErrorVfStatusHi =0x00C84034 , + HWPfHiBlockTransmitOnErrorEn =0x00C84038 , + HWPfHiCfgMsiIntWrEnRegPf =0x00C84040 , + HWPfHiCfgMsiVf2pfLoWrEnReg =0x00C84044 , + HWPfHiCfgMsiVf2pfHighWrEnReg =0x00C84048 , + HWPfHiMsixVectorMapperPf =0x00C84060 , + HWPfHiApbWrWaitTime =0x00C84100 , + HWPfHiXCounterMaxValue =0x00C84104 , + HWPfHiPfMode =0x00C84108 , + HWPfHiClkGateHystReg =0x00C8410C , + HWPfHiSnoopBitsReg =0x00C84110 , + HWPfHiMsiDropEnableReg =0x00C84114 , + HWPfHiMsiStatReg =0x00C84120 , + HWPfHiFifoOflStatReg =0x00C84124 , + HWPfHiHiDebugReg =0x00C841F4 , + HWPfHiDebugMemSnoopMsiFifo =0x00C841F8 , + HWPfHiDebugMemSnoopInputFifo =0x00C841FC , + HWPfHiMsixMappingConfig =0x00C84200 , + HWPfHiJunkReg =0x00C8FF00 , + HWPfDdrUmmcVer =0x00D00000 , + HWPfDdrUmmcCap =0x00D00010 , + HWPfDdrUmmcCtrl =0x00D00020 , + HWPfDdrMpcPe =0x00D00080 , + HWPfDdrMpcPpri3 =0x00D00090 , + HWPfDdrMpcPpri2 =0x00D000A0 , + HWPfDdrMpcPpri1 =0x00D000B0 , + HWPfDdrMpcPpri0 =0x00D000C0 , + HWPfDdrMpcPrwgrpCtrl =0x00D000D0 , + HWPfDdrMpcPbw7 =0x00D000E0 , + HWPfDdrMpcPbw6 =0x00D000F0 , + HWPfDdrMpcPbw5 =0x00D00100 , + HWPfDdrMpcPbw4 =0x00D00110 , + HWPfDdrMpcPbw3 =0x00D00120 , + HWPfDdrMpcPbw2 =0x00D00130 , + HWPfDdrMpcPbw1 =0x00D00140 , + HWPfDdrMpcPbw0 =0x00D00150 , + HWPfDdrMemoryInit =0x00D00200 , + HWPfDdrMemoryInitDone =0x00D00210 , + HWPfDdrMemInitPhyTrng0 =0x00D00240 , + HWPfDdrMemInitPhyTrng1 =0x00D00250 , + HWPfDdrMemInitPhyTrng2 =0x00D00260 , + HWPfDdrMemInitPhyTrng3 =0x00D00270 , + HWPfDdrBcDram =0x00D003C0 , + HWPfDdrBcAddrMap =0x00D003D0 , + HWPfDdrBcRef =0x00D003E0 , + HWPfDdrBcTim0 =0x00D00400 , + HWPfDdrBcTim1 =0x00D00410 , + HWPfDdrBcTim2 =0x00D00420 , + HWPfDdrBcTim3 =0x00D00430 , + HWPfDdrBcTim4 =0x00D00440 , + HWPfDdrBcTim5 =0x00D00450 , + HWPfDdrBcTim6 =0x00D00460 , + HWPfDdrBcTim7 =0x00D00470 , + HWPfDdrBcTim8 =0x00D00480 , + HWPfDdrBcTim9 =0x00D00490 , + HWPfDdrBcTim10 =0x00D004A0 , + HWPfDdrBcTim12 =0x00D004C0 , + HWPfDdrDfiInit =0x00D004D0 , + HWPfDdrDfiInitComplete =0x00D004E0 , + HWPfDdrDfiTim0 =0x00D004F0 , + HWPfDdrDfiTim1 =0x00D00500 , + HWPfDdrDfiPhyUpdEn =0x00D00530 , + HWPfDdrMemStatus =0x00D00540 , + HWPfDdrUmmcErrStatus =0x00D00550 , + HWPfDdrUmmcIntStatus =0x00D00560 , + HWPfDdrUmmcIntEn =0x00D00570 , + HWPfDdrPhyRdLatency =0x00D48400 , + HWPfDdrPhyRdLatencyDbi =0x00D48410 , + HWPfDdrPhyWrLatency =0x00D48420 , + HWPfDdrPhyTrngType =0x00D48430 , + HWPfDdrPhyMrsTiming2 =0x00D48440 , + HWPfDdrPhyMrsTiming0 =0x00D48450 , + HWPfDdrPhyMrsTiming1 =0x00D48460 , + HWPfDdrPhyDramTmrd =0x00D48470 , + HWPfDdrPhyDramTmod =0x00D48480 , + HWPfDdrPhyDramTwpre =0x00D48490 , + HWPfDdrPhyDramTrfc =0x00D484A0 , + HWPfDdrPhyDramTrwtp =0x00D484B0 , + HWPfDdrPhyMr01Dimm =0x00D484C0 , + HWPfDdrPhyMr01DimmDbi =0x00D484D0 , + HWPfDdrPhyMr23Dimm =0x00D484E0 , + HWPfDdrPhyMr45Dimm =0x00D484F0 , + HWPfDdrPhyMr67Dimm =0x00D48500 , + HWPfDdrPhyWrlvlWwRdlvlRr =0x00D48510 , + HWPfDdrPhyOdtEn =0x00D48520 , + HWPfDdrPhyFastTrng =0x00D48530 , + HWPfDdrPhyDynTrngGap =0x00D48540 , + HWPfDdrPhyDynRcalGap =0x00D48550 , + HWPfDdrPhyIdletimeout =0x00D48560 , + HWPfDdrPhyRstCkeGap =0x00D48570 , + HWPfDdrPhyCkeMrsGap =0x00D48580 , + HWPfDdrPhyMemVrefMidVal =0x00D48590 , + HWPfDdrPhyVrefStep =0x00D485A0 , + HWPfDdrPhyVrefThreshold =0x00D485B0 , + HWPfDdrPhyPhyVrefMidVal =0x00D485C0 , + HWPfDdrPhyDqsCountMax =0x00D485D0 , + HWPfDdrPhyDqsCountNum =0x00D485E0 , + HWPfDdrPhyDramRow =0x00D485F0 , + HWPfDdrPhyDramCol =0x00D48600 , + HWPfDdrPhyDramBgBa =0x00D48610 , + HWPfDdrPhyDynamicUpdreqrel =0x00D48620 , + HWPfDdrPhyVrefLimits =0x00D48630 , + HWPfDdrPhyIdtmTcStatus =0x00D6C020 , + HWPfDdrPhyIdtmFwVersion =0x00D6C410 , + HWPfDdrPhyRdlvlGateInitDelay =0x00D70000 , + HWPfDdrPhyRdenSmplabc =0x00D70008 , + HWPfDdrPhyVrefNibble0 =0x00D7000C , + HWPfDdrPhyVrefNibble1 =0x00D70010 , + HWPfDdrPhyRdlvlGateDqsSmpl0 =0x00D70014 , + HWPfDdrPhyRdlvlGateDqsSmpl1 =0x00D70018 , + HWPfDdrPhyRdlvlGateDqsSmpl2 =0x00D7001C , + HWPfDdrPhyDqsCount =0x00D70020 , + HWPfDdrPhyWrlvlRdlvlGateStatus =0x00D70024 , + HWPfDdrPhyErrorFlags =0x00D70028 , + HWPfDdrPhyPowerDown =0x00D70030 , + HWPfDdrPhyPrbsSeedByte0 =0x00D70034 , + HWPfDdrPhyPrbsSeedByte1 =0x00D70038 , + HWPfDdrPhyPcompDq =0x00D70040 , + HWPfDdrPhyNcompDq =0x00D70044 , + HWPfDdrPhyPcompDqs =0x00D70048 , + HWPfDdrPhyNcompDqs =0x00D7004C , + HWPfDdrPhyPcompCmd =0x00D70050 , + HWPfDdrPhyNcompCmd =0x00D70054 , + HWPfDdrPhyPcompCk =0x00D70058 , + HWPfDdrPhyNcompCk =0x00D7005C , + HWPfDdrPhyRcalOdtDq =0x00D70060 , + HWPfDdrPhyRcalOdtDqs =0x00D70064 , + HWPfDdrPhyRcalMask1 =0x00D70068 , + HWPfDdrPhyRcalMask2 =0x00D7006C , + HWPfDdrPhyRcalCtrl =0x00D70070 , + HWPfDdrPhyRcalCnt =0x00D70074 , + HWPfDdrPhyRcalOverride =0x00D70078 , + HWPfDdrPhyRcalGateen =0x00D7007C , + HWPfDdrPhyCtrl =0x00D70080 , + HWPfDdrPhyWrlvlAlg =0x00D70084 , + HWPfDdrPhyRcalVreftTxcmdOdt =0x00D70088 , + HWPfDdrPhyRdlvlGateParam =0x00D7008C , + HWPfDdrPhyRdlvlGateParam2 =0x00D70090 , + HWPfDdrPhyRcalVreftTxdata =0x00D70094 , + HWPfDdrPhyCmdIntDelay =0x00D700A4 , + HWPfDdrPhyAlertN =0x00D700A8 , + HWPfDdrPhyTrngReqWpre2tck =0x00D700AC , + HWPfDdrPhyCmdPhaseSel =0x00D700B4 , + HWPfDdrPhyCmdDcdl =0x00D700B8 , + HWPfDdrPhyCkDcdl =0x00D700BC , + HWPfDdrPhySwTrngCtrl1 =0x00D700C0 , + HWPfDdrPhySwTrngCtrl2 =0x00D700C4 , + HWPfDdrPhyRcalPcompRden =0x00D700C8 , + HWPfDdrPhyRcalNcompRden =0x00D700CC , + HWPfDdrPhyRcalCompen =0x00D700D0 , + HWPfDdrPhySwTrngRdqs =0x00D700D4 , + HWPfDdrPhySwTrngWdqs =0x00D700D8 , + HWPfDdrPhySwTrngRdena =0x00D700DC , + HWPfDdrPhySwTrngRdenb =0x00D700E0 , + HWPfDdrPhySwTrngRdenc =0x00D700E4 , + HWPfDdrPhySwTrngWdq =0x00D700E8 , + HWPfDdrPhySwTrngRdq =0x00D700EC , + HWPfDdrPhyPcfgHmValue =0x00D700F0 , + HWPfDdrPhyPcfgTimerValue =0x00D700F4 , + HWPfDdrPhyPcfgSoftwareTraining =0x00D700F8 , + HWPfDdrPhyPcfgMcStatus =0x00D700FC , + HWPfDdrPhyWrlvlPhRank0 =0x00D70100 , + HWPfDdrPhyRdenPhRank0 =0x00D70104 , + HWPfDdrPhyRdenIntRank0 =0x00D70108 , + HWPfDdrPhyRdqsDcdlRank0 =0x00D7010C , + HWPfDdrPhyRdqsShadowDcdlRank0 =0x00D70110 , + HWPfDdrPhyWdqsDcdlRank0 =0x00D70114 , + HWPfDdrPhyWdmDcdlShadowRank0 =0x00D70118 , + HWPfDdrPhyWdmDcdlRank0 =0x00D7011C , + HWPfDdrPhyDbiDcdlRank0 =0x00D70120 , + HWPfDdrPhyRdenDcdlaRank0 =0x00D70124 , + HWPfDdrPhyDbiDcdlShadowRank0 =0x00D70128 , + HWPfDdrPhyRdenDcdlbRank0 =0x00D7012C , + HWPfDdrPhyWdqsShadowDcdlRank0 =0x00D70130 , + HWPfDdrPhyRdenDcdlcRank0 =0x00D70134 , + HWPfDdrPhyRdenShadowDcdlaRank0 =0x00D70138 , + HWPfDdrPhyWrlvlIntRank0 =0x00D7013C , + HWPfDdrPhyRdqDcdlBit0Rank0 =0x00D70200 , + HWPfDdrPhyRdqDcdlShadowBit0Rank0 =0x00D70204 , + HWPfDdrPhyWdqDcdlBit0Rank0 =0x00D70208 , + HWPfDdrPhyWdqDcdlShadowBit0Rank0 =0x00D7020C , + HWPfDdrPhyRdqDcdlBit1Rank0 =0x00D70240 , + HWPfDdrPhyRdqDcdlShadowBit1Rank0 =0x00D70244 , + HWPfDdrPhyWdqDcdlBit1Rank0 =0x00D70248 , + HWPfDdrPhyWdqDcdlShadowBit1Rank0 =0x00D7024C , + HWPfDdrPhyRdqDcdlBit2Rank0 =0x00D70280 , + HWPfDdrPhyRdqDcdlShadowBit2Rank0 =0x00D70284 , + HWPfDdrPhyWdqDcdlBit2Rank0 =0x00D70288 , + HWPfDdrPhyWdqDcdlShadowBit2Rank0 =0x00D7028C , + HWPfDdrPhyRdqDcdlBit3Rank0 =0x00D702C0 , + HWPfDdrPhyRdqDcdlShadowBit3Rank0 =0x00D702C4 , + HWPfDdrPhyWdqDcdlBit3Rank0 =0x00D702C8 , + HWPfDdrPhyWdqDcdlShadowBit3Rank0 =0x00D702CC , + HWPfDdrPhyRdqDcdlBit4Rank0 =0x00D70300 , + HWPfDdrPhyRdqDcdlShadowBit4Rank0 =0x00D70304 , + HWPfDdrPhyWdqDcdlBit4Rank0 =0x00D70308 , + HWPfDdrPhyWdqDcdlShadowBit4Rank0 =0x00D7030C , + HWPfDdrPhyRdqDcdlBit5Rank0 =0x00D70340 , + HWPfDdrPhyRdqDcdlShadowBit5Rank0 =0x00D70344 , + HWPfDdrPhyWdqDcdlBit5Rank0 =0x00D70348 , + HWPfDdrPhyWdqDcdlShadowBit5Rank0 =0x00D7034C , + HWPfDdrPhyRdqDcdlBit6Rank0 =0x00D70380 , + HWPfDdrPhyRdqDcdlShadowBit6Rank0 =0x00D70384 , + HWPfDdrPhyWdqDcdlBit6Rank0 =0x00D70388 , + HWPfDdrPhyWdqDcdlShadowBit6Rank0 =0x00D7038C , + HWPfDdrPhyRdqDcdlBit7Rank0 =0x00D703C0 , + HWPfDdrPhyRdqDcdlShadowBit7Rank0 =0x00D703C4 , + HWPfDdrPhyWdqDcdlBit7Rank0 =0x00D703C8 , + HWPfDdrPhyWdqDcdlShadowBit7Rank0 =0x00D703CC , + HWPfDdrPhyIdtmStatus =0x00D740D0 , + HWPfDdrPhyIdtmError =0x00D74110 , + HWPfDdrPhyIdtmDebug =0x00D74120 , + HWPfDdrPhyIdtmDebugInt =0x00D74130 , + HwPfPcieLnAsicCfgovr =0x00D80000 , + HwPfPcieLnAclkmixer =0x00D80004 , + HwPfPcieLnTxrampfreq =0x00D80008 , + HwPfPcieLnLanetest =0x00D8000C , + HwPfPcieLnDcctrl =0x00D80010 , + HwPfPcieLnDccmeas =0x00D80014 , + HwPfPcieLnDccovrAclk =0x00D80018 , + HwPfPcieLnDccovrTxa =0x00D8001C , + HwPfPcieLnDccovrTxk =0x00D80020 , + HwPfPcieLnDccovrDclk =0x00D80024 , + HwPfPcieLnDccovrEclk =0x00D80028 , + HwPfPcieLnDcctrimAclk =0x00D8002C , + HwPfPcieLnDcctrimTx =0x00D80030 , + HwPfPcieLnDcctrimDclk =0x00D80034 , + HwPfPcieLnDcctrimEclk =0x00D80038 , + HwPfPcieLnQuadCtrl =0x00D8003C , + HwPfPcieLnQuadCorrIndex =0x00D80040 , + HwPfPcieLnQuadCorrStatus =0x00D80044 , + HwPfPcieLnAsicRxovr1 =0x00D80048 , + HwPfPcieLnAsicRxovr2 =0x00D8004C , + HwPfPcieLnAsicEqinfovr =0x00D80050 , + HwPfPcieLnRxcsr =0x00D80054 , + HwPfPcieLnRxfectrl =0x00D80058 , + HwPfPcieLnRxtest =0x00D8005C , + HwPfPcieLnEscount =0x00D80060 , + HwPfPcieLnCdrctrl =0x00D80064 , + HwPfPcieLnCdrctrl2 =0x00D80068 , + HwPfPcieLnCdrcfg0Ctrl0 =0x00D8006C , + HwPfPcieLnCdrcfg0Ctrl1 =0x00D80070 , + HwPfPcieLnCdrcfg0Ctrl2 =0x00D80074 , + HwPfPcieLnCdrcfg1Ctrl0 =0x00D80078 , + HwPfPcieLnCdrcfg1Ctrl1 =0x00D8007C , + HwPfPcieLnCdrcfg1Ctrl2 =0x00D80080 , + HwPfPcieLnCdrcfg2Ctrl0 =0x00D80084 , + HwPfPcieLnCdrcfg2Ctrl1 =0x00D80088 , + HwPfPcieLnCdrcfg2Ctrl2 =0x00D8008C , + HwPfPcieLnCdrcfg3Ctrl0 =0x00D80090 , + HwPfPcieLnCdrcfg3Ctrl1 =0x00D80094 , + HwPfPcieLnCdrcfg3Ctrl2 =0x00D80098 , + HwPfPcieLnCdrphase =0x00D8009C , + HwPfPcieLnCdrfreq =0x00D800A0 , + HwPfPcieLnCdrstatusPhase =0x00D800A4 , + HwPfPcieLnCdrstatusFreq =0x00D800A8 , + HwPfPcieLnCdroffset =0x00D800AC , + HwPfPcieLnRxvosctl =0x00D800B0 , + HwPfPcieLnRxvosctl2 =0x00D800B4 , + HwPfPcieLnRxlosctl =0x00D800B8 , + HwPfPcieLnRxlos =0x00D800BC , + HwPfPcieLnRxlosvval =0x00D800C0 , + HwPfPcieLnRxvosd0 =0x00D800C4 , + HwPfPcieLnRxvosd1 =0x00D800C8 , + HwPfPcieLnRxvosep0 =0x00D800CC , + HwPfPcieLnRxvosep1 =0x00D800D0 , + HwPfPcieLnRxvosen0 =0x00D800D4 , + HwPfPcieLnRxvosen1 =0x00D800D8 , + HwPfPcieLnRxvosafe =0x00D800DC , + HwPfPcieLnRxvosa0 =0x00D800E0 , + HwPfPcieLnRxvosa0Out =0x00D800E4 , + HwPfPcieLnRxvosa1 =0x00D800E8 , + HwPfPcieLnRxvosa1Out =0x00D800EC , + HwPfPcieLnRxmisc =0x00D800F0 , + HwPfPcieLnRxbeacon =0x00D800F4 , + HwPfPcieLnRxdssout =0x00D800F8 , + HwPfPcieLnRxdssout2 =0x00D800FC , + HwPfPcieLnAlphapctrl =0x00D80100 , + HwPfPcieLnAlphanctrl =0x00D80104 , + HwPfPcieLnAdaptctrl =0x00D80108 , + HwPfPcieLnAdaptctrl1 =0x00D8010C , + HwPfPcieLnAdaptstatus =0x00D80110 , + HwPfPcieLnAdaptvga1 =0x00D80114 , + HwPfPcieLnAdaptvga2 =0x00D80118 , + HwPfPcieLnAdaptvga3 =0x00D8011C , + HwPfPcieLnAdaptvga4 =0x00D80120 , + HwPfPcieLnAdaptboost1 =0x00D80124 , + HwPfPcieLnAdaptboost2 =0x00D80128 , + HwPfPcieLnAdaptboost3 =0x00D8012C , + HwPfPcieLnAdaptboost4 =0x00D80130 , + HwPfPcieLnAdaptsslms1 =0x00D80134 , + HwPfPcieLnAdaptsslms2 =0x00D80138 , + HwPfPcieLnAdaptvgaStatus =0x00D8013C , + HwPfPcieLnAdaptboostStatus =0x00D80140 , + HwPfPcieLnAdaptsslmsStatus1 =0x00D80144 , + HwPfPcieLnAdaptsslmsStatus2 =0x00D80148 , + HwPfPcieLnAfectrl1 =0x00D8014C , + HwPfPcieLnAfectrl2 =0x00D80150 , + HwPfPcieLnAfectrl3 =0x00D80154 , + HwPfPcieLnAfedefault1 =0x00D80158 , + HwPfPcieLnAfedefault2 =0x00D8015C , + HwPfPcieLnDfectrl1 =0x00D80160 , + HwPfPcieLnDfectrl2 =0x00D80164 , + HwPfPcieLnDfectrl3 =0x00D80168 , + HwPfPcieLnDfectrl4 =0x00D8016C , + HwPfPcieLnDfectrl5 =0x00D80170 , + HwPfPcieLnDfectrl6 =0x00D80174 , + HwPfPcieLnAfestatus1 =0x00D80178 , + HwPfPcieLnAfestatus2 =0x00D8017C , + HwPfPcieLnDfestatus1 =0x00D80180 , + HwPfPcieLnDfestatus2 =0x00D80184 , + HwPfPcieLnDfestatus3 =0x00D80188 , + HwPfPcieLnDfestatus4 =0x00D8018C , + HwPfPcieLnDfestatus5 =0x00D80190 , + HwPfPcieLnAlphastatus =0x00D80194 , + HwPfPcieLnFomctrl1 =0x00D80198 , + HwPfPcieLnFomctrl2 =0x00D8019C , + HwPfPcieLnFomctrl3 =0x00D801A0 , + HwPfPcieLnAclkcalStatus =0x00D801A4 , + HwPfPcieLnOffscorrStatus =0x00D801A8 , + HwPfPcieLnEyewidthStatus =0x00D801AC , + HwPfPcieLnEyeheightStatus =0x00D801B0 , + HwPfPcieLnAsicTxovr1 =0x00D801B4 , + HwPfPcieLnAsicTxovr2 =0x00D801B8 , + HwPfPcieLnAsicTxovr3 =0x00D801BC , + HwPfPcieLnTxbiasadjOvr =0x00D801C0 , + HwPfPcieLnTxcsr =0x00D801C4 , + HwPfPcieLnTxtest =0x00D801C8 , + HwPfPcieLnTxtestword =0x00D801CC , + HwPfPcieLnTxtestwordHigh =0x00D801D0 , + HwPfPcieLnTxdrive =0x00D801D4 , + HwPfPcieLnMtcsLn =0x00D801D8 , + HwPfPcieLnStatsumLn =0x00D801DC , + HwPfPcieLnRcbusScratch =0x00D801E0 , + HwPfPcieLnRcbusMinorrev =0x00D801F0 , + HwPfPcieLnRcbusMajorrev =0x00D801F4 , + HwPfPcieLnRcbusBlocktype =0x00D801F8 , + HwPfPcieSupPllcsr =0x00D80800 , + HwPfPcieSupPlldiv =0x00D80804 , + HwPfPcieSupPllcal =0x00D80808 , + HwPfPcieSupPllcalsts =0x00D8080C , + HwPfPcieSupPllmeas =0x00D80810 , + HwPfPcieSupPlldactrim =0x00D80814 , + HwPfPcieSupPllbiastrim =0x00D80818 , + HwPfPcieSupPllbwtrim =0x00D8081C , + HwPfPcieSupPllcaldly =0x00D80820 , + HwPfPcieSupRefclkonpclkctrl =0x00D80824 , + HwPfPcieSupPclkdelay =0x00D80828 , + HwPfPcieSupPhyconfig =0x00D8082C , + HwPfPcieSupRcalIntf =0x00D80830 , + HwPfPcieSupAuxcsr =0x00D80834 , + HwPfPcieSupVref =0x00D80838 , + HwPfPcieSupLinkmode =0x00D8083C , + HwPfPcieSupRrefcalctl =0x00D80840 , + HwPfPcieSupRrefcal =0x00D80844 , + HwPfPcieSupRrefcaldly =0x00D80848 , + HwPfPcieSupTximpcalctl =0x00D8084C , + HwPfPcieSupTximpcal =0x00D80850 , + HwPfPcieSupTximpoffset =0x00D80854 , + HwPfPcieSupTximpcaldly =0x00D80858 , + HwPfPcieSupRximpcalctl =0x00D8085C , + HwPfPcieSupRximpcal =0x00D80860 , + HwPfPcieSupRximpoffset =0x00D80864 , + HwPfPcieSupRximpcaldly =0x00D80868 , + HwPfPcieSupFence =0x00D8086C , + HwPfPcieSupMtcs =0x00D80870 , + HwPfPcieSupStatsum =0x00D809B8 , + HwPfPciePcsDpStatus0 =0x00D81000 , + HwPfPciePcsDpControl0 =0x00D81004 , + HwPfPciePcsPmaStatusLane0 =0x00D81008 , + HwPfPciePcsPipeStatusLane0 =0x00D8100C , + HwPfPciePcsTxdeemph0Lane0 =0x00D81010 , + HwPfPciePcsTxdeemph1Lane0 =0x00D81014 , + HwPfPciePcsInternalStatusLane0 =0x00D81018 , + HwPfPciePcsDpStatus1 =0x00D8101C , + HwPfPciePcsDpControl1 =0x00D81020 , + HwPfPciePcsPmaStatusLane1 =0x00D81024 , + HwPfPciePcsPipeStatusLane1 =0x00D81028 , + HwPfPciePcsTxdeemph0Lane1 =0x00D8102C , + HwPfPciePcsTxdeemph1Lane1 =0x00D81030 , + HwPfPciePcsInternalStatusLane1 =0x00D81034 , + HwPfPciePcsDpStatus2 =0x00D81038 , + HwPfPciePcsDpControl2 =0x00D8103C , + HwPfPciePcsPmaStatusLane2 =0x00D81040 , + HwPfPciePcsPipeStatusLane2 =0x00D81044 , + HwPfPciePcsTxdeemph0Lane2 =0x00D81048 , + HwPfPciePcsTxdeemph1Lane2 =0x00D8104C , + HwPfPciePcsInternalStatusLane2 =0x00D81050 , + HwPfPciePcsDpStatus3 =0x00D81054 , + HwPfPciePcsDpControl3 =0x00D81058 , + HwPfPciePcsPmaStatusLane3 =0x00D8105C , + HwPfPciePcsPipeStatusLane3 =0x00D81060 , + HwPfPciePcsTxdeemph0Lane3 =0x00D81064 , + HwPfPciePcsTxdeemph1Lane3 =0x00D81068 , + HwPfPciePcsInternalStatusLane3 =0x00D8106C , + HwPfPciePcsEbStatus0 =0x00D81070 , + HwPfPciePcsEbStatus1 =0x00D81074 , + HwPfPciePcsEbStatus2 =0x00D81078 , + HwPfPciePcsEbStatus3 =0x00D8107C , + HwPfPciePcsPllSettingPcieG1 =0x00D81088 , + HwPfPciePcsPllSettingPcieG2 =0x00D8108C , + HwPfPciePcsPllSettingPcieG3 =0x00D81090 , + HwPfPciePcsControl =0x00D81094 , + HwPfPciePcsEqControl =0x00D81098 , + HwPfPciePcsEqTimer =0x00D8109C , + HwPfPciePcsEqErrStatus =0x00D810A0 , + HwPfPciePcsEqErrCount =0x00D810A4 , + HwPfPciePcsStatus =0x00D810A8 , + HwPfPciePcsMiscRegister =0x00D810AC , + HwPfPciePcsObsControl =0x00D810B0 , + HwPfPciePcsPrbsCount0 =0x00D81200 , + HwPfPciePcsBistControl0 =0x00D81204 , + HwPfPciePcsBistStaticWord00 =0x00D81208 , + HwPfPciePcsBistStaticWord10 =0x00D8120C , + HwPfPciePcsBistStaticWord20 =0x00D81210 , + HwPfPciePcsBistStaticWord30 =0x00D81214 , + HwPfPciePcsPrbsCount1 =0x00D81220 , + HwPfPciePcsBistControl1 =0x00D81224 , + HwPfPciePcsBistStaticWord01 =0x00D81228 , + HwPfPciePcsBistStaticWord11 =0x00D8122C , + HwPfPciePcsBistStaticWord21 =0x00D81230 , + HwPfPciePcsBistStaticWord31 =0x00D81234 , + HwPfPciePcsPrbsCount2 =0x00D81240 , + HwPfPciePcsBistControl2 =0x00D81244 , + HwPfPciePcsBistStaticWord02 =0x00D81248 , + HwPfPciePcsBistStaticWord12 =0x00D8124C , + HwPfPciePcsBistStaticWord22 =0x00D81250 , + HwPfPciePcsBistStaticWord32 =0x00D81254 , + HwPfPciePcsPrbsCount3 =0x00D81260 , + HwPfPciePcsBistControl3 =0x00D81264 , + HwPfPciePcsBistStaticWord03 =0x00D81268 , + HwPfPciePcsBistStaticWord13 =0x00D8126C , + HwPfPciePcsBistStaticWord23 =0x00D81270 , + HwPfPciePcsBistStaticWord33 =0x00D81274 , + HwPfPcieGpexLtssmStateCntrl =0x00D90400 , + HwPfPcieGpexLtssmStateStatus =0x00D90404 , + HwPfPcieGpexSkipFreqTimer =0x00D90408 , + HwPfPcieGpexLaneSelect =0x00D9040C , + HwPfPcieGpexLaneDeskew =0x00D90410 , + HwPfPcieGpexRxErrorStatus =0x00D90414 , + HwPfPcieGpexLaneNumControl =0x00D90418 , + HwPfPcieGpexNFstControl =0x00D9041C , + HwPfPcieGpexLinkStatus =0x00D90420 , + HwPfPcieGpexAckReplayTimeout =0x00D90438 , + HwPfPcieGpexSeqNumberStatus =0x00D9043C , + HwPfPcieGpexCoreClkRatio =0x00D90440 , + HwPfPcieGpexDllTholdControl =0x00D90448 , + HwPfPcieGpexPmTimer =0x00D90450 , + HwPfPcieGpexPmeTimeout =0x00D90454 , + HwPfPcieGpexAspmL1Timer =0x00D90458 , + HwPfPcieGpexAspmReqTimer =0x00D9045C , + HwPfPcieGpexAspmL1Dis =0x00D90460 , + HwPfPcieGpexAdvisoryErrorControl =0x00D90468 , + HwPfPcieGpexId =0x00D90470 , + HwPfPcieGpexClasscode =0x00D90474 , + HwPfPcieGpexSubsystemId =0x00D90478 , + HwPfPcieGpexDeviceCapabilities =0x00D9047C , + HwPfPcieGpexLinkCapabilities =0x00D90480 , + HwPfPcieGpexFunctionNumber =0x00D90484 , + HwPfPcieGpexPmCapabilities =0x00D90488 , + HwPfPcieGpexFunctionSelect =0x00D9048C , + HwPfPcieGpexErrorCounter =0x00D904AC , + HwPfPcieGpexConfigReady =0x00D904B0 , + HwPfPcieGpexFcUpdateTimeout =0x00D904B8 , + HwPfPcieGpexFcUpdateTimer =0x00D904BC , + HwPfPcieGpexVcBufferLoad =0x00D904C8 , + HwPfPcieGpexVcBufferSizeThold =0x00D904CC , + HwPfPcieGpexVcBufferSelect =0x00D904D0 , + HwPfPcieGpexBarEnable =0x00D904D4 , + HwPfPcieGpexBarDwordLower =0x00D904D8 , + HwPfPcieGpexBarDwordUpper =0x00D904DC , + HwPfPcieGpexBarSelect =0x00D904E0 , + HwPfPcieGpexCreditCounterSelect =0x00D904E4 , + HwPfPcieGpexCreditCounterStatus =0x00D904E8 , + HwPfPcieGpexTlpHeaderSelect =0x00D904EC , + HwPfPcieGpexTlpHeaderDword0 =0x00D904F0 , + HwPfPcieGpexTlpHeaderDword1 =0x00D904F4 , + HwPfPcieGpexTlpHeaderDword2 =0x00D904F8 , + HwPfPcieGpexTlpHeaderDword3 =0x00D904FC , + HwPfPcieGpexRelaxOrderControl =0x00D90500 , + HwPfPcieGpexBarPrefetch =0x00D90504 , + HwPfPcieGpexFcCheckControl =0x00D90508 , + HwPfPcieGpexFcUpdateTimerTraffic =0x00D90518 , + HwPfPcieGpexPhyControl0 =0x00D9053C , + HwPfPcieGpexPhyControl1 =0x00D90544 , + HwPfPcieGpexPhyControl2 =0x00D9054C , + HwPfPcieGpexUserControl0 =0x00D9055C , + HwPfPcieGpexUncorrErrorStatus =0x00D905F0 , + HwPfPcieGpexRxCplError =0x00D90620 , + HwPfPcieGpexRxCplErrorDword0 =0x00D90624 , + HwPfPcieGpexRxCplErrorDword1 =0x00D90628 , + HwPfPcieGpexRxCplErrorDword2 =0x00D9062C , + HwPfPcieGpexPabSwResetEn =0x00D90630 , + HwPfPcieGpexGen3Control0 =0x00D90634 , + HwPfPcieGpexGen3Control1 =0x00D90638 , + HwPfPcieGpexGen3Control2 =0x00D9063C , + HwPfPcieGpexGen2ControlCsr =0x00D90640 , + HwPfPcieGpexTotalVfInitialVf0 =0x00D90644 , + HwPfPcieGpexTotalVfInitialVf1 =0x00D90648 , + HwPfPcieGpexSriovLinkDevId0 =0x00D90684 , + HwPfPcieGpexSriovLinkDevId1 =0x00D90688 , + HwPfPcieGpexSriovPageSize0 =0x00D906C4 , + HwPfPcieGpexSriovPageSize1 =0x00D906C8 , + HwPfPcieGpexIdVersion =0x00D906FC , + HwPfPcieGpexSriovVfOffsetStride0 =0x00D90704 , + HwPfPcieGpexSriovVfOffsetStride1 =0x00D90708 , + HwPfPcieGpexGen3DeskewControl =0x00D907B4 , + HwPfPcieGpexGen3EqControl =0x00D907B8 , + HwPfPcieGpexBridgeVersion =0x00D90800 , + HwPfPcieGpexBridgeCapability =0x00D90804 , + HwPfPcieGpexBridgeControl =0x00D90808 , + HwPfPcieGpexBridgeStatus =0x00D9080C , + HwPfPcieGpexEngineActivityStatus =0x00D9081C , + HwPfPcieGpexEngineResetControl =0x00D90820 , + HwPfPcieGpexAxiPioControl =0x00D90840 , + HwPfPcieGpexAxiPioStatus =0x00D90844 , + HwPfPcieGpexAmbaSlaveCmdStatus =0x00D90848 , + HwPfPcieGpexPexPioControl =0x00D908C0 , + HwPfPcieGpexPexPioStatus =0x00D908C4 , + HwPfPcieGpexAmbaMasterStatus =0x00D908C8 , + HwPfPcieGpexCsrSlaveCmdStatus =0x00D90920 , + HwPfPcieGpexMailboxAxiControl =0x00D90A50 , + HwPfPcieGpexMailboxAxiData =0x00D90A54 , + HwPfPcieGpexMailboxPexControl =0x00D90A90 , + HwPfPcieGpexMailboxPexData =0x00D90A94 , + HwPfPcieGpexPexInterruptEnable =0x00D90AD0 , + HwPfPcieGpexPexInterruptStatus =0x00D90AD4 , + HwPfPcieGpexPexInterruptAxiPioVector =0x00D90AD8 , + HwPfPcieGpexPexInterruptPexPioVector =0x00D90AE0 , + HwPfPcieGpexPexInterruptMiscVector =0x00D90AF8 , + HwPfPcieGpexAmbaInterruptPioEnable =0x00D90B00 , + HwPfPcieGpexAmbaInterruptMiscEnable =0x00D90B0C , + HwPfPcieGpexAmbaInterruptPioStatus =0x00D90B10 , + HwPfPcieGpexAmbaInterruptMiscStatus =0x00D90B1C , + HwPfPcieGpexPexPmControl =0x00D90B80 , + HwPfPcieGpexSlotMisc =0x00D90B88 , + HwPfPcieGpexAxiAddrMappingControl =0x00D90BA0 , + HwPfPcieGpexAxiAddrMappingWindowAxiBase =0x00D90BA4 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseLow =0x00D90BA8 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseHigh =0x00D90BAC , + HwPfPcieGpexPexBarAddrFunc0Bar0 =0x00D91BA0 , + HwPfPcieGpexPexBarAddrFunc0Bar1 =0x00D91BA4 , + HwPfPcieGpexAxiAddrMappingPcieHdrParam =0x00D95BA0 , + HwPfPcieGpexExtAxiAddrMappingAxiBase =0x00D980A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar0 =0x00D984A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar1 =0x00D984A4 , + HwPfPcieGpexAmbaInterruptFlrEnable =0x00D9B960 , + HwPfPcieGpexAmbaInterruptFlrStatus =0x00D9B9A0 , + HwPfPcieGpexExtAxiAddrMappingSize =0x00D9BAF0 , + HwPfPcieGpexPexPioAwcacheControl =0x00D9C300 , + HwPfPcieGpexPexPioArcacheControl =0x00D9C304 , + HwPfPcieGpexPabObSizeControlVc0 =0x00D9C310 +}; + +/* TIP PF Interrupt numbers */ +enum { +ACC100_PF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_PF_INT_DOORBELL_VF_2_PF =1 , +ACC100_PF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_PF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_PF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_PF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_PF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_PF_INT_ILLEGAL_FORMAT =7 , +ACC100_PF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_PF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +ACC100_PF_INT_ARAM_ACCESS_ERR =10 , +ACC100_PF_INT_ARAM_ECC_1BIT_ERR =11 , +ACC100_PF_INT_PARITY_ERR =12 , +ACC100_PF_INT_QMGR_ERR =13 , +ACC100_PF_INT_INT_REQ_OVERFLOW =14 , +ACC100_PF_INT_APB_TIMEOUT =15 , +}; + +#endif /* ACC100_PF_ENUM_H */
drivers/baseband/acc100/acc100_vf_enum.h new file +73 -0
73 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h +490 -0
502 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH v8 3/10 baseband/acc100: add info get function
In reply to Nicolas ChautruAdd in the "info_get" function to the driver, to allow us to query the device.
No processing capability are available yet.
Linking bbdev-test to support the PMD with null capability.
--- app/test-bbdev/meson.build | 3 + drivers/baseband/acc100/rte_acc100_cfg.h | 96 +++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.c | 225 +++++++++++++++++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 3 + 4 files changed, 327 insertions(+) create mode 100644 drivers/baseband/acc100/rte_acc100_cfg.h
app/test-bbdev/meson.build +3 -0
@@ -12,3 +12,6 @@ endif if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_FPGA_5GNR_FEC') deps += ['pmd_bbdev_fpga_5gnr_fec'] endif +if dpdk_conf.has('RTE_LIBRTE_PMD_BBDEV_ACC100') + deps += ['pmd_bbdev_acc100'] +endif
drivers/baseband/acc100/rte_acc100_cfg.h new file +96 -0
96 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.c +225 -0
239 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h +3 -0
@@ -7,6 +7,7 @@#include "acc100_pf_enum.h" #include "acc100_vf_enum.h" +#include "rte_acc100_cfg.h" /* Helper macro for logging */ #define rte_bbdev_log (level, fmt, ...) \
@@ -520,6 +521,8 @@ struct acc100_registry_addr {/* Private data structure for each ACC100 device */ struct acc100_device {void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +uint32_t ddr_size;/* Size in kB */ +struct acc100_conf acc100_conf;/* ACC100 Initial configuration */ bool pf_device;/**< True if this is a PF ACC100 device */ bool configured;/**< True if this ACC100 device is configured */ };
Signature · 1 line
1.8.3.1
PATCH v8 4/10 baseband/acc100: add queue configuration
In reply to Nicolas ChautruAdding function to create and configure queues for the device. Still no capability.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 420 ++++++++++++++++++++++++++++++- drivers/baseband/acc100/rte_acc100_pmd.h | 45 ++++ 2 files changed, 464 insertions(+), 1 deletion(-)
drivers/baseband/acc100/rte_acc100_pmd.c +419 -1
@@ -26,6 +26,22 @@RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,NOTICE );#endif +/* Write to MMIO register address */ +static inline void +mmio_write (void *addr,uint32_t value) +{ + *((volatile uint32_t *)(addr)) =rte_cpu_to_le_32 (value); +} + +/* Write a register of a ACC100 device */ +static inline void +acc100_reg_write (struct acc100_device *d,uint32_t offset,uint32_t payload) +{ +void *reg_addr =RTE_PTR_ADD (d->mmio_base, offset); +mmio_write (reg_addr, payload); +usleep (1000 ); +} +/* Read a register of a ACC100 device */ static inline uint32_t acc100_reg_read (struct acc100_device *d,uint32_t offset)
@@ -36,6 +52,22 @@return rte_le_to_cpu_32 (ret); } +/* Basic Implementation of Log2 for exact 2^N */ +static inline uint32_t +log2_basic (uint32_t value) +{ +return (value ==0 ) ?0 :__builtin_ctz (value); +} + +/* Calculate memory alignment offset assuming alignment is 2^N */ +static inline uint32_t +calc_mem_alignment_offset (void *unaligned_virt_mem,uint32_t alignment) +{ +rte_iova_t unaligned_phy_mem =rte_malloc_virt2iova (unaligned_virt_mem); +return (uint32_t )(alignment - + (unaligned_phy_mem & (alignment-1 ))); +} +/* Calculate the offset of the enqueue register */ static inline uint32_t queue_offset (bool pf_device,uint8_t vf_id,uint8_t qgrp_id,uint16_t aq_id)
@@ -204,10 +236,393 @@ acc100_conf->q_dl_5g.aq_depth_log2); } +static void +free_base_addresses (void **base_addrs,int size) +{ +int i; +for (i =0 ; i < size; i++) +rte_free (base_addrs[i]); +} + +static inline uint32_t +get_desc_len (void ) +{ +return sizeof (union acc100_dma_desc ); +} + +/* Allocate the 2 * 64MB block for the sw rings */ +static int +alloc_2x64mb_sw_rings_mem (struct rte_bbdev *dev,struct acc100_device *d, +int socket) +{ +uint32_t sw_ring_size =ACC100_SIZE_64MBYTE ; + d->sw_rings_base =rte_zmalloc_socket (dev->device->driver->name, +2 * sw_ring_size,RTE_CACHE_LINE_SIZE , socket); +if (d->sw_rings_base ==NULL ) { +rte_bbdev_log (ERR ,"Failed to allocate memory for %s:%u" , + dev->device->driver->name, + dev->data->dev_id); +return -ENOMEM ; + } +memset (d->sw_rings_base,0 ,ACC100_SIZE_64MBYTE ); +uint32_t next_64mb_align_offset =calc_mem_alignment_offset ( + d->sw_rings_base,ACC100_SIZE_64MBYTE ); + d->sw_rings =RTE_PTR_ADD (d->sw_rings_base, next_64mb_align_offset); + d->sw_rings_phys =rte_malloc_virt2iova (d->sw_rings_base) + + next_64mb_align_offset; + d->sw_ring_size =MAX_QUEUE_DEPTH *get_desc_len (); + d->sw_ring_max_depth = d->sw_ring_size /get_desc_len (); + +return 0 ; +} + +/* Attempt to allocate minimised memory space for sw rings */ +static void +alloc_sw_rings_min_mem (struct rte_bbdev *dev,struct acc100_device *d, +uint16_t num_queues,int socket) +{ +rte_iova_t sw_rings_base_phy, next_64mb_align_addr_phy; +uint32_t next_64mb_align_offset; +rte_iova_t sw_ring_phys_end_addr; +void *base_addrs[SW_RING_MEM_ALLOC_ATTEMPTS ]; +void *sw_rings_base; +int i =0 ; +uint32_t q_sw_ring_size =MAX_QUEUE_DEPTH *get_desc_len (); +uint32_t dev_sw_ring_size = q_sw_ring_size * num_queues; + +/* Find an aligned block of memory to store sw rings */ +while (i <SW_RING_MEM_ALLOC_ATTEMPTS ) { +/* +* sw_ring allocated memory is guaranteed to be aligned to +* q_sw_ring_size at the condition that the requested size is +* less than the page size +*/ + sw_rings_base =rte_zmalloc_socket ( + dev->device->driver->name, + dev_sw_ring_size, q_sw_ring_size, socket); + +if (sw_rings_base ==NULL ) { +rte_bbdev_log (ERR , +"Failed to allocate memory for %s:%u" , + dev->device->driver->name, + dev->data->dev_id); +break ; + } + + sw_rings_base_phy =rte_malloc_virt2iova (sw_rings_base); + next_64mb_align_offset =calc_mem_alignment_offset ( + sw_rings_base,ACC100_SIZE_64MBYTE ); + next_64mb_align_addr_phy = sw_rings_base_phy + + next_64mb_align_offset; + sw_ring_phys_end_addr = sw_rings_base_phy + dev_sw_ring_size; + +/* Check if the end of the sw ring memory block is before the +* start of next 64MB aligned mem address +*/ +if (sw_ring_phys_end_addr < next_64mb_align_addr_phy) { + d->sw_rings_phys = sw_rings_base_phy; + d->sw_rings = sw_rings_base; + d->sw_rings_base = sw_rings_base; + d->sw_ring_size = q_sw_ring_size; + d->sw_ring_max_depth =MAX_QUEUE_DEPTH ; +break ; + } +/* Store the address of the unaligned mem block */ + base_addrs[i] = sw_rings_base; + i++; + } + +/* Free all unaligned blocks of mem allocated in the loop */ +free_base_addresses (base_addrs, i); +} + + +/* Allocate 64MB memory used for all software rings */ +static int +acc100_setup_queues (struct rte_bbdev *dev,uint16_t num_queues,int socket_id) +{ +uint32_t phys_low, phys_high, payload; +struct acc100_device *d = dev->data->dev_private; +const struct acc100_registry_addr *reg_addr; + +if (d->pf_device && !d->acc100_conf.pf_mode_en) { +rte_bbdev_log (NOTICE , +"%s has PF mode disabled. This PF can't be used." , + dev->data->name); +return -ENODEV ; + } + +alloc_sw_rings_min_mem (dev, d, num_queues, socket_id); + +/* If minimal memory space approach failed, then allocate +* the 2 * 64MB block for the sw rings +*/ +if (d->sw_rings ==NULL ) +alloc_2x64mb_sw_rings_mem (dev, d, socket_id); + +/* Configure ACC100 with the base address for DMA descriptor rings +* Same descriptor rings used for UL and DL DMA Engines +* Note : Assuming only VF0 bundle is used for PF mode +*/ + phys_high = (uint32_t )(d->sw_rings_phys >>32 ); + phys_low = (uint32_t )(d->sw_rings_phys & ~(ACC100_SIZE_64MBYTE -1 )); + +/* Choose correct registry addresses for the device type */ +if (d->pf_device) + reg_addr = &pf_reg_addr; +else + reg_addr = &vf_reg_addr; + +/* Read the populated cfg from ACC100 registers */ +fetch_acc100_config (dev); + +/* Mark as configured properly */ + d->configured = true; + +/* Release AXI from PF */ +if (d->pf_device) +acc100_reg_write (d, HWPfDmaAxiControl,1 ); + +acc100_reg_write (d, reg_addr->dma_ring_ul5g_hi, phys_high); +acc100_reg_write (d, reg_addr->dma_ring_ul5g_lo, phys_low); +acc100_reg_write (d, reg_addr->dma_ring_dl5g_hi, phys_high); +acc100_reg_write (d, reg_addr->dma_ring_dl5g_lo, phys_low); +acc100_reg_write (d, reg_addr->dma_ring_ul4g_hi, phys_high); +acc100_reg_write (d, reg_addr->dma_ring_ul4g_lo, phys_low); +acc100_reg_write (d, reg_addr->dma_ring_dl4g_hi, phys_high); +acc100_reg_write (d, reg_addr->dma_ring_dl4g_lo, phys_low); + +/* +* Configure Ring Size to the max queue ring size +* (used for wrapping purpose) +*/ + payload =log2_basic (d->sw_ring_size /64 ); +acc100_reg_write (d, reg_addr->ring_size, payload); + +/* Configure tail pointer for use when SDONE enabled */ + 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); +if (d->tail_ptrs ==NULL ) { +rte_bbdev_log (ERR ,"Failed to allocate tail ptr for %s:%u" , + dev->device->driver->name, + dev->data->dev_id); +rte_free (d->sw_rings); +return -ENOMEM ; + } + d->tail_ptr_phys =rte_malloc_virt2iova (d->tail_ptrs); + + phys_high = (uint32_t )(d->tail_ptr_phys >>32 ); + phys_low = (uint32_t )(d->tail_ptr_phys); +acc100_reg_write (d, reg_addr->tail_ptrs_ul5g_hi, phys_high); +acc100_reg_write (d, reg_addr->tail_ptrs_ul5g_lo, phys_low); +acc100_reg_write (d, reg_addr->tail_ptrs_dl5g_hi, phys_high); +acc100_reg_write (d, reg_addr->tail_ptrs_dl5g_lo, phys_low); +acc100_reg_write (d, reg_addr->tail_ptrs_ul4g_hi, phys_high); +acc100_reg_write (d, reg_addr->tail_ptrs_ul4g_lo, phys_low); +acc100_reg_write (d, reg_addr->tail_ptrs_dl4g_hi, phys_high); +acc100_reg_write (d, reg_addr->tail_ptrs_dl4g_lo, phys_low); + + d->harq_layout =rte_zmalloc_socket ("HARQ Layout" , +ACC100_HARQ_LAYOUT *sizeof (*d->harq_layout), +RTE_CACHE_LINE_SIZE , dev->data->socket_id); + +rte_bbdev_log_debug ( +"ACC100 (%s) configured sw_rings = %p, sw_rings_phys = %#" + PRIx64, dev->data->name, d->sw_rings, d->sw_rings_phys); + +return 0 ; +} +/* Free 64MB memory used for software rings */ static int -acc100_dev_close(struct rte_bbdev *dev __rte_unused) +acc100_dev_close (struct rte_bbdev *dev) { +struct acc100_device *d = dev->data->dev_private; +if (d->sw_rings_base !=NULL ) { +rte_free (d->tail_ptrs); +rte_free (d->sw_rings_base); + d->sw_rings_base =NULL ; + } +usleep (1000 ); +return 0 ; +} + + +/** +* Report a ACC100 queue index which is free +* Return 0 to 16k for a valid queue_idx or -1 when no queue is available +* Note : Only supporting VF0 Bundle for PF mode +*/ +static int +acc100_find_free_queue_idx (struct rte_bbdev *dev, +const struct rte_bbdev_queue_conf *conf) +{ +struct acc100_device *d = dev->data->dev_private; +int op_2_acc[5 ] = {0 ,UL_4G ,DL_4G ,UL_5G ,DL_5G }; +int acc = op_2_acc[conf->op_type]; +struct rte_q_topology_t *qtop =NULL ; +qtopFromAcc (&qtop, acc, &(d->acc100_conf)); +if (qtop ==NULL ) +return -1 ; +/* Identify matching QGroup Index which are sorted in priority order */ +uint16_t group_idx = qtop->first_qgroup_index; + group_idx += conf->priority; +if (group_idx >=ACC100_NUM_QGRPS || + conf->priority >= qtop->num_qgroups) { +rte_bbdev_log (INFO ,"Invalid Priority on %s, priority %u" , + dev->data->name, conf->priority); +return -1 ; + } +/* Find a free AQ_idx */ +uint16_t aq_idx; +for (aq_idx =0 ; aq_idx < qtop->num_aqs_per_groups; aq_idx++) { +if (((d->q_assigned_bit_map[group_idx] >> aq_idx) &0x1 ) ==0 ) { +/* Mark the Queue as assigned */ + d->q_assigned_bit_map[group_idx] |= (1 << aq_idx); +/* Report the AQ Index */ +return (group_idx <<GRP_ID_SHIFT ) + aq_idx; + } + } +rte_bbdev_log (INFO ,"Failed to find free queue on %s, priority %u" , + dev->data->name, conf->priority); +return -1 ; +} + +/* Setup ACC100 queue */ +static int +acc100_queue_setup (struct rte_bbdev *dev,uint16_t queue_id, +const struct rte_bbdev_queue_conf *conf) +{ +struct acc100_device *d = dev->data->dev_private; +struct acc100_queue *q; +int16_t q_idx; + +/* Allocate the queue data structure. */ + q =rte_zmalloc_socket (dev->device->driver->name,sizeof (*q), +RTE_CACHE_LINE_SIZE , conf->socket); +if (q ==NULL ) { +rte_bbdev_log (ERR ,"Failed to allocate queue memory" ); +return -ENOMEM ; + } + + q->d = d; + q->ring_addr =RTE_PTR_ADD (d->sw_rings, (d->sw_ring_size * queue_id)); + q->ring_addr_phys = d->sw_rings_phys + (d->sw_ring_size * queue_id); + +/* Prepare the Ring with default descriptor format */ +union acc100_dma_desc *desc =NULL ; +unsigned int desc_idx, b_idx; +int fcw_len = (conf->op_type ==RTE_BBDEV_OP_LDPC_ENC ? +ACC100_FCW_LE_BLEN : (conf->op_type ==RTE_BBDEV_OP_TURBO_DEC ? +ACC100_FCW_TD_BLEN :ACC100_FCW_LD_BLEN )); + +for (desc_idx =0 ; desc_idx < d->sw_ring_max_depth; desc_idx++) { + desc = q->ring_addr + desc_idx; + desc->req.word0 =ACC100_DMA_DESC_TYPE ; + desc->req.word1 =0 ;/**< Timestamp */ + desc->req.word2 =0 ; + desc->req.word3 =0 ; +uint64_t fcw_offset = (desc_idx <<8 ) +ACC100_DESC_FCW_OFFSET ; + desc->req.data_ptrs[0 ].address = q->ring_addr_phys + fcw_offset; + desc->req.data_ptrs[0 ].blen = fcw_len; + desc->req.data_ptrs[0 ].blkid =ACC100_DMA_BLKID_FCW ; + desc->req.data_ptrs[0 ].last =0 ; + desc->req.data_ptrs[0 ].dma_ext =0 ; +for (b_idx =1 ; b_idx <ACC100_DMA_MAX_NUM_POINTERS -1 ; + b_idx++) { + desc->req.data_ptrs[b_idx].blkid =ACC100_DMA_BLKID_IN ; + desc->req.data_ptrs[b_idx].last =1 ; + desc->req.data_ptrs[b_idx].dma_ext =0 ; + b_idx++; + desc->req.data_ptrs[b_idx].blkid = +ACC100_DMA_BLKID_OUT_ENC ; + desc->req.data_ptrs[b_idx].last =1 ; + desc->req.data_ptrs[b_idx].dma_ext =0 ; + } +/* Preset some fields of LDPC FCW */ + desc->req.fcw_ld.FCWversion =ACC100_FCW_VER ; + desc->req.fcw_ld.gain_i =1 ; + desc->req.fcw_ld.gain_h =1 ; + } + + q->lb_in =rte_zmalloc_socket (dev->device->driver->name, +RTE_CACHE_LINE_SIZE , +RTE_CACHE_LINE_SIZE , conf->socket); +if (q->lb_in ==NULL ) { +rte_bbdev_log (ERR ,"Failed to allocate lb_in memory" ); +return -ENOMEM ; + } + q->lb_in_addr_phys =rte_malloc_virt2iova (q->lb_in); + q->lb_out =rte_zmalloc_socket (dev->device->driver->name, +RTE_CACHE_LINE_SIZE , +RTE_CACHE_LINE_SIZE , conf->socket); +if (q->lb_out ==NULL ) { +rte_bbdev_log (ERR ,"Failed to allocate lb_out memory" ); +return -ENOMEM ; + } + q->lb_out_addr_phys =rte_malloc_virt2iova (q->lb_out); + +/* +* Software queue ring wraps synchronously with the HW when it reaches +* the boundary of the maximum allocated queue size, no matter what the +* sw queue size is. This wrapping is guarded by setting the wrap_mask +* to represent the maximum queue size as allocated at the time when +* the device has been setup (in configure()). +* +* The queue depth is set to the queue size value (conf->queue_size). +* This limits the occupancy of the queue at any point of time, so that +* the queue does not get swamped with enqueue requests. +*/ + q->sw_ring_depth = conf->queue_size; + q->sw_ring_wrap_mask = d->sw_ring_max_depth -1 ; + + q->op_type = conf->op_type; + + q_idx =acc100_find_free_queue_idx (dev, conf); +if (q_idx ==-1 ) { +rte_free (q); +return -1 ; + } + + q->qgrp_id = (q_idx >>GRP_ID_SHIFT ) &0xF ; + q->vf_id = (q_idx >>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->mmio_reg_enqueue =RTE_PTR_ADD (d->mmio_base, +queue_offset (d->pf_device, + q->vf_id, q->qgrp_id, q->aq_id)); + +rte_bbdev_log_debug ( +"Setup dev%u q%u: qgrp_id=%u, vf_id=%u, aq_id=%u, aq_depth=%u, mmio_reg_enqueue=%p" , + dev->data->dev_id, queue_id, q->qgrp_id, q->vf_id, + q->aq_id, q->aq_depth, q->mmio_reg_enqueue); + + dev->data->queues[queue_id].queue_private = q; +return 0 ; +} + +/* Release ACC100 queue */ +static int +acc100_queue_release (struct rte_bbdev *dev,uint16_t q_id) +{ +struct acc100_device *d = dev->data->dev_private; +struct acc100_queue *q = dev->data->queues[q_id].queue_private; + +if (q !=NULL ) { +/* Mark the Queue as un-assigned */ + d->q_assigned_bit_map[q->qgrp_id] &= (0xFFFFFFFF - + (1 << q->aq_id)); +rte_free (q->lb_in); +rte_free (q->lb_out); +rte_free (q); + dev->data->queues[q_id].queue_private =NULL ; + } +return 0 ; }
@@ -258,8 +673,11 @@ }static const struct rte_bbdev_ops acc100_bbdev_ops = { + .setup_queues = acc100_setup_queues, .close = acc100_dev_close, .info_get = acc100_dev_info_get, + .queue_setup = acc100_queue_setup, + .queue_release = acc100_queue_release, };/* ACC100 PCI PF address map */
drivers/baseband/acc100/rte_acc100_pmd.h +45 -0
56 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH v8 5/10 baseband/acc100: add LDPC processing functions
In reply to Nicolas ChautruAdding LDPC decode and encode processing operations
--- doc/guides/bbdevs/features/acc100.ini | 8 +- drivers/baseband/acc100/rte_acc100_pmd.c | 1625 +++++++++++++++++++++++++++++- drivers/baseband/acc100/rte_acc100_pmd.h | 3 + 3 files changed, 1630 insertions(+), 6 deletions(-)
doc/guides/bbdevs/features/acc100.ini +4 -4
@@ -6,9 +6,9 @@ [Features] Turbo Decoder (4G) = N Turbo Encoder (4G) = N -LDPC Decoder (5G) = N -LDPC Encoder (5G) = N -LLR/HARQ Compression = N -External DDR Access = N +LDPC Decoder (5G) = Y +LDPC Encoder (5G) = Y +LLR/HARQ Compression = Y +External DDR Access = Y HW Accelerated = Y BBDEV API = Y
drivers/baseband/acc100/rte_acc100_pmd.c +1623 -2
1,667 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h +3 -0
@@ -88,6 +88,8 @@#define TMPL_PRI_3 0x0f0e0d0c#define QUEUE_ENABLE 0x80000000/* Bit to mark Queue as Enabled */ #define WORDS_IN_ARAM_SIZE (128 * 1024 / 4) +#define ACC100_FDONE 0x80000000 +#define ACC100_SDONE 0x40000000#define ACC100_NUM_TMPL 32#define VF_OFFSET_QOS 16/* offset in Memory Space specific to QoS Mon */
@@ -398,6 +400,7 @@ struct __rte_packed acc100_dma_req_desc {union acc100_dma_desc {struct acc100_dma_req_desc req;union acc100_dma_rsp_desc rsp; +uint64_t atom_hdr; };
Signature · 1 line
1.8.3.1
PATCH v8 6/10 baseband/acc100: add HARQ loopback support
In reply to Nicolas ChautruAdditional support for HARQ memory loopback
--- drivers/baseband/acc100/rte_acc100_pmd.c | 158 +++++++++++++++++++++++++++++++ 1 file changed, 158 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +158 -0
@@ -658,6 +658,7 @@ RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE | RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE |#ifdef ACC100_EXT_MEM + RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK | RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE | RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE |#endif
@@ -1480,12 +1481,169 @@return 1 ; } +static inline int +harq_loopback (struct acc100_queue *q,struct rte_bbdev_dec_op *op, +uint16_t total_enqueued_cbs) { +struct acc100_fcw_ld *fcw; +union acc100_dma_desc *desc; +int next_triplet =1 ; +struct rte_mbuf *hq_output_head, *hq_output; +uint16_t harq_in_length = op->ldpc_dec.harq_combined_input.length; +if (harq_in_length ==0 ) { +rte_bbdev_log (ERR ,"Loopback of invalid null size\n" ); +return -EINVAL ; + } + +int h_comp =check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION + ) ?1 :0 ; +if (h_comp ==1 ) + harq_in_length = harq_in_length *8 /6 ; + harq_in_length =RTE_ALIGN (harq_in_length,64 ); +uint16_t harq_dma_length_in = (h_comp ==0 ) ? + harq_in_length : + harq_in_length *6 /8 ; +uint16_t harq_dma_length_out = harq_dma_length_in; +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 ? + op->ldpc_dec.harq_combined_input.offset : + op->ldpc_dec.harq_combined_output.offset) + /ACC100_HARQ_OFFSET ; + +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) + & q->sw_ring_wrap_mask); + desc = q->ring_addr + desc_idx; + fcw = &desc->req.fcw_ld; +/* Set the FCW from loopback into DDR */ +memset (fcw,0 ,sizeof (struct acc100_fcw_ld )); + fcw->FCWversion =ACC100_FCW_VER ; + fcw->qm =2 ; + fcw->Zc =384 ; +if (harq_in_length <16 *N_ZC_1 ) + fcw->Zc =16 ; + fcw->ncb = fcw->Zc *N_ZC_1 ; + fcw->rm_e =2 ; + fcw->hcin_en =1 ; + fcw->hcout_en =1 ; + +rte_bbdev_log (DEBUG ,"Loopback IN %d Index %d offset %d length %d %d\n" , + ddr_mem_in, harq_index, + harq_layout[harq_index].offset, harq_in_length, + harq_dma_length_in); + +if (ddr_mem_in && (harq_layout[harq_index].offset >0 )) { + fcw->hcin_size0 = harq_layout[harq_index].size0; + fcw->hcin_offset = harq_layout[harq_index].offset; + fcw->hcin_size1 = harq_in_length - fcw->hcin_offset; + harq_dma_length_in = (fcw->hcin_size0 + fcw->hcin_size1); +if (h_comp ==1 ) + harq_dma_length_in = harq_dma_length_in *6 /8 ; + }else { + fcw->hcin_size0 = harq_in_length; + } + harq_layout[harq_index].val =0 ; +rte_bbdev_log (DEBUG ,"Loopback FCW Config %d %d %d\n" , + fcw->hcin_size0, fcw->hcin_offset, fcw->hcin_size1); + fcw->hcout_size0 = harq_in_length; + fcw->hcin_decomp_mode = h_comp; + fcw->hcout_comp_mode = h_comp; + fcw->gain_i =1 ; + fcw->gain_h =1 ; + +/* Set the prefix of descriptor. This could be done at polling */ + desc->req.word0 =ACC100_DMA_DESC_TYPE ; + desc->req.word1 =0 ;/**< Timestamp could be disabled */ + desc->req.word2 =0 ; + desc->req.word3 =0 ; + desc->req.numCBs =1 ; + +/* Null LLR input for Decoder */ + desc->req.data_ptrs[next_triplet].address = + q->lb_in_addr_phys; + desc->req.data_ptrs[next_triplet].blen =2 ; + desc->req.data_ptrs[next_triplet].blkid =ACC100_DMA_BLKID_IN ; + desc->req.data_ptrs[next_triplet].last =0 ; + desc->req.data_ptrs[next_triplet].dma_ext =0 ; + next_triplet++; + +/* HARQ Combine input from either Memory interface */ +if (!ddr_mem_in) { + next_triplet =acc100_dma_fill_blk_type_out (&desc->req, + op->ldpc_dec.harq_combined_input.data, + op->ldpc_dec.harq_combined_input.offset, + harq_dma_length_in, + next_triplet, +ACC100_DMA_BLKID_IN_HARQ ); + }else { + desc->req.data_ptrs[next_triplet].address = + op->ldpc_dec.harq_combined_input.offset; + desc->req.data_ptrs[next_triplet].blen = + harq_dma_length_in; + desc->req.data_ptrs[next_triplet].blkid = +ACC100_DMA_BLKID_IN_HARQ ; + desc->req.data_ptrs[next_triplet].dma_ext =1 ; + next_triplet++; + } + desc->req.data_ptrs[next_triplet -1 ].last =1 ; + desc->req.m2dlen = next_triplet; + +/* Dropped decoder hard output */ + desc->req.data_ptrs[next_triplet].address = + q->lb_out_addr_phys; + desc->req.data_ptrs[next_triplet].blen =BYTES_IN_WORD ; + desc->req.data_ptrs[next_triplet].blkid =ACC100_DMA_BLKID_OUT_HARD ; + desc->req.data_ptrs[next_triplet].last =0 ; + desc->req.data_ptrs[next_triplet].dma_ext =0 ; + next_triplet++; + +/* HARQ Combine output to either Memory interface */ +if (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE + )) { + desc->req.data_ptrs[next_triplet].address = + op->ldpc_dec.harq_combined_output.offset; + desc->req.data_ptrs[next_triplet].blen = + harq_dma_length_out; + desc->req.data_ptrs[next_triplet].blkid = +ACC100_DMA_BLKID_OUT_HARQ ; + desc->req.data_ptrs[next_triplet].dma_ext =1 ; + next_triplet++; + }else { + hq_output_head = op->ldpc_dec.harq_combined_output.data; + hq_output = op->ldpc_dec.harq_combined_output.data; + next_triplet =acc100_dma_fill_blk_type_out ( + &desc->req, + op->ldpc_dec.harq_combined_output.data, + op->ldpc_dec.harq_combined_output.offset, + harq_dma_length_out, + next_triplet, +ACC100_DMA_BLKID_OUT_HARQ ); +/* HARQ output */ +mbuf_append (hq_output_head, hq_output, harq_dma_length_out); + op->ldpc_dec.harq_combined_output.length = + harq_dma_length_out; + } + desc->req.data_ptrs[next_triplet -1 ].last =1 ; + desc->req.d2mlen = next_triplet - desc->req.m2dlen; + desc->req.op_addr = op; + +/* One CB (one op) was successfully prepared to enqueue */ +return 1 ; +} +/** Enqueue one decode operations for ACC100 device in CB mode */ static inline int enqueue_ldpc_dec_one_op_cb (struct acc100_queue *q,struct rte_bbdev_dec_op *op,uint16_t total_enqueued_cbs,bool same_op) {int ret; +if (unlikely (check_bit (op->ldpc_dec.op_flags, +RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK ))) { + ret =harq_loopback (q, op, total_enqueued_cbs); +return ret; + }union acc100_dma_desc *desc; uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs)
Signature · 1 line
1.8.3.1
PATCH v8 7/10 baseband/acc100: add support for 4G processing
In reply to Nicolas ChautruAdding capability for 4G encode and decoder processing
--- doc/guides/bbdevs/features/acc100.ini | 4 +- drivers/baseband/acc100/rte_acc100_pmd.c | 1010 ++++++++++++++++++++++++++++-- 2 files changed, 945 insertions(+), 69 deletions(-)
doc/guides/bbdevs/features/acc100.ini +2 -2
@@ -4,8 +4,8 @@ ; Refer to default.ini for the full list of available PMD features. ; [Features] -Turbo Decoder (4G) = N -Turbo Encoder (4G) = N +Turbo Decoder (4G) = Y +Turbo Encoder (4G) = Y LDPC Decoder (5G) = Y LDPC Encoder (5G) = Y LLR/HARQ Compression = Y
drivers/baseband/acc100/rte_acc100_pmd.c +943 -67
1,120 lines not on this page · raw message
Signature · 1 line
1.8.3.1
PATCH v8 8/10 baseband/acc100: add interrupt support to PMD
In reply to Nicolas ChautruAdding capability and functions to support MSI
interrupts, call backs and inforing.
--- drivers/baseband/acc100/rte_acc100_pmd.c | 288 ++++++++++++++++++++++++++++++- drivers/baseband/acc100/rte_acc100_pmd.h | 15 ++ 2 files changed, 300 insertions(+), 3 deletions(-)
drivers/baseband/acc100/rte_acc100_pmd.c +285 -3
@@ -339,6 +339,213 @@free_base_addresses (base_addrs, i); } +/* +* Find queue_id of a device queue based on details from the Info Ring. +* If a queue isn't found UINT16_MAX is returned. +*/ +static inline uint16_t +get_queue_id_from_ring_info (struct rte_bbdev_data *data, +const union acc100_info_ring_data ring_data) +{ +uint16_t queue_id; + +for (queue_id =0 ; queue_id < data->num_queues; ++queue_id) { +struct acc100_queue *acc100_q = + data->queues[queue_id].queue_private; +if (acc100_q !=NULL && acc100_q->aq_id == ring_data.aq_id && + acc100_q->qgrp_id == ring_data.qg_id && + acc100_q->vf_id == ring_data.vf_id) +return queue_id; + } + +return UINT16_MAX ; +} + +/* Checks PF Info Ring to find the interrupt cause and handles it accordingly */ +static inline void +acc100_check_ir (struct acc100_device *acc100_dev) +{ +volatile union acc100_info_ring_data *ring_data; +uint16_t info_ring_head = acc100_dev->info_ring_head; +if (acc100_dev->info_ring ==NULL ) +return ; + + ring_data = acc100_dev->info_ring + (acc100_dev->info_ring_head & +ACC100_INFO_RING_MASK ); + +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 )) +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 ; + info_ring_head++; + ring_data = acc100_dev->info_ring + + (info_ring_head &ACC100_INFO_RING_MASK ); + } +} + +/* Checks PF Info Ring to find the interrupt cause and handles it accordingly */ +static inline void +acc100_pf_interrupt_handler (struct rte_bbdev *dev) +{ +struct acc100_device *acc100_dev = dev->data->dev_private; +volatile union acc100_info_ring_data *ring_data; +struct acc100_deq_intr_details deq_intr_det; + + ring_data = acc100_dev->info_ring + (acc100_dev->info_ring_head & +ACC100_INFO_RING_MASK ); + +while (ring_data->valid) { + +rte_bbdev_log_debug ( +"ACC100 PF Interrupt received, Info Ring data: 0x%x" , + ring_data->val); + +switch (ring_data->int_nb) { +case ACC100_PF_INT_DMA_DL_DESC_IRQ : +case ACC100_PF_INT_DMA_UL_DESC_IRQ : +case ACC100_PF_INT_DMA_UL5G_DESC_IRQ : +case ACC100_PF_INT_DMA_DL5G_DESC_IRQ : + deq_intr_det.queue_id =get_queue_id_from_ring_info ( + dev->data, *ring_data); +if (deq_intr_det.queue_id ==UINT16_MAX ) { +rte_bbdev_log (ERR , +"Couldn't find queue: aq_id: %u, qg_id: %u, vf_id: %u" , + ring_data->aq_id, + ring_data->qg_id, + ring_data->vf_id); +return ; + } +rte_bbdev_pmd_callback_process (dev, +RTE_BBDEV_EVENT_DEQUEUE , &deq_intr_det); +break ; +default : +rte_bbdev_pmd_callback_process (dev, +RTE_BBDEV_EVENT_ERROR ,NULL ); +break ; + } + +/* Initialize Info Ring entry and move forward */ + ring_data->val =0 ; + ++acc100_dev->info_ring_head; + ring_data = acc100_dev->info_ring + + (acc100_dev->info_ring_head & +ACC100_INFO_RING_MASK ); + } +} + +/* Checks VF Info Ring to find the interrupt cause and handles it accordingly */ +static inline void +acc100_vf_interrupt_handler (struct rte_bbdev *dev) +{ +struct acc100_device *acc100_dev = dev->data->dev_private; +volatile union acc100_info_ring_data *ring_data; +struct acc100_deq_intr_details deq_intr_det; + + ring_data = acc100_dev->info_ring + (acc100_dev->info_ring_head & +ACC100_INFO_RING_MASK ); + +while (ring_data->valid) { + +rte_bbdev_log_debug ( +"ACC100 VF Interrupt received, Info Ring data: 0x%x" , + ring_data->val); + +switch (ring_data->int_nb) { +case ACC100_VF_INT_DMA_DL_DESC_IRQ : +case ACC100_VF_INT_DMA_UL_DESC_IRQ : +case ACC100_VF_INT_DMA_UL5G_DESC_IRQ : +case ACC100_VF_INT_DMA_DL5G_DESC_IRQ : +/* VFs are not aware of their vf_id - it's set to 0 in +* queue structures. +*/ + ring_data->vf_id =0 ; + deq_intr_det.queue_id =get_queue_id_from_ring_info ( + dev->data, *ring_data); +if (deq_intr_det.queue_id ==UINT16_MAX ) { +rte_bbdev_log (ERR , +"Couldn't find queue: aq_id: %u, qg_id: %u" , + ring_data->aq_id, + ring_data->qg_id); +return ; + } +rte_bbdev_pmd_callback_process (dev, +RTE_BBDEV_EVENT_DEQUEUE , &deq_intr_det); +break ; +default : +rte_bbdev_pmd_callback_process (dev, +RTE_BBDEV_EVENT_ERROR ,NULL ); +break ; + } + +/* Initialize Info Ring entry and move forward */ + ring_data->valid =0 ; + ++acc100_dev->info_ring_head; + ring_data = acc100_dev->info_ring + (acc100_dev->info_ring_head + &ACC100_INFO_RING_MASK ); + } +} + +/* Interrupt handler triggered by ACC100 dev for handling specific interrupt */ +static void +acc100_dev_interrupt_handler (void *cb_arg) +{ +struct rte_bbdev *dev = cb_arg; +struct acc100_device *acc100_dev = dev->data->dev_private; + +/* Read info ring */ +if (acc100_dev->pf_device) +acc100_pf_interrupt_handler (dev); +else +acc100_vf_interrupt_handler (dev); +} + +/* Allocate and setup inforing */ +static int +allocate_inforing (struct rte_bbdev *dev) +{ +struct acc100_device *d = dev->data->dev_private; +const struct acc100_registry_addr *reg_addr; +rte_iova_t info_ring_phys; +uint32_t phys_low, phys_high; + +if (d->info_ring !=NULL ) +return 0 ;/* Already configured */ + +/* Choose correct registry addresses for the device type */ +if (d->pf_device) + reg_addr = &pf_reg_addr; +else + reg_addr = &vf_reg_addr; +/* Allocate InfoRing */ + 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); +if (d->info_ring ==NULL ) { +rte_bbdev_log (ERR , +"Failed to allocate Info Ring for %s:%u" , + dev->device->driver->name, + dev->data->dev_id); +return -ENOMEM ; + } + info_ring_phys =rte_malloc_virt2iova (d->info_ring); + +/* Setup Info Ring */ + phys_high = (uint32_t )(info_ring_phys >>32 ); + phys_low = (uint32_t )(info_ring_phys); +acc100_reg_write (d, reg_addr->info_ring_hi, phys_high); +acc100_reg_write (d, reg_addr->info_ring_lo, phys_low); +acc100_reg_write (d, reg_addr->info_ring_en,ACC100_REG_IRQ_EN_ALL ); + d->info_ring_head = (acc100_reg_read (d, reg_addr->info_ring_ptr) & +0xFFF ) /sizeof (union acc100_info_ring_data ); +return 0 ; +} + +/* Allocate 64MB memory used for all software rings */ static int acc100_setup_queues (struct rte_bbdev *dev,uint16_t num_queues,int socket_id)
@@ -426,6 +633,7 @@acc100_reg_write (d, reg_addr->tail_ptrs_dl4g_hi, phys_high);acc100_reg_write (d, reg_addr->tail_ptrs_dl4g_lo, phys_low); +allocate_inforing (dev); d->harq_layout =rte_zmalloc_socket ("HARQ Layout" ,ACC100_HARQ_LAYOUT *sizeof (*d->harq_layout),RTE_CACHE_LINE_SIZE , dev->data->socket_id);
@@ -437,13 +645,53 @@return 0 ; } +static int +acc100_intr_enable (struct rte_bbdev *dev) +{ +int ret; +struct acc100_device *d = dev->data->dev_private; + +/* Only MSI are currently supported */ +if (dev->intr_handle->type ==RTE_INTR_HANDLE_VFIO_MSI || + dev->intr_handle->type ==RTE_INTR_HANDLE_UIO ) { + +allocate_inforing (dev); + + ret =rte_intr_enable (dev->intr_handle); +if (ret <0 ) { +rte_bbdev_log (ERR , +"Couldn't enable interrupts for device: %s" , + dev->data->name); +rte_free (d->info_ring); +return ret; + } + ret =rte_intr_callback_register (dev->intr_handle, + acc100_dev_interrupt_handler, dev); +if (ret <0 ) { +rte_bbdev_log (ERR , +"Couldn't register interrupt callback for device: %s" , + dev->data->name); +rte_free (d->info_ring); +return ret; + } + +return 0 ; + } + +rte_bbdev_log (ERR ,"ACC100 (%s) supports only VFIO MSI interrupts" , + dev->data->name); +return -ENOTSUP ; +} +/* Free 64MB memory used for software rings */ static int acc100_dev_close (struct rte_bbdev *dev) {struct acc100_device *d = dev->data->dev_private; +acc100_check_ir (d);if (d->sw_rings_base !=NULL ) {rte_free (d->tail_ptrs); +rte_free (d->info_ring);rte_free (d->sw_rings_base); d->sw_rings_base =NULL ; }
@@ -643,6 +891,7 @@RTE_BBDEV_TURBO_CRC_TYPE_24B |RTE_BBDEV_TURBO_HALF_ITERATION_EVEN |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 |
@@ -663,6 +912,7 @@RTE_BBDEV_TURBO_CRC_24B_ATTACH |RTE_BBDEV_TURBO_RV_INDEX_BYPASS |RTE_BBDEV_TURBO_RATE_MATCH | +RTE_BBDEV_TURBO_ENC_INTERRUPTS | RTE_BBDEV_TURBO_ENC_SCATTER_GATHER, .num_buffers_src = RTE_BBDEV_TURBO_MAX_CODE_BLOCKS,
@@ -676,7 +926,8 @@ .capability_flags =RTE_BBDEV_LDPC_RATE_MATCH |RTE_BBDEV_LDPC_CRC_24B_ATTACH | - RTE_BBDEV_LDPC_INTERLEAVER_BYPASS, +RTE_BBDEV_LDPC_INTERLEAVER_BYPASS | + RTE_BBDEV_LDPC_ENC_INTERRUPTS, .num_buffers_src = RTE_BBDEV_LDPC_MAX_CODE_BLOCKS, .num_buffers_dst =
@@ -701,7 +952,8 @@RTE_BBDEV_LDPC_DECODE_BYPASS |RTE_BBDEV_LDPC_DEC_SCATTER_GATHER |RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION | - RTE_BBDEV_LDPC_LLR_COMPRESSION, +RTE_BBDEV_LDPC_LLR_COMPRESSION | + RTE_BBDEV_LDPC_DEC_INTERRUPTS, .llr_size = 8, .llr_decimals = 1, .num_buffers_src =
@@ -751,14 +1003,39 @@#else dev_info->harq_buffer_size =0 ;#endif +acc100_check_ir (d); +} + +static int +acc100_queue_intr_enable (struct rte_bbdev *dev,uint16_t queue_id) +{ +struct acc100_queue *q = dev->data->queues[queue_id].queue_private; + +if (dev->intr_handle->type !=RTE_INTR_HANDLE_VFIO_MSI && + dev->intr_handle->type !=RTE_INTR_HANDLE_UIO ) +return -ENOTSUP ; + + q->irq_enable =1 ; +return 0 ; +} + +static int +acc100_queue_intr_disable (struct rte_bbdev *dev,uint16_t queue_id) +{ +struct acc100_queue *q = dev->data->queues[queue_id].queue_private; + q->irq_enable =0 ; +return 0 ; }static const struct rte_bbdev_ops acc100_bbdev_ops = { .setup_queues = acc100_setup_queues, + .intr_enable = acc100_intr_enable, .close = acc100_dev_close, .info_get = acc100_dev_info_get, .queue_setup = acc100_queue_setup, .queue_release = acc100_queue_release, + .queue_intr_enable = acc100_queue_intr_enable, + .queue_intr_disable = acc100_queue_intr_disable };/* ACC100 PCI PF address map */
@@ -3018,8 +3295,10 @@ ? (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 ); -if (op->status !=0 ) +if (op->status !=0 ) { q_data->queue_stats.dequeue_err_count++; +acc100_check_ir (q->d); + }/* CRC invalid if error exists */ if (!op->status)
@@ -3076,6 +3355,9 @@ op->status |=1 <<RTE_BBDEV_SYNDROME_ERROR ; op->ldpc_dec.iter_count = (uint8_t ) rsp.iter_cnt; +if (op->status & (1 <<RTE_BBDEV_DRV_ERROR )) +acc100_check_ir (q->d); +/* Check if this is the last desc in batch (Atomic Queue) */ if (desc->req.last_desc_in_batch) { (*aq_dequeued)++;
drivers/baseband/acc100/rte_acc100_pmd.h +15 -0
@@ -559,7 +559,14 @@ struct acc100_device {/* Virtual address of the info memory routed to the this function under * operation, whether it is PF or VF. */ +union acc100_info_ring_data *info_ring; +union acc100_harq_layout_data *harq_layout; +/* Virtual Info Ring head */ +uint16_t info_ring_head; +/* Number of bytes available for each queue in device, depending on +* how many queues are enabled with configure() +*/ uint32_t sw_ring_size;uint32_t ddr_size;/* Size in kB */ uint32_t *tail_ptrs;/* Base address of response tail pointer buffer */
@@ -575,4 +582,12 @@ struct acc100_device { bool configured; /**< True if this ACC100 device is configured */ }; +/** +* Structure with details about RTE_BBDEV_EVENT_DEQUEUE event. It's passed to +* the callback function. +*/ +struct acc100_deq_intr_details { +uint16_t queue_id; +}; +#endif /* _RTE_ACC100_PMD_H_ */
Signature · 1 line
1.8.3.1
PATCH v8 9/10 baseband/acc100: add debug function to validate input
In reply to Nicolas ChautruDebug functions to validate the input API from user Only enabled in DEBUG mode at build time
--- drivers/baseband/acc100/rte_acc100_pmd.c | 424 +++++++++++++++++++++++++++++++ 1 file changed, 424 insertions(+)
drivers/baseband/acc100/rte_acc100_pmd.c +424 -0
@@ -1945,6 +1945,231 @@ } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validates turbo encoder parameters */ +static inline int +validate_enc_op (struct rte_bbdev_enc_op *op) +{ +struct rte_bbdev_op_turbo_enc *turbo_enc = &op->turbo_enc; +struct rte_bbdev_op_enc_turbo_cb_params *cb =NULL ; +struct rte_bbdev_op_enc_turbo_tb_params *tb =NULL ; +uint16_t kw, kw_neg, kw_pos; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if (turbo_enc->input.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid input pointer" ); +return -1 ; + } +if (turbo_enc->output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid output pointer" ); +return -1 ; + } +if (turbo_enc->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + turbo_enc->rv_index); +return -1 ; + } +if (turbo_enc->code_block_mode !=0 && + turbo_enc->code_block_mode !=1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + turbo_enc->code_block_mode); +return -1 ; + } + +if (turbo_enc->code_block_mode ==0 ) { + tb = &turbo_enc->tb_params; +if ((tb->k_neg <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_neg >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c_neg >0 ) { +rte_bbdev_log (ERR , +"k_neg (%u) is out of range %u <= value <= %u" , + tb->k_neg,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if (tb->k_pos <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_pos >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k_pos (%u) is out of range %u <= value <= %u" , + tb->k_pos,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -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 ); +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" , + tb->c,RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ); +return -1 ; + } +if (tb->cab > tb->c) { +rte_bbdev_log (ERR , +"cab (%u) is greater than c (%u)" , + tb->cab, tb->c); +return -1 ; + } +if ((tb->ea <RTE_BBDEV_TURBO_MIN_CB_SIZE || (tb->ea %2 )) + && tb->r < tb->cab) { +rte_bbdev_log (ERR , +"ea (%u) is less than %u or it is not even" , + tb->ea,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } +if ((tb->eb <RTE_BBDEV_TURBO_MIN_CB_SIZE || (tb->eb %2 )) + && tb->c > tb->cab) { +rte_bbdev_log (ERR , +"eb (%u) is less than %u or it is not even" , + tb->eb,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + + kw_neg =3 *RTE_ALIGN_CEIL (tb->k_neg +4 , +RTE_BBDEV_TURBO_C_SUBBLOCK ); +if (tb->ncb_neg < tb->k_neg || tb->ncb_neg > kw_neg) { +rte_bbdev_log (ERR , +"ncb_neg (%u) is out of range (%u) k_neg <= value <= (%u) kw_neg" , + tb->ncb_neg, tb->k_neg, kw_neg); +return -1 ; + } + + kw_pos =3 *RTE_ALIGN_CEIL (tb->k_pos +4 , +RTE_BBDEV_TURBO_C_SUBBLOCK ); +if (tb->ncb_pos < tb->k_pos || tb->ncb_pos > kw_pos) { +rte_bbdev_log (ERR , +"ncb_pos (%u) is out of range (%u) k_pos <= value <= (%u) kw_pos" , + tb->ncb_pos, tb->k_pos, kw_pos); +return -1 ; + } +if (tb->r > (tb->c -1 )) { +rte_bbdev_log (ERR , +"r (%u) is greater than c - 1 (%u)" , + tb->r, tb->c -1 ); +return -1 ; + } + }else { + cb = &turbo_enc->cb_params; +if (cb->k <RTE_BBDEV_TURBO_MIN_CB_SIZE + || cb->k >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k (%u) is out of range %u <= value <= %u" , + cb->k,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } + +if (cb->e <RTE_BBDEV_TURBO_MIN_CB_SIZE || (cb->e %2 )) { +rte_bbdev_log (ERR , +"e (%u) is less than %u or it is not even" , + cb->e,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + + kw =RTE_ALIGN_CEIL (cb->k +4 ,RTE_BBDEV_TURBO_C_SUBBLOCK ) *3 ; +if (cb->ncb < cb->k || cb->ncb > kw) { +rte_bbdev_log (ERR , +"ncb (%u) is out of range (%u) k <= value <= (%u) kw" , + cb->ncb, cb->k, kw); +return -1 ; + } + } + +return 0 ; +} +/* Validates LDPC encoder parameters */ +static inline int +validate_ldpc_enc_op (struct rte_bbdev_enc_op *op) +{ +struct rte_bbdev_op_ldpc_enc *ldpc_enc = &op->ldpc_enc; + +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 ; + } +if (ldpc_enc->output.data ==NULL ) { +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 ); +return -1 ; + } +if ((ldpc_enc->basegraph >2 ) || (ldpc_enc->basegraph ==0 )) { +rte_bbdev_log (ERR , +"BG (%u) is out of range 1 <= value <= 2" , + ldpc_enc->basegraph); +return -1 ; + } +if (ldpc_enc->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + ldpc_enc->rv_index); +return -1 ; + } +if (ldpc_enc->code_block_mode >1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + ldpc_enc->code_block_mode); +return -1 ; + } + +return 0 ; +} + +/* Validates LDPC decoder parameters */ +static inline int +validate_ldpc_dec_op (struct rte_bbdev_dec_op *op) +{ +struct rte_bbdev_op_ldpc_dec *ldpc_dec = &op->ldpc_dec; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if ((ldpc_dec->basegraph >2 ) || (ldpc_dec->basegraph ==0 )) { +rte_bbdev_log (ERR , +"BG (%u) is out of range 1 <= value <= 2" , + ldpc_dec->basegraph); +return -1 ; + } +if (ldpc_dec->iter_max ==0 ) { +rte_bbdev_log (ERR , +"iter_max (%u) is equal to 0" , + ldpc_dec->iter_max); +return -1 ; + } +if (ldpc_dec->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + ldpc_dec->rv_index); +return -1 ; + } +if (ldpc_dec->code_block_mode >1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + ldpc_dec->code_block_mode); +return -1 ; + } + +return 0 ; +} +#endif +/* Enqueue one encode operations for ACC100 device in CB mode */ static inline int enqueue_enc_one_op_cb(struct acc100_queue *q, struct rte_bbdev_enc_op *op,
@@ -1956,6 +2181,14 @@ seg_total_left;struct rte_mbuf *input, *output_head, *output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2008,6 +2241,14 @@uint16_t in_length_in_bytes;struct rte_bbdev_op_ldpc_enc *enc = &ops[0 ]->ldpc_enc; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_enc_op (ops[0 ]) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2065,6 +2306,14 @@ seg_total_left;struct rte_mbuf *input, *output_head, *output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2119,6 +2368,14 @@struct rte_mbuf *input, *output_head, *output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_enc_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo encoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2191,6 +2448,142 @@return current_enqueued_cbs; } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validates turbo decoder parameters */ +static inline int +validate_dec_op (struct rte_bbdev_dec_op *op) +{ +struct rte_bbdev_op_turbo_dec *turbo_dec = &op->turbo_dec; +struct rte_bbdev_op_dec_turbo_cb_params *cb =NULL ; +struct rte_bbdev_op_dec_turbo_tb_params *tb =NULL ; + +if (op->mempool ==NULL ) { +rte_bbdev_log (ERR ,"Invalid mempool pointer" ); +return -1 ; + } +if (turbo_dec->input.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid input pointer" ); +return -1 ; + } +if (turbo_dec->hard_output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid hard_output pointer" ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_SOFT_OUTPUT ) && + turbo_dec->soft_output.data ==NULL ) { +rte_bbdev_log (ERR ,"Invalid soft_output pointer" ); +return -1 ; + } +if (turbo_dec->rv_index >3 ) { +rte_bbdev_log (ERR , +"rv_index (%u) is out of range 0 <= value <= 3" , + turbo_dec->rv_index); +return -1 ; + } +if (turbo_dec->iter_min <1 ) { +rte_bbdev_log (ERR , +"iter_min (%u) is less than 1" , + turbo_dec->iter_min); +return -1 ; + } +if (turbo_dec->iter_max <=2 ) { +rte_bbdev_log (ERR , +"iter_max (%u) is less than or equal to 2" , + turbo_dec->iter_max); +return -1 ; + } +if (turbo_dec->iter_min > turbo_dec->iter_max) { +rte_bbdev_log (ERR , +"iter_min (%u) is greater than iter_max (%u)" , + turbo_dec->iter_min, turbo_dec->iter_max); +return -1 ; + } +if (turbo_dec->code_block_mode !=0 && + turbo_dec->code_block_mode !=1 ) { +rte_bbdev_log (ERR , +"code_block_mode (%u) is out of range 0 <= value <= 1" , + turbo_dec->code_block_mode); +return -1 ; + } + +if (turbo_dec->code_block_mode ==0 ) { + tb = &turbo_dec->tb_params; +if ((tb->k_neg <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_neg >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c_neg >0 ) { +rte_bbdev_log (ERR , +"k_neg (%u) is out of range %u <= value <= %u" , + tb->k_neg,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if ((tb->k_pos <RTE_BBDEV_TURBO_MIN_CB_SIZE + || tb->k_pos >RTE_BBDEV_TURBO_MAX_CB_SIZE ) + && tb->c > tb->c_neg) { +rte_bbdev_log (ERR , +"k_pos (%u) is out of range %u <= value <= %u" , + tb->k_pos,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -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 ); +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" , + tb->c,RTE_BBDEV_TURBO_MAX_CODE_BLOCKS ); +return -1 ; + } +if (tb->cab > tb->c) { +rte_bbdev_log (ERR , +"cab (%u) is greater than c (%u)" , + tb->cab, tb->c); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (tb->ea <RTE_BBDEV_TURBO_MIN_CB_SIZE + || (tb->ea %2 )) + && tb->cab >0 ) { +rte_bbdev_log (ERR , +"ea (%u) is less than %u or it is not even" , + tb->ea,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (tb->eb <RTE_BBDEV_TURBO_MIN_CB_SIZE + || (tb->eb %2 )) + && tb->c > tb->cab) { +rte_bbdev_log (ERR , +"eb (%u) is less than %u or it is not even" , + tb->eb,RTE_BBDEV_TURBO_MIN_CB_SIZE ); + } + }else { + cb = &turbo_dec->cb_params; +if (cb->k <RTE_BBDEV_TURBO_MIN_CB_SIZE + || cb->k >RTE_BBDEV_TURBO_MAX_CB_SIZE ) { +rte_bbdev_log (ERR , +"k (%u) is out of range %u <= value <= %u" , + cb->k,RTE_BBDEV_TURBO_MIN_CB_SIZE , +RTE_BBDEV_TURBO_MAX_CB_SIZE ); +return -1 ; + } +if (check_bit (turbo_dec->op_flags,RTE_BBDEV_TURBO_EQUALIZER ) && + (cb->e <RTE_BBDEV_TURBO_MIN_CB_SIZE || + (cb->e %2 ))) { +rte_bbdev_log (ERR , +"e (%u) is less than %u or it is not even" , + cb->e,RTE_BBDEV_TURBO_MIN_CB_SIZE ); +return -1 ; + } + } + +return 0 ; +} +#endif +/** Enqueue one decode operations for ACC100 device in CB mode */ static inline int enqueue_dec_one_op_cb(struct acc100_queue *q, struct rte_bbdev_dec_op *op,
@@ -2203,6 +2596,14 @@struct rte_mbuf *input, *h_output_head, *h_output, *s_output_head, *s_output; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2426,6 +2827,13 @@return ret; } +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +return -EINVAL ; + } +#endif union acc100_dma_desc *desc;uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask);
@@ -2521,6 +2929,14 @@struct rte_mbuf *input, *h_output_head, *h_output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_ldpc_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"LDPC decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
@@ -2611,6 +3027,14 @@ *s_output_head, *s_output;uint16_t current_enqueued_cbs =0 ; +#ifdef RTE_LIBRTE_BBDEV_DEBUG +/* Validate op structure */ +if (validate_dec_op (op) ==-1 ) { +rte_bbdev_log (ERR ,"Turbo decoder validation failed" ); +return -EINVAL ; + } +#endif +uint16_t desc_idx = ((q->sw_ring_head + total_enqueued_cbs) & q->sw_ring_wrap_mask); desc = q->ring_addr + desc_idx;
Signature · 1 line
1.8.3.1
PATCH v8 10/10 baseband/acc100: add configure function
In reply to Nicolas ChautruAdd configure function to configure the PF from within the bbdev-test itself without external application configuration the device.
--- app/test-bbdev/test_bbdev_perf.c | 72 +++ drivers/baseband/acc100/meson.build | 2 + drivers/baseband/acc100/rte_acc100_cfg.h | 17 + drivers/baseband/acc100/rte_acc100_pmd.c | 505 +++++++++++++++++++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 7 + 5 files changed, 603 insertions(+)
app/test-bbdev/test_bbdev_perf.c +72 -0
@@ -52,6 +52,18 @@#define FLR_5G_TIMEOUT 610#endif +#ifdef RTE_LIBRTE_PMD_BBDEV_ACC100 +#include <rte_acc100_cfg.h> +#define ACC100PF_DRIVER_NAME ("intel_acc100_pf") +#define ACC100VF_DRIVER_NAME ("intel_acc100_vf") +#define ACC100_QMGR_NUM_AQS 16 +#define ACC100_QMGR_NUM_QGS 2 +#define ACC100_QMGR_AQ_DEPTH 5 +#define ACC100_QMGR_INVALID_IDX -1 +#define ACC100_QMGR_RR 1 +#define ACC100_QOS_GBR 0 +#endif +#define OPS_CACHE_SIZE 256U#define OPS_POOL_SIZE_MIN 511U/* 0.5K per queue */
@@ -653,6 +665,66 @@ typedef int (test_case_function)(struct active_device *ad, info->dev_name); }#endif +#ifdef RTE_LIBRTE_PMD_BBDEV_ACC100 +if ((get_init_device () == true) && + (!strcmp (info->drv.driver_name,ACC100PF_DRIVER_NAME ))) { +struct acc100_conf conf; +unsigned int i; + +printf ("Configure ACC100 FEC Driver %s with default values\n" , + info->drv.driver_name); + +/* clear default configuration before initialization */ +memset (&conf,0 ,sizeof (struct acc100_conf )); + +/* Always set in PF mode for built-in configuration */ + conf.pf_mode_en = true; +for (i =0 ; i <RTE_ACC100_NUM_VFS ; ++i) { + conf.arb_dl_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_4g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_ul_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_4g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_4g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_dl_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_dl_5g[i].round_robin_weight =ACC100_QMGR_RR ; + conf.arb_ul_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_5g[i].gbr_threshold1 =ACC100_QOS_GBR ; + conf.arb_ul_5g[i].round_robin_weight =ACC100_QMGR_RR ; + } + + conf.input_pos_llr_1_bit = true; + conf.output_pos_llr_1_bit = true; + conf.num_vf_bundles =1 ;/**< Number of VF bundles to setup */ + + conf.q_ul_4g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_ul_4g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_ul_4g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_ul_4g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_dl_4g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_dl_4g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_dl_4g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_dl_4g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_ul_5g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_ul_5g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_ul_5g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_ul_5g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + conf.q_dl_5g.num_qgroups =ACC100_QMGR_NUM_QGS ; + conf.q_dl_5g.first_qgroup_index =ACC100_QMGR_INVALID_IDX ; + conf.q_dl_5g.num_aqs_per_groups =ACC100_QMGR_NUM_AQS ; + conf.q_dl_5g.aq_depth_log2 =ACC100_QMGR_AQ_DEPTH ; + +/* setup PF with configuration information */ + ret =acc100_configure (info->dev_name, &conf); +TEST_ASSERT_SUCCESS (ret, +"Failed to configure ACC100 PF for bbdev %s" , + info->dev_name); +/* Let's refresh this now this is configured */ + } +rte_bbdev_info_get (dev_id, info); +#endif + nb_queues =RTE_MIN (rte_lcore_count (), info->drv.max_num_queues); nb_queues =RTE_MIN (nb_queues, (unsigned int )MAX_QUEUES );
drivers/baseband/acc100/meson.build +2 -0
@@ -4,3 +4,5 @@ deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] sources = files('rte_acc100_pmd.c') + +install_headers('rte_acc100_cfg.h')
drivers/baseband/acc100/rte_acc100_cfg.h +17 -0
@@ -89,6 +89,23 @@ struct acc100_conf {struct rte_arbitration_t arb_dl_5g[RTE_ACC100_NUM_VFS ]; }; +/** +* Configure a ACC100 device +* +* @param dev_name +* The name of the device. This is the short form of PCI BDF, e.g. 00:01.0. +* It can also be retrieved for a bbdev device from the dev_name field in the +* rte_bbdev_info structure returned by rte_bbdev_info_get(). +* @param conf +* Configuration to apply to ACC100 HW. +* +* @return +* Zero on success, negative value on failure. +*/ +__rte_experimental +int +acc100_configure (const char *dev_name,struct acc100_conf *conf); + #ifdef __cplusplus }#endif
drivers/baseband/acc100/rte_acc100_pmd.c +505 -0
520 lines not on this page · raw message
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map +7 -0
@@ -1,3 +1,10 @@ DPDK_21 { local: *; }; + +EXPERIMENTAL { + global: + + acc100_configure; + +};
Signature · 1 line
1.8.3.1
v9 cover bbdev PMD ACC100
In reply to Nicolas Chautruv9: moved the release notes update to the last commit
v8: integrated the doc feature table in previous commit as suggested.
v7: Fingers trouble. Previous one sent mid-rebase. My bad.
v6: removed a legacy makefile no longer required
v5: rebase based on latest on main. The legacy makefiles are removed.
v4: an odd compilation error is reported for one CI variant using "gcc latest" which looks to me like a false positive of maybe-undeclared.
http://mails.dpdk.org/archives/test-report/2020-August/148936.html
Still forcing a dummy declare to remove this CI warning I will check with [email protected] in parallel.
v3: missed a change during rebase
v2: includes clean up from latest CI checks.
Nicolas Chautru (10):
drivers/baseband: add PMD for ACC100 baseband/acc100: add register definition file baseband/acc100: add info get function baseband/acc100: add queue configuration baseband/acc100: add LDPC processing functions baseband/acc100: add HARQ loopback support baseband/acc100: add support for 4G processing baseband/acc100: add interrupt support to PMD baseband/acc100: add debug function to validate input baseband/acc100: add configure function
app/test-bbdev/meson.build | 3 + app/test-bbdev/test_bbdev_perf.c | 72 + doc/guides/bbdevs/acc100.rst | 233 + doc/guides/bbdevs/features/acc100.ini | 14 + doc/guides/bbdevs/index.rst | 1 + doc/guides/rel_notes/release_20_11.rst | 5 + drivers/baseband/acc100/acc100_pf_enum.h | 1068 +++++ drivers/baseband/acc100/acc100_vf_enum.h | 73 + drivers/baseband/acc100/meson.build | 8 + drivers/baseband/acc100/rte_acc100_cfg.h | 113 + drivers/baseband/acc100/rte_acc100_pmd.c | 4684 ++++++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 593 +++ .../acc100/rte_pmd_bbdev_acc100_version.map | 10 + drivers/baseband/meson.build | 2 +- 14 files changed, 6878 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.h create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_cfg.h create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644 drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map
Signature · 1 line
1.8.3.1
PATCH v9 1/10 drivers/baseband: add PMD for ACC100
Add stubs for the ACC100 PMD
--- doc/guides/bbdevs/acc100.rst | 233 +++++++++++++++++++++ doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175 ++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644 drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map
doc/guides/bbdevs/acc100.rst new file +233 -0
@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce. + +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G) +- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B from CB(s) + - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable early termination + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bits appended while decoding + - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` : HARQ memory input is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` : HARQ memory output is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` : loopback data to/from HARQ memory + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQ memory includes the fillers bits + - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supports compression of the HARQ input/output + - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeue interrupts + - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : perform subblock de-interleave + - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeue interrupts + - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bits appended while decoding + - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early early termination feature + - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and compiling DPDK. The +default set of bbdev compile flags may be found in config/common_base, where for example +the flag to build the ACC100 5G/4G FEC device, ``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``, +is already set. + +DPDK requires hugepages to be configured as detailed in section 2 of the DPDK manual. +The bbdev test application has been tested with a configuration 40 x 1GB hugepages. The +hugepage configuration of a server may be examined using: + +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +-------------- + +When the device first powers up, its PCI Physical Functions (PF) can be listed through this command: + +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIO drivers: +``vfio`` and ``igb_uio``. However, in order to work the ACC100 5G/4G +FEC device firstly needs to be bound to one of these linux drivers through DPDK. + + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID and use +``lspci`` to confirm the PF device is under use by ``igb_uio`` DPDK UIO driver. + +The igb_uio driver may be bound to the PF PCI device using one of three methods: + + +1. PCI functions (physical or virtual, depending on the use case) can be bound to +the UIO driver by repeating this command for every function. + +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the ``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using lspci -vd8086:0d5c + + +3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' depending on driver required + enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but vfio driver does not +support SR-IOV configuration right out of the box, so it will need to be patched. + + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under igb_uio control +"``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read ``sriov_totalvfs`` file.. + +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions intended to +enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as required, same +way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except that the file +name is different: + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfs + + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or getting assigned +to VMs/Containers. The configuration involves allocating the number of hardware +queues, priorities, load balance, bandwidth and other settings necessary for the +device to perform FEC functions. + +This configuration needs to be executed at least once after reboot or PCI FLR and can +be achieved by using the function ``acc100_configure()``, which sets up the +parameters defined in ``acc100_conf`` structure. + +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of test data for testing +the functionality of ACC100 5G/4G FEC encode and decode, depending on the device's +capabilities. The test application is located under app->test-bbdev folder and has the +following options: + +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the test app. + "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if not specified. + "-v", "--test-vector" : Test vector path (default=dpdk_path+/app/test-bbdev/test_vectors/bbdev_null.data). + "-n", "--num-ops" : Number of operations to process on device (default=32). + "-b", "--burst-size" : Operations enqueue/dequeue burst size (default=32). + "-s", "--snr" : SNR in dB used when generating LLRs for bler tests. + "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode data, +type one of the following: + +.. code-block:: console + + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_dec_default.data + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to configure the PF device with +a default set of values, if the "-i" or "- -init-device" option is included. The default values +are defined in test_bbdev_perf.c. + + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, bbdev also provides +a range of additional tests under the test_vectors folder, which may be useful. The results +of these tests will depend on the ACC100 5G/4G FEC capabilities which may cause some +testcases to be skipped, but no failure should be reported.
doc/guides/bbdevs/features/acc100.ini new file +14 -0
@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Y
doc/guides/bbdevs/index.rst +1 -0
@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100
drivers/baseband/acc100/meson.build new file +6 -0
@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')
drivers/baseband/acc100/rte_acc100_pmd.c new file +175 -0
175 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h new file +37 -0
@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation +*/ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) +#endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ +struct acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ +}; + +#endif /* _RTE_ACC100_PMD_H_ */
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3 -0
@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};
drivers/baseband/meson.build +1 -1
@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
Signature · 1 line
1.8.3.1
Re: [dpdk-dev] [PATCH v9 01/10] drivers/baseband: add PMD for ACC100
Quoted 27 lines · Nicolas Chautru
Add stubs for the ACC100 PMD
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/acc100.rst | 233 +++++++++++++++++++++ doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175 ++++++++++++++++ drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644 drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.mapdoc/guides/bbdevs/acc100.rst new file +0
-0
doc/guides/bbdevs/acc100.rst line 9
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce.
If this is code name or general chip name it should be removed.
Quoted 74 lines
doc/guides/bbdevs/acc100.rst new file +74
-0+ +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G) +- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B from CB(s) + - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable early termination + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bits appended while decoding + - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides an input for HARQ combining + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` : HARQ memory input is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` : HARQ memory output is internal + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` : loopback data to/from HARQ memory + - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQ memory includes the fillers bits + - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supports compression of the HARQ input/output + - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B to CB(s) + - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do Rate Match bypass + - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeue interrupts + - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : perform subblock de-interleave + - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeue interrupts + - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR encoder i/p is supported + - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bits appended while decoding + - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early early termination feature + - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data + - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and compiling DPDK. The +default set of bbdev compile flags may be found in config/common_base, where for example +the flag to build the ACC100 5G/4G FEC device, ``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``, +is already set. + +DPDK requires hugepages to be configured as detailed in section 2 of the DPDK manual. +The bbdev test application has been tested with a configuration 40 x 1GB hugepages. The +hugepage configuration of a server may be examined using: + +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +--------------
doc/guides/bbdevs/acc100.rst line 93
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +When the device first powers up, its PCI Physical Functions (PF) can be listed through this command: + +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIO drivers: +``vfio`` and ``igb_uio``. However, in order to work the ACC100 5G/4G +FEC device firstly needs to be bound to one of these linux drivers through DPDK.
FEC device first
Quoted 32 lines
doc/guides/bbdevs/acc100.rst new file +32
-0+ + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID and use +``lspci`` to confirm the PF device is under use by ``igb_uio`` DPDK UIO driver. + +The igb_uio driver may be bound to the PF PCI device using one of three methods: + + +1. PCI functions (physical or virtual, depending on the use case) can be bound to +the UIO driver by repeating this command for every function. + +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the ``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using lspci -vd8086:0d5c + +
doc/guides/bbdevs/acc100.rst line 135
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' depending on driver required
This is the igb_uio section, should defer vfio select to its section.
doc/guides/bbdevs/acc100.rst line 141
Quoted 6 lines
doc/guides/bbdevs/acc100.rst new file +6
-0+ enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but vfio driver does not +support SR-IOV configuration right out of the box, so it will need to be patched.
Other documentation says works with 5.7
Quoted 82 lines
doc/guides/bbdevs/acc100.rst new file +82
-0+ + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under igb_uio control +"``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read ``sriov_totalvfs`` file.. + +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions intended to +enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as required, same +way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except that the file +name is different: + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfs + + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or getting assigned +to VMs/Containers. The configuration involves allocating the number of hardware +queues, priorities, load balance, bandwidth and other settings necessary for the +device to perform FEC functions. + +This configuration needs to be executed at least once after reboot or PCI FLR and can +be achieved by using the function ``acc100_configure()``, which sets up the +parameters defined in ``acc100_conf`` structure. + +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of test data for testing +the functionality of ACC100 5G/4G FEC encode and decode, depending on the device's +capabilities. The test application is located under app->test-bbdev folder and has the +following options: + +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the test app. + "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if not specified. + "-v", "--test-vector" : Test vector path (default=dpdk_path+/app/test-bbdev/test_vectors/bbdev_null.data). + "-n", "--num-ops" : Number of operations to process on device (default=32). + "-b", "--burst-size" : Operations enqueue/dequeue burst size (default=32). + "-s", "--snr" : SNR in dB used when generating LLRs for bler tests. + "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode data, +type one of the following: + +.. code-block:: console + + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_dec_default.data + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to configure the PF device with +a default set of values, if the "-i" or "- -init-device" option is included. The default values
doc/guides/bbdevs/acc100.rst line 233
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+are defined in test_bbdev_perf.c. + + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, bbdev also provides +a range of additional tests under the test_vectors folder, which may be useful. The results +of these tests will depend on the ACC100 5G/4G FEC capabilities which may cause some +testcases to be skipped, but no failure should be reported.
Just
to be skipped.
should be able to assume skipped test do not get reported as failures.
Quoted 57 lines
doc/guides/bbdevs/features/acc100.ini new file +14
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Ydoc/guides/bbdevs/index.rst +1
-0@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100drivers/baseband/acc100/meson.build new file +6
-0@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(c) 2020 Intel Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation +*/ + +#include <unistd.h> + +#include <rte_common.h> +#include <rte_log.h> +#include <rte_dev.h> +#include <rte_malloc.h>
drivers/baseband/acc100/rte_acc100_pmd.c line 20
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+#include <rte_mempool.h> +#include <rte_byteorder.h> +#include <rte_errno.h> +#include <rte_branch_prediction.h> +#include <rte_hexdump.h> +#include <rte_pci.h> +#include <rte_bus_pci.h> + +#include <rte_bbdev.h> +#include <rte_bbdev_pmd.h>
Should these #includes' be in alpha order ?
Quoted 113 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +113
-0+#include "rte_acc100_pmd.h" + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,DEBUG ); +#else +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,NOTICE ); +#endif + +/* Free 64MB memory used for software rings */ +static int +acc100_dev_close(struct rte_bbdev *dev __rte_unused) +{ +return 0 ; +} + +static const struct rte_bbdev_ops acc100_bbdev_ops = { + .close = acc100_dev_close, +}; + +/* ACC100 PCI PF address map */ +static struct rte_pci_id pci_id_acc100_pf_map[] = { + { +RTE_PCI_DEVICE (RTE_ACC100_VENDOR_ID ,RTE_ACC100_PF_DEVICE_ID ) + }, + {.device_id =0 }, +}; + +/* ACC100 PCI VF address map */ +static struct rte_pci_id pci_id_acc100_vf_map[] = { + { +RTE_PCI_DEVICE (RTE_ACC100_VENDOR_ID ,RTE_ACC100_VF_DEVICE_ID ) + }, + {.device_id =0 }, +}; + +/* Initialization Function */ +static void +acc100_bbdev_init (struct rte_bbdev *dev,struct rte_pci_driver *drv) +{ +struct rte_pci_device *pci_dev =RTE_DEV_TO_PCI (dev->device); + + dev->dev_ops = &acc100_bbdev_ops; + + ((struct acc100_device *) dev->data->dev_private)->pf_device = + !strcmp (drv->driver.name, +RTE_STR (ACC100PF_DRIVER_NAME )); + ((struct acc100_device *) dev->data->dev_private)->mmio_base = + pci_dev->mem_resource[0 ].addr; + +rte_bbdev_log_debug ("Init device %s [%s] @ vaddr %p paddr %#" PRIx64"" , + drv->driver.name, dev->data->name, + (void *)pci_dev->mem_resource[0 ].addr, + pci_dev->mem_resource[0 ].phys_addr); +} + +static int acc100_pci_probe (struct rte_pci_driver *pci_drv, +struct rte_pci_device *pci_dev) +{ +struct rte_bbdev *bbdev =NULL ; +char dev_name[RTE_BBDEV_NAME_MAX_LEN ]; + +if (pci_dev ==NULL ) { +rte_bbdev_log (ERR ,"NULL PCI device" ); +return -EINVAL ; + } + +rte_pci_device_name (&pci_dev->addr, dev_name,sizeof (dev_name)); + +/* Allocate memory to be used privately by drivers */ + bbdev =rte_bbdev_allocate (pci_dev->device.name); +if (bbdev ==NULL ) +return -ENODEV ; + +/* allocate device private memory */ + bbdev->data->dev_private =rte_zmalloc_socket (dev_name, +sizeof (struct acc100_device ),RTE_CACHE_LINE_SIZE , + pci_dev->device.numa_node); + +if (bbdev->data->dev_private ==NULL ) { +rte_bbdev_log (CRIT , +"Allocate of %zu bytes for device \"%s\" failed" , +sizeof (struct acc100_device ), dev_name); +rte_bbdev_release (bbdev); +return -ENOMEM ; + } + +/* Fill HW specific part of device structure */ + bbdev->device = &pci_dev->device; + bbdev->intr_handle = &pci_dev->intr_handle; + bbdev->data->socket_id = pci_dev->device.numa_node; + +/* Invoke ACC100 device initialization function */ +acc100_bbdev_init (bbdev, pci_drv); + +rte_bbdev_log_debug ("Initialised bbdev %s (id = %u)" , + dev_name, bbdev->data->dev_id); +return 0 ; +} + +static int acc100_pci_remove (struct rte_pci_device *pci_dev) +{ +struct rte_bbdev *bbdev; +int ret; +uint8_t dev_id; + +if (pci_dev ==NULL ) +return -EINVAL ; + +/* Find device */ + bbdev =rte_bbdev_get_named_dev (pci_dev->device.name); +if (bbdev ==NULL ) { + rte_bbdev_log(CRIT, + "Couldn't find HW dev \"%s\" to uninitialise it",
drivers/baseband/acc100/rte_acc100_pmd.c line 143
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ pci_dev->device.name); +return -ENODEV ; + } + dev_id = bbdev->data->dev_id; + +/* free device private memory before close */ +rte_free (bbdev->data->dev_private); + +/* Close device */ + ret =rte_bbdev_close (dev_id);
Do you want to reorder this close before the rte_free so you could recover from the failure ?
Tom
Quoted 97 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +32
-0+if (ret <0 ) +rte_bbdev_log (ERR , +"Device %i failed to close during uninit: %i" , + dev_id, ret); + +/* release bbdev from library */ +rte_bbdev_release (bbdev); + +rte_bbdev_log_debug ("Destroyed bbdev = %u" , dev_id); + +return 0 ; +} + +static struct rte_pci_driver acc100_pci_pf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove, + .id_table = pci_id_acc100_pf_map, + .drv_flags =RTE_PCI_DRV_NEED_MAPPING +}; + +static struct rte_pci_driver acc100_pci_vf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove, + .id_table = pci_id_acc100_vf_map, + .drv_flags =RTE_PCI_DRV_NEED_MAPPING +}; + +RTE_PMD_REGISTER_PCI (ACC100PF_DRIVER_NAME , acc100_pci_pf_driver); +RTE_PMD_REGISTER_PCI_TABLE (ACC100PF_DRIVER_NAME , pci_id_acc100_pf_map); +RTE_PMD_REGISTER_PCI (ACC100VF_DRIVER_NAME , acc100_pci_vf_driver); +RTE_PMD_REGISTER_PCI_TABLE (ACC100VF_DRIVER_NAME , pci_id_acc100_vf_map); +drivers/baseband/acc100/rte_acc100_pmd.h new file +37
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation +*/ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) +#endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ +struct acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ +}; + +#endif /* _RTE_ACC100_PMD_H_ */ drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3
-0@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};drivers/baseband/meson.build +1
-1@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', 'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
Re: [dpdk-dev] [PATCH v9 01/10] drivers/baseband: add PMD for ACC100
Hi Tom,
Quoted 37 lines
-----Original Message-----
From: Tom Rix <[email protected]>
Sent: Tuesday, September 29, 2020 12:54 PM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]
Cc: Richardson, Bruce <[email protected]>; Xu, Rosen <[email protected]>; [email protected]; [email protected]; Yigit, Ferruh <[email protected]>; Liu, Tianjiao <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v9 01/10]drivers/baseband: add PMD for ACC100Quoted 10 lines · Nicolas Chautru
Add stubs for the ACC100 PMD
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/acc100.rst | 233 +++++++++++++++++++++ doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175++++++++++++++++
Quoted 12 lines
drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map
Quoted 16 lines
Quoted 6 lines
(quoted diff) +0
-0
b/doc/guides/bbdevs/acc100.rstnew file mode 100644 index 0000000..f87ee09doc/guides/bbdevs/acc100.rst line 9
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce.If this is code name or general chip name it should be removed.
We have used general chip name for other PMDs (ie. Vista Creek), I can remove but why should this be removed for my benefit? This tends to be the most user friendly name so arguablygood to name drop in documentation .
Quoted 107 lines
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G)doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 30
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate Matchbypass
doc/guides/bbdevs/acc100.rst line 35
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass +interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B fromCB(s)
doc/guides/bbdevs/acc100.rst line 36
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable earlytermination
doc/guides/bbdevs/acc100.rst line 37
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bitsappended while decoding
doc/guides/bbdevs/acc100.rst line 38
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides an inputfor HARQ combining
doc/guides/bbdevs/acc100.rst line 39
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides an inputfor HARQ combining
doc/guides/bbdevs/acc100.rst line 40
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` : HARQmemory input is internal
doc/guides/bbdevs/acc100.rst line 41
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` :HARQ memory output is internal
doc/guides/bbdevs/acc100.rst line 42
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` :loopback data to/from HARQ memory
doc/guides/bbdevs/acc100.rst line 43
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQmemory includes the fillers bits
doc/guides/bbdevs/acc100.rst line 44
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
doc/guides/bbdevs/acc100.rst line 45
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supportscompression of the HARQ input/output
doc/guides/bbdevs/acc100.rst line 50
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input +compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 51
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do RateMatch bypass
doc/guides/bbdevs/acc100.rst line 52
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeueinterrupts
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports +scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : perform subblockde-interleave
doc/guides/bbdevs/acc100.rst line 60
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeueinterrupts
doc/guides/bbdevs/acc100.rst line 61
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLRencoder i/p is supported
doc/guides/bbdevs/acc100.rst line 62
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR encoderi/p is supported
doc/guides/bbdevs/acc100.rst line 63
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bitsappended while decoding
doc/guides/bbdevs/acc100.rst line 64
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early earlytermination feature
doc/guides/bbdevs/acc100.rst line 65
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
doc/guides/bbdevs/acc100.rst line 78
Quoted 13 lines
doc/guides/bbdevs/acc100.rst new file +13
-0+ - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration +granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and +compiling DPDK. The default set of bbdev compile flags may be found +in config/common_base, where for example the flag to build the ACC100 +5G/4G FEC device, ``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``, +is already set. + +DPDK requires hugepages to be configured as detailed in section 2 of theDPDK manual.
doc/guides/bbdevs/acc100.rst line 80
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+The bbdev test application has been tested with a configuration 40 x +1GB hugepages. The hugepage configuration of a server may be examinedusing:
doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +-------------- + +When the device first powers up, its PCI Physical Functions (PF) can belisted through this command:
Quoted 10 lines
doc/guides/bbdevs/acc100.rst
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIO drivers: +``vfio`` and ``igb_uio``. However, in order to work the ACC100 5G/4G +FEC device firstly needs to be bound to one of these linux drivers throughDPDK.
FEC device first
ok
Quoted 40 lines
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID +and use ``lspci`` to confirm the PF device is under use by ``igb_uio`` DPDKUIO driver.
doc/guides/bbdevs/acc100.rst line 107
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+ +The igb_uio driver may be bound to the PF PCI device using one of threemethods:
Quoted 29 lines
doc/guides/bbdevs/acc100.rst new file +29
-0+ + +1. PCI functions (physical or virtual, depending on the use case) can +be bound to the UIO driver by repeating this command for every function. + +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the +``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using +lspci -vd8086:0d5c + + +3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console +
Quoted 8 lines
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' + depending on driver requiredThis is the
igb_uiosection, should defer vfio select to its section.
Ok
Quoted 9 lines
doc/guides/bbdevs/acc100.rst line 150
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' + to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but +vfio driver does not support SR-IOV configuration right out of the box, soit will need to be patched.
Other documentation says works with 5.7
Yes this is a bit historical now. I can remove this bit which is not very informative and non specific to that PMD.
Quoted 104 lines
doc/guides/bbdevs/acc100.rst
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0+ + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under +igb_uio control "``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read ``sriov_totalvfs``file..
Quoted 25 lines
doc/guides/bbdevs/acc100.rst new file +25
-0+ +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions +intended to enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as +required, same way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except that +the file name is different: + +.. code-block:: console + + echo <num-of-vfs> >doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfs + + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or +getting assigned to VMs/Containers. The configuration involves +allocating the number of hardware queues, priorities, load balance, +bandwidth and other settings necessary for the device to perform FECfunctions.
doc/guides/bbdevs/acc100.rst line 198
Quoted 4 lines
doc/guides/bbdevs/acc100.rst new file +4
-0+ +This configuration needs to be executed at least once after reboot or +PCI FLR and can be achieved by using the function +``acc100_configure()``, which sets up the parameters defined in``acc100_conf`` structure.
doc/guides/bbdevs/acc100.rst
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of +test data for testing the functionality of ACC100 5G/4G FEC encode +and decode, depending on the device's capabilities. The test +application is located under app->test-bbdev folder and has the followingoptions:
doc/guides/bbdevs/acc100.rst
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the testapp.
doc/guides/bbdevs/acc100.rst
Quoted 3 lines
doc/guides/bbdevs/acc100.rst new file +3
-0+ "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if not specified. + "-v", "--test-vector" : Test vector path (default=dpdk_path+/app/test-bbdev/test_vectors/bbdev_null.data).
doc/guides/bbdevs/acc100.rst line 215
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-n", "--num-ops" : Number of operations to process on device(default=32).
doc/guides/bbdevs/acc100.rst line 216
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-b", "--burst-size" : Operations enqueue/dequeue burst size(default=32).
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ "-s", "--snr" : SNR in dB used when generating LLRs for bler tests. + "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode +data, type one of the following:doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +.. code-block:: console + + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_dec_default.data + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to +configure the PF device with a default set of values, if the "-i" or +"- -init-device" option is included. The default values are defined in
test_bbdev_perf.c.doc/guides/bbdevs/acc100.rst
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0+ + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, bbdev +also provides a range of additional tests under the test_vectors +folder, which may be useful. The results of these tests will depend +on the ACC100 5G/4G FEC capabilities which may cause some testcases tobe skipped, but no failure should be reported.
Quoted 5 lines
Just
to be skipped.
should be able to assume skipped test do not get reported as failures.
Not necessaraly that obvious from feedback. It doesn't hurt to be explicit and this statement is common to all PMDs.
Quoted 63 lines
Quoted 63 lines
doc/guides/bbdevs/features/acc100.ini new file +14
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Ydoc/guides/bbdevs/index.rst +1
-0@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100drivers/baseband/acc100/meson.build new file +6
-0@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel +Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')drivers/baseband/acc100/rte_acc100_pmd.c new file +12
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#include <unistd.h> + +#include <rte_common.h> +#include <rte_log.h> +#include <rte_dev.h> +#include <rte_malloc.h> +#include <rte_mempool.h> +#include <rte_byteorder.h> +#include <rte_errno.h>
Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 20
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+#include <rte_branch_prediction.h> +#include <rte_hexdump.h> +#include <rte_pci.h> +#include <rte_bus_pci.h> + +#include <rte_bbdev.h> +#include <rte_bbdev_pmd.h> Should these #includes' be in alpha order ?
Interesting comment. Is this a coding guide line for DPDK or others? I have never heard of this personnally, what is the rational?
Quoted 115 lines
Quoted 9 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +9
-0+#include "rte_acc100_pmd.h" + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,DEBUG );#else +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,NOTICE );#endif + +/* Free 64MB memory used for software rings */ static int +acc100_dev_close(struct rte_bbdev *dev __rte_unused) { +return 0 ;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+} + +static const struct rte_bbdev_ops acc100_bbdev_ops = { + .close = acc100_dev_close, +}; + +/* ACC100 PCI PF address map */ +static struct rte_pci_id pci_id_acc100_pf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_PF_DEVICE_ID)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +8
-0+ }, + {.device_id = 0}, +}; + +/* ACC100 PCI VF address map */ +static struct rte_pci_id pci_id_acc100_vf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_VF_DEVICE_ID)Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +5
-0+ }, + {.device_id = 0}, +}; + +/* Initialization Function */ drivers/baseband/acc100/rte_acc100_pmd.c line 69
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+static void +acc100_bbdev_init (struct rte_bbdev *dev,struct rte_pci_driver *drv) +{ +struct rte_pci_device *pci_dev =RTE_DEV_TO_PCI (dev->device); + + dev->dev_ops = &acc100_bbdev_ops; + + ((struct acc100_device *) dev->data->dev_private)->pf_device = + !strcmp(drv->driver.name, +RTE_STR(ACC100PF_DRIVER_NAME));drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ ((struct acc100_device *) dev->data->dev_private)->mmio_base = + pci_dev->mem_resource[0 ].addr; + + rte_bbdev_log_debug("Init device %s [%s] @ vaddr %p paddr%#"PRIx64"",
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+ drv->driver.name, dev->data->name, + (void *)pci_dev->mem_resource[0 ].addr, + pci_dev->mem_resource[0].phys_addr); +} + +static int acc100_pci_probe (struct rte_pci_driver *pci_drv, +struct rte_pci_device *pci_dev)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+{ +struct rte_bbdev *bbdev =NULL ; +char dev_name[RTE_BBDEV_NAME_MAX_LEN ]; + +if (pci_dev ==NULL ) { +rte_bbdev_log (ERR ,"NULL PCI device" ); +return -EINVAL ; + } + + rte_pci_device_name(&pci_dev->addr, dev_name,
sizeof(dev_name));Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ +/* Allocate memory to be used privately by drivers */ + bbdev =rte_bbdev_allocate (pci_dev->device.name); +if (bbdev ==NULL )drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+return -ENODEV ; + +/* allocate device private memory */ + bbdev->data->dev_private =rte_zmalloc_socket (dev_name, +sizeof (struct acc100_device ),RTE_CACHE_LINE_SIZE , + pci_dev->device.numa_node); + +if (bbdev->data->dev_private ==NULL ) { + rte_bbdev_log(CRIT, + "Allocate of %zu bytes for device \"%s\"failed",
Quoted 21 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +21
-0+ sizeof(struct acc100_device), dev_name); +rte_bbdev_release (bbdev); +return -ENOMEM ; + } + +/* Fill HW specific part of device structure */ + bbdev->device = &pci_dev->device; + bbdev->intr_handle = &pci_dev->intr_handle; + bbdev->data->socket_id = pci_dev->device.numa_node; + +/* Invoke ACC100 device initialization function */ +acc100_bbdev_init (bbdev, pci_drv); + +rte_bbdev_log_debug ("Initialised bbdev %s (id = %u)" , + dev_name, bbdev->data->dev_id); +return 0 ; +} + +static int acc100_pci_remove (struct rte_pci_device *pci_dev) { +struct rte_bbdev *bbdev; +int ret;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+uint8_t dev_id; + +if (pci_dev ==NULL ) +return -EINVAL ; + +/* Find device */ + bbdev =rte_bbdev_get_named_dev (pci_dev->device.name); +if (bbdev ==NULL ) { + rte_bbdev_log(CRIT, + "Couldn't find HW dev \"%s\" to uninitialiseit",
Quoted 13 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 143
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ pci_dev->device.name); +return -ENODEV ; + } + dev_id = bbdev->data->dev_id; + +/* free device private memory before close */ +rte_free (bbdev->data->dev_private); + +/* Close device */ + ret =rte_bbdev_close (dev_id);Do you want to reorder this close before the
rte_freeso you could recover from the failure ?
Given this is done the same way for other PMDs I would not change it as it would create a discrepency.
It could be done in principle as another patch for multiple PMDs to support this, but really I don't see a usecase for try to fall back in case there was such a speculative aerror.
Quoted 3 lines
Tom
Thanks
Nic
Quoted 99 lines
Quoted 16 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +16
-0+if (ret <0 ) +rte_bbdev_log (ERR , +"Device %i failed to close during uninit: %i" , + dev_id, ret); + +/* release bbdev from library */ +rte_bbdev_release (bbdev); + +rte_bbdev_log_debug ("Destroyed bbdev = %u" , dev_id); + +return 0 ; +} + +static struct rte_pci_driver acc100_pci_pf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove,drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ .id_table = pci_id_acc100_pf_map, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING }; + +static struct rte_pci_driver acc100_pci_vf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove, + .id_table = pci_id_acc100_vf_map, + .drv_flags =RTE_PCI_DRV_NEED_MAPPING }; + +RTE_PMD_REGISTER_PCI(ACC100PF_DRIVER_NAME,
acc100_pci_pf_driver);drivers/baseband/acc100/rte_acc100_pmd.c line 165
Quoted 2 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +2
-0+RTE_PMD_REGISTER_PCI_TABLE (ACC100PF_DRIVER_NAME , +pci_id_acc100_pf_map);RTE_PMD_REGISTER_PCI(ACC100VF_DRIVER_NAME,
Quoted 69 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+acc100_pci_vf_driver); +RTE_PMD_REGISTER_PCI_TABLE (ACC100VF_DRIVER_NAME , +pci_id_acc100_vf_map); +drivers/baseband/acc100/rte_acc100_pmd.h new file +34
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) #endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ struct +acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ }; + +#endif /* _RTE_ACC100_PMD_H_ */ drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3
-0@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};(quoted diff) +0
-0b/drivers/baseband/meson.build index 415b672..72301ce 100644
drivers/baseband/meson.build +2
-1@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', +'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
Re: [dpdk-dev] [PATCH v9 01/10] drivers/baseband: add PMD for ACC100
Quoted 55 lines · Nicolas
Hi Tom,
Quoted 37 lines
-----Original Message-----
From: Tom Rix <[email protected]>
Sent: Tuesday, September 29, 2020 12:54 PM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]
Cc: Richardson, Bruce <[email protected]>; Xu, Rosen <[email protected]>; [email protected]; [email protected]; Yigit, Ferruh <[email protected]>; Liu, Tianjiao <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v9 01/10]drivers/baseband: add PMD for ACC100Quoted 10 lines · Nicolas Chautru
Add stubs for the ACC100 PMD
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/acc100.rst | 233 +++++++++++++++++++++ doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175++++++++++++++++
Quoted 12 lines
drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.mapQuoted 16 lines
Quoted 6 lines
(quoted diff) +0
-0
b/doc/guides/bbdevs/acc100.rstnew file mode 100644 index 0000000..f87ee09doc/guides/bbdevs/acc100.rst line 9
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce.If this is code name or general chip name it should be removed.
Quoted 3 lines
We have used general chip name for other PMDs (ie. Vista Creek), I can remove but why should this be removed for my benefit? This tends to be the most user friendly name so arguablygood to name drop in documentation .
VistaCreek is the code name, the chip would be aria10.
Since mt bryce is the chip name, after more than 1 eASIC this becomes confusing.
Generally public product names should be used because only the early developers will know the development code names.
Quoted 286 lines
Quoted 109 lines
Quoted 12 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G)doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 30
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate Matchbypass
doc/guides/bbdevs/acc100.rst line 35
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass +interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B fromCB(s)
doc/guides/bbdevs/acc100.rst line 36
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable earlytermination
doc/guides/bbdevs/acc100.rst line 37
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bitsappended while decoding
doc/guides/bbdevs/acc100.rst line 38
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides an inputfor HARQ combining
doc/guides/bbdevs/acc100.rst line 39
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides an inputfor HARQ combining
doc/guides/bbdevs/acc100.rst line 40
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` : HARQmemory input is internal
doc/guides/bbdevs/acc100.rst line 41
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` :HARQ memory output is internal
doc/guides/bbdevs/acc100.rst line 42
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` :loopback data to/from HARQ memory
doc/guides/bbdevs/acc100.rst line 43
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQmemory includes the fillers bits
doc/guides/bbdevs/acc100.rst line 44
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
doc/guides/bbdevs/acc100.rst line 45
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supportscompression of the HARQ input/output
doc/guides/bbdevs/acc100.rst line 50
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input +compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 51
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do RateMatch bypass
doc/guides/bbdevs/acc100.rst line 52
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeueinterrupts
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports +scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : perform subblockde-interleave
doc/guides/bbdevs/acc100.rst line 60
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeueinterrupts
doc/guides/bbdevs/acc100.rst line 61
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLRencoder i/p is supported
doc/guides/bbdevs/acc100.rst line 62
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR encoderi/p is supported
doc/guides/bbdevs/acc100.rst line 63
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bitsappended while decoding
doc/guides/bbdevs/acc100.rst line 64
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early earlytermination feature
doc/guides/bbdevs/acc100.rst line 65
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
doc/guides/bbdevs/acc100.rst line 78
Quoted 13 lines
doc/guides/bbdevs/acc100.rst new file +13
-0+ - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration +granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and +compiling DPDK. The default set of bbdev compile flags may be found +in config/common_base, where for example the flag to build the ACC100 +5G/4G FEC device, ``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``, +is already set. + +DPDK requires hugepages to be configured as detailed in section 2 of theDPDK manual.
doc/guides/bbdevs/acc100.rst line 80
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+The bbdev test application has been tested with a configuration 40 x +1GB hugepages. The hugepage configuration of a server may be examinedusing:
doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +-------------- + +When the device first powers up, its PCI Physical Functions (PF) can belisted through this command:
Quoted 10 lines
doc/guides/bbdevs/acc100.rst
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIO drivers: +``vfio`` and ``igb_uio``. However, in order to work the ACC100 5G/4G +FEC device firstly needs to be bound to one of these linux drivers throughDPDK.
FEC device firstok
Quoted 40 lines
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID +and use ``lspci`` to confirm the PF device is under use by ``igb_uio`` DPDKUIO driver.
doc/guides/bbdevs/acc100.rst line 107
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+ +The igb_uio driver may be bound to the PF PCI device using one of threemethods:
Quoted 29 lines
doc/guides/bbdevs/acc100.rst new file +29
-0+ + +1. PCI functions (physical or virtual, depending on the use case) can +be bound to the UIO driver by repeating this command for every function. + +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the +``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using +lspci -vd8086:0d5c + + +3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console +Quoted 8 lines
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' + depending on driver requiredThis is the
igb_uiosection, should defer vfio select to its section.Ok
Quoted 9 lines
doc/guides/bbdevs/acc100.rst line 150
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' + to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but +vfio driver does not support SR-IOV configuration right out of the box, soit will need to be patched.
Other documentation says works with 5.7Yes this is a bit historical now. I can remove this bit which is not very informative and non specific to that PMD.
Quoted 104 lines
doc/guides/bbdevs/acc100.rst
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0+ + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under +igb_uio control "``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read ``sriov_totalvfs``file..
Quoted 25 lines
doc/guides/bbdevs/acc100.rst new file +25
-0+ +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions +intended to enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as +required, same way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except that +the file name is different: + +.. code-block:: console + + echo <num-of-vfs> >doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfs + + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or +getting assigned to VMs/Containers. The configuration involves +allocating the number of hardware queues, priorities, load balance, +bandwidth and other settings necessary for the device to perform FECfunctions.
doc/guides/bbdevs/acc100.rst line 198
Quoted 4 lines
doc/guides/bbdevs/acc100.rst new file +4
-0+ +This configuration needs to be executed at least once after reboot or +PCI FLR and can be achieved by using the function +``acc100_configure()``, which sets up the parameters defined in``acc100_conf`` structure.
doc/guides/bbdevs/acc100.rst
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of +test data for testing the functionality of ACC100 5G/4G FEC encode +and decode, depending on the device's capabilities. The test +application is located under app->test-bbdev folder and has the followingoptions:
doc/guides/bbdevs/acc100.rst
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the testapp.
doc/guides/bbdevs/acc100.rst
Quoted 3 lines
doc/guides/bbdevs/acc100.rst new file +3
-0+ "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if not specified. + "-v", "--test-vector" : Test vector path (default=dpdk_path+/app/test-bbdev/test_vectors/bbdev_null.data).
doc/guides/bbdevs/acc100.rst line 215
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-n", "--num-ops" : Number of operations to process on device(default=32).
doc/guides/bbdevs/acc100.rst line 216
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-b", "--burst-size" : Operations enqueue/dequeue burst size(default=32).
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ "-s", "--snr" : SNR in dB used when generating LLRs for bler tests. + "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode +data, type one of the following:doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +.. code-block:: console + + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_dec_default.data + ./test-bbdev.py -c validation -n 64 -b 1 -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to +configure the PF device with a default set of values, if the "-i" or +"- -init-device" option is included. The default values are defined in
test_bbdev_perf.c.doc/guides/bbdevs/acc100.rst
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0+ + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, bbdev +also provides a range of additional tests under the test_vectors +folder, which may be useful. The results of these tests will depend +on the ACC100 5G/4G FEC capabilities which may cause some testcases tobe skipped, but no failure should be reported.
Quoted 8 lines
Quoted 5 lines
Just
to be skipped.
should be able to assume skipped test do not get reported as failures.
Not necessaraly that obvious from feedback. It doesn't hurt to be explicit and this statement is common to all PMDs.
ok
Quoted 70 lines
Quoted 62 lines
Quoted 62 lines
doc/guides/bbdevs/features/acc100.ini new file +14
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Ydoc/guides/bbdevs/index.rst +1
-0@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100drivers/baseband/acc100/meson.build new file +6
-0@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel +Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')drivers/baseband/acc100/rte_acc100_pmd.c new file +12
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#include <unistd.h> + +#include <rte_common.h> +#include <rte_log.h> +#include <rte_dev.h> +#include <rte_malloc.h> +#include <rte_mempool.h> +#include <rte_byteorder.h> +#include <rte_errno.h> Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 20
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+#include <rte_branch_prediction.h> +#include <rte_hexdump.h> +#include <rte_pci.h> +#include <rte_bus_pci.h> + +#include <rte_bbdev.h> +#include <rte_bbdev_pmd.h> Should these #includes' be in alpha order ?
Quoted 2 lines
Interesting comment. Is this a coding guide line for DPDK or others? I have never heard of this personnally, what is the rational?
Not sure if this is dpdk style, i know some other project do this.
This works for self consistent headers, no idea if dpdk are.
don't bother with this.
Quoted 127 lines
Quoted 115 lines
Quoted 9 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +9
-0+#include "rte_acc100_pmd.h" + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,DEBUG );#else +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,NOTICE );#endif + +/* Free 64MB memory used for software rings */ static int +acc100_dev_close(struct rte_bbdev *dev __rte_unused) { +return 0 ;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+} + +static const struct rte_bbdev_ops acc100_bbdev_ops = { + .close = acc100_dev_close, +}; + +/* ACC100 PCI PF address map */ +static struct rte_pci_id pci_id_acc100_pf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_PF_DEVICE_ID)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +8
-0+ }, + {.device_id = 0}, +}; + +/* ACC100 PCI VF address map */ +static struct rte_pci_id pci_id_acc100_vf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_VF_DEVICE_ID)Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +5
-0+ }, + {.device_id = 0}, +}; + +/* Initialization Function */ drivers/baseband/acc100/rte_acc100_pmd.c line 69
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+static void +acc100_bbdev_init (struct rte_bbdev *dev,struct rte_pci_driver *drv) +{ +struct rte_pci_device *pci_dev =RTE_DEV_TO_PCI (dev->device); + + dev->dev_ops = &acc100_bbdev_ops; + + ((struct acc100_device *) dev->data->dev_private)->pf_device = + !strcmp(drv->driver.name, +RTE_STR(ACC100PF_DRIVER_NAME));drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ ((struct acc100_device *) dev->data->dev_private)->mmio_base = + pci_dev->mem_resource[0 ].addr; + + rte_bbdev_log_debug("Init device %s [%s] @ vaddr %p paddr%#"PRIx64"",
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+ drv->driver.name, dev->data->name, + (void *)pci_dev->mem_resource[0 ].addr, + pci_dev->mem_resource[0].phys_addr); +} + +static int acc100_pci_probe (struct rte_pci_driver *pci_drv, +struct rte_pci_device *pci_dev)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+{ +struct rte_bbdev *bbdev =NULL ; +char dev_name[RTE_BBDEV_NAME_MAX_LEN ]; + +if (pci_dev ==NULL ) { +rte_bbdev_log (ERR ,"NULL PCI device" ); +return -EINVAL ; + } + + rte_pci_device_name(&pci_dev->addr, dev_name,
sizeof(dev_name));Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ +/* Allocate memory to be used privately by drivers */ + bbdev =rte_bbdev_allocate (pci_dev->device.name); +if (bbdev ==NULL )drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+return -ENODEV ; + +/* allocate device private memory */ + bbdev->data->dev_private =rte_zmalloc_socket (dev_name, +sizeof (struct acc100_device ),RTE_CACHE_LINE_SIZE , + pci_dev->device.numa_node); + +if (bbdev->data->dev_private ==NULL ) { + rte_bbdev_log(CRIT, + "Allocate of %zu bytes for device \"%s\"failed",
Quoted 21 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +21
-0+ sizeof(struct acc100_device), dev_name); +rte_bbdev_release (bbdev); +return -ENOMEM ; + } + +/* Fill HW specific part of device structure */ + bbdev->device = &pci_dev->device; + bbdev->intr_handle = &pci_dev->intr_handle; + bbdev->data->socket_id = pci_dev->device.numa_node; + +/* Invoke ACC100 device initialization function */ +acc100_bbdev_init (bbdev, pci_drv); + +rte_bbdev_log_debug ("Initialised bbdev %s (id = %u)" , + dev_name, bbdev->data->dev_id); +return 0 ; +} + +static int acc100_pci_remove (struct rte_pci_device *pci_dev) { +struct rte_bbdev *bbdev; +int ret;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+uint8_t dev_id; + +if (pci_dev ==NULL ) +return -EINVAL ; + +/* Find device */ + bbdev =rte_bbdev_get_named_dev (pci_dev->device.name); +if (bbdev ==NULL ) { + rte_bbdev_log(CRIT, + "Couldn't find HW dev \"%s\" to uninitialiseit",
Quoted 12 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 143
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ pci_dev->device.name); +return -ENODEV ; + } + dev_id = bbdev->data->dev_id; + +/* free device private memory before close */ +rte_free (bbdev->data->dev_private); + +/* Close device */ + ret =rte_bbdev_close (dev_id);Do you want to reorder this close before the
rte_freeso you could recover from the failure ?
Quoted 3 lines
Given this is done the same way for other PMDs I would not change it as it would create a discrepency.
It could be done in principle as another patch for multiple PMDs to support this, but really I don't see a usecase for try to fall back in case there was such a speculative aerror.
fair enough
Tom
Quoted 105 lines
Quoted 2 lines
Tom
Thanks
NicQuoted 99 lines
Quoted 16 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +16
-0+if (ret <0 ) +rte_bbdev_log (ERR , +"Device %i failed to close during uninit: %i" , + dev_id, ret); + +/* release bbdev from library */ +rte_bbdev_release (bbdev); + +rte_bbdev_log_debug ("Destroyed bbdev = %u" , dev_id); + +return 0 ; +} + +static struct rte_pci_driver acc100_pci_pf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove,drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ .id_table = pci_id_acc100_pf_map, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING }; + +static struct rte_pci_driver acc100_pci_vf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove, + .id_table = pci_id_acc100_vf_map, + .drv_flags =RTE_PCI_DRV_NEED_MAPPING }; + +RTE_PMD_REGISTER_PCI(ACC100PF_DRIVER_NAME,
acc100_pci_pf_driver);drivers/baseband/acc100/rte_acc100_pmd.c line 165
Quoted 2 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +2
-0+RTE_PMD_REGISTER_PCI_TABLE (ACC100PF_DRIVER_NAME , +pci_id_acc100_pf_map);RTE_PMD_REGISTER_PCI(ACC100VF_DRIVER_NAME,
Quoted 69 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+acc100_pci_vf_driver); +RTE_PMD_REGISTER_PCI_TABLE (ACC100VF_DRIVER_NAME , +pci_id_acc100_vf_map); +drivers/baseband/acc100/rte_acc100_pmd.h new file +34
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) #endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ struct +acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ }; + +#endif /* _RTE_ACC100_PMD_H_ */ drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3
-0@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};(quoted diff) +0
-0b/drivers/baseband/meson.build index 415b672..72301ce 100644
drivers/baseband/meson.build +2
-1@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', +'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
Re: [dpdk-dev] [PATCH v9 01/10] drivers/baseband: add PMD for ACC100
Hi Tom,
Quoted 62 lines
From: Tom Rix <[email protected]>
Quoted 23 lines · Nicolas
Hi Tom,
Quoted 21 lines
-----Original Message-----
From: Tom Rix <[email protected]>
Sent: Tuesday, September 29, 2020 12:54 PM
To: Chautru, Nicolas <[email protected]>; [email protected]; [email protected]
Cc: Richardson, Bruce <[email protected]>; Xu, Rosen <[email protected]>; [email protected]; [email protected]; Yigit, Ferruh <[email protected]>; Liu, Tianjiao <[email protected]>
Subject: Re: [dpdk-dev] [PATCH v9 01/10]drivers/baseband: add PMD for
ACC100Quoted 6 lines · Nicolas Chautru
Add stubs for the ACC100 PMD
Signed-off-by Nicolas Chautru <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- doc/guides/bbdevs/acc100.rst | 233+++++++++++++++++++++
Quoted 33 lines
Quoted 17 lines
Quoted 4 lines
doc/guides/bbdevs/features/acc100.ini | 14 ++ doc/guides/bbdevs/index.rst | 1 + drivers/baseband/acc100/meson.build | 6 + drivers/baseband/acc100/rte_acc100_pmd.c | 175++++++++++++++++
Quoted 12 lines
drivers/baseband/acc100/rte_acc100_pmd.h | 37 ++++ .../acc100/rte_pmd_bbdev_acc100_version.map | 3 + drivers/baseband/meson.build | 2 +- 8 files changed, 470 insertions(+), 1 deletion(-) create mode 100644 doc/guides/bbdevs/acc100.rst create mode 100644 doc/guides/bbdevs/features/acc100.ini create mode 100644 drivers/baseband/acc100/meson.build create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.c create mode 100644 drivers/baseband/acc100/rte_acc100_pmd.h create mode 100644
drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.mapQuoted 16 lines
Quoted 6 lines
(quoted diff) +0
-0
b/doc/guides/bbdevs/acc100.rstnew file mode 100644 index 0000000..f87ee09doc/guides/bbdevs/acc100.rst line 9
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0@@ -0,0 +1,233 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(c) 2020 Intel Corporation + +Intel(R) ACC100 5G/4G FEC Poll Mode Driver +========================================== + +The BBDEV ACC100 5G/4G FEC poll mode driver (PMD) supports an +implementation of a VRAN FEC wireless acceleration function. +This device is also known as Mount Bryce.If this is code name or general chip name it should be removed.
Quoted 3 lines
We have used general chip name for other PMDs (ie. Vista Creek), I can remove but why should this be removed for my benefit? This tends to be the most user friendly name so arguablygood to name drop in
Quoted 7 lines
documentation .
VistaCreek is the code name, the chip would be aria10.
Since mt bryce is the chip name, after more than 1 eASIC this becomes confusing.
Actually MtBryce is the 5G personality on top of a given eASIC DM5, eASIC can be seen as process/fab technology. Other eASIC chips != MtBryce.
ACC100 == MtBryce literally, only usage is 4G/5G FEC as exposed by bbdev
Vista Creek is user friendly name for N3000 (Card + Arria10), these names tend to stick long after early deployments. I think it helps to include it in that doc as a one liner, even if through the rest of the doc and code the device is referred to as ACC100.
Quoted 650 lines
Generally public product names should be used because only the early developers will know the development code names.
Quoted 32 lines
Quoted 32 lines
Quoted 12 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ +Features +-------- + +ACC100 5G/4G FEC PMD supports the following features: + +- LDPC Encode in the DL (5GNR) +- LDPC Decode in the UL (5GNR) +- Turbo Encode in the DL (4G) +- Turbo Decode in the UL (4G)doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+- 16 VFs per PF (physical device) +- Maximum of 128 queues per VF +- PCIe Gen-3 x16 Interface +- MSI +- SR-IOV + +ACC100 5G/4G FEC PMD supports the following BBDEV capabilities: + +* For the LDPC encode operation: + - ``RTE_BBDEV_LDPC_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 31
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+ - ``RTE_BBDEV_LDPC_RATE_MATCH`` : if set then do not do Rate + Matchbypass
doc/guides/bbdevs/acc100.rst line 36
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_INTERLEAVER_BYPASS`` : if set then bypass +interleaver + +* For the LDPC decode operation: + - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_CHECK`` : check CRC24B fromCB(s)
Quoted 5 lines
Quoted 5 lines
doc/guides/bbdevs/acc100.rst line 37
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_ITERATION_STOP_ENABLE`` : disable earlytermination
doc/guides/bbdevs/acc100.rst line 38
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_CRC_TYPE_24B_DROP`` : drops CRC24B bitsappended while decoding
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_IN_ENABLE`` : provides aninput
Quoted 2 lines
Quoted 2 lines
for HARQ combining
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HQ_COMBINE_OUT_ENABLE`` : provides aninput
Quoted 2 lines
Quoted 2 lines
for HARQ combining
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_IN_ENABLE`` :HARQ
Quoted 20 lines
Quoted 20 lines
memory input is internal
doc/guides/bbdevs/acc100.rst line 42
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_OUT_ENABLE`` :HARQ memory output is internal
doc/guides/bbdevs/acc100.rst line 43
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_LOOPBACK`` :loopback data to/from HARQ memory
doc/guides/bbdevs/acc100.rst line 44
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_INTERNAL_HARQ_MEMORY_FILLERS`` : HARQmemory includes the fillers bits
doc/guides/bbdevs/acc100.rst line 45
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
doc/guides/bbdevs/acc100.rst line 46
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_LDPC_HARQ_6BIT_COMPRESSION`` : supportscompression of the HARQ input/output
doc/guides/bbdevs/acc100.rst line 51
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ - ``RTE_BBDEV_LDPC_LLR_COMPRESSION`` : supports LLR input +compression + +* For the turbo encode operation: + - ``RTE_BBDEV_TURBO_CRC_24B_ATTACH`` : set to attach CRC24B toCB(s)
doc/guides/bbdevs/acc100.rst line 52
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_RATE_MATCH`` : if set then do not do RateMatch bypass
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_ENC_INTERRUPTS`` : set for encoder dequeueQuoted 8 lines
Quoted 8 lines
interrupts
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ - ``RTE_BBDEV_TURBO_RV_INDEX_BYPASS`` : set to bypass RV index + - ``RTE_BBDEV_TURBO_ENC_SCATTER_GATHER`` : supports +scatter-gather for input/output data + +* For the turbo decode operation: + - ``RTE_BBDEV_TURBO_CRC_TYPE_24B`` : check CRC24B from CB(s) + - ``RTE_BBDEV_TURBO_SUBBLOCK_DEINTERLEAVE`` : performsubblock
Quoted 14 lines
Quoted 14 lines
de-interleave
doc/guides/bbdevs/acc100.rst line 61
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_INTERRUPTS`` : set for decoder dequeueinterrupts
doc/guides/bbdevs/acc100.rst line 62
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_NEG_LLR_1_BIT_IN`` : set if negative LLRencoder i/p is supported
doc/guides/bbdevs/acc100.rst line 64
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+ - ``RTE_BBDEV_TURBO_POS_LLR_1_BIT_IN`` : set if positive LLR + encoderi/p is supported
doc/guides/bbdevs/acc100.rst line 65
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_TB_CRC_24B_KEEP`` : keep CRC24B bitsappended while decoding
doc/guides/bbdevs/acc100.rst line 66
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_EARLY_TERMINATION`` : set early earlytermination feature
doc/guides/bbdevs/acc100.rst line 67
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ - ``RTE_BBDEV_TURBO_DEC_SCATTER_GATHER`` : supports scatter-gather for input/output data
Quoted 10 lines
Quoted 10 lines
doc/guides/bbdevs/acc100.rst line 77
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ - ``RTE_BBDEV_TURBO_HALF_ITERATION_EVEN`` : set half iteration +granularity + +Installation +------------ + +Section 3 of the DPDK manual provides instuctions on installing and +compiling DPDK. The default set of bbdev compile flags may be found +in config/common_base, where for example the flag to build the +ACC100 5G/4G FEC device,``CONFIG_RTE_LIBRTE_PMD_BBDEV_ACC100``,
Quoted 21 lines
Quoted 21 lines
doc/guides/bbdevs/acc100.rst
Quoted 4 lines
doc/guides/bbdevs/acc100.rst new file +4
-0+is already set. + +DPDK requires hugepages to be configured as detailed in section 2 +of theDPDK manual.
doc/guides/bbdevs/acc100.rst line 84
Quoted 3 lines
doc/guides/bbdevs/acc100.rst new file +3
-0+The bbdev test application has been tested with a configuration 40 +x 1GB hugepages. The hugepage configuration of a server may be +examinedusing:
doc/guides/bbdevs/acc100.rst
Quoted 11 lines
doc/guides/bbdevs/acc100.rst new file +11
-0+ +.. code-block:: console + + grep Huge* /proc/meminfo + + +Initialization +-------------- + +When the device first powers up, its PCI Physical Functions (PF) +can belisted through this command:
Quoted 6 lines
Quoted 6 lines
doc/guides/bbdevs/acc100.rst
Quoted 6 lines
doc/guides/bbdevs/acc100.rst new file +6
-0+ +.. code-block:: console + + sudo lspci -vd8086:0d5c + +The physical and virtual functions are compatible with Linux UIOdrivers:
Quoted 16 lines
Quoted 5 lines
doc/guides/bbdevs/acc100.rst line 104
Quoted 3 lines
doc/guides/bbdevs/acc100.rst new file +3
-0+``vfio`` and ``igb_uio``. However, in order to work the ACC100 +5G/4G FEC device firstly needs to be bound to one of these linux +drivers throughDPDK.
FEC device firstok
Quoted 9 lines
doc/guides/bbdevs/acc100.rst
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ + +Bind PF UIO driver(s) +~~~~~~~~~~~~~~~~~~~~~ + +Install the DPDK igb_uio driver, bind it with the PF PCI device ID +and use ``lspci`` to confirm the PF device is under use by +``igb_uio`` DPDKUIO driver.
Quoted 8 lines
Quoted 8 lines
doc/guides/bbdevs/acc100.rst line 115
Quoted 3 lines
doc/guides/bbdevs/acc100.rst new file +3
-0+ +The igb_uio driver may be bound to the PF PCI device using one of +threemethods:
doc/guides/bbdevs/acc100.rst
Quoted 4 lines
doc/guides/bbdevs/acc100.rst new file +4
-0+ + +1. PCI functions (physical or virtual, depending on the use case) +can be bound to the UIO driver by repeating this command for everyfunction.
Quoted 45 lines
Quoted 25 lines
Quoted 25 lines
doc/guides/bbdevs/acc100.rst new file +25
-0+ +.. code-block:: console + + cd <dpdk-top-level-directory> + insmod ./build/kmod/igb_uio.ko + echo "8086 0d5c" > /sys/bus/pci/drivers/igb_uio/new_id + lspci -vd8086:0d5c + + +2. Another way to bind PF with DPDK UIO driver is by using the +``dpdk-devbind.py`` tool + +.. code-block:: console + + cd <dpdk-top-level-directory> + ./usertools/dpdk-devbind.py -b igb_uio 0000:06:00.0 + +where the PCI device ID (example: 0000:06:00.0) is obtained using +lspci -vd8086:0d5c + + +3. A third way to bind is to use ``dpdk-setup.sh`` tool + +.. code-block:: console +Quoted 8 lines
doc/guides/bbdevs/acc100.rst
Quoted 7 lines
doc/guides/bbdevs/acc100.rst new file +7
-0+ cd <dpdk-top-level-directory> + ./usertools/dpdk-setup.sh + + select 'Bind Ethernet/Crypto/Baseband device to IGB UIO module' + or + select 'Bind Ethernet/Crypto/Baseband device to VFIO module' + depending on driver requiredThis is the
igb_uiosection, should defer vfio select to its section.Ok
Quoted 10 lines
doc/guides/bbdevs/acc100.rst line 159
Quoted 8 lines
doc/guides/bbdevs/acc100.rst new file +8
-0+ enter PCI device ID + select 'Display current Ethernet/Crypto/Baseband device settings' + to confirm binding + + +In the same way the ACC100 5G/4G FEC PF can be bound with vfio, but +vfio driver does not support SR-IOV configuration right out of the +box, soit will need to be patched.
Other documentation says works with 5.7Quoted 1 line
Yes this is a bit historical now. I can remove this bit which is not very
informative and non specific to that PMD.
Quoted 65 lines
Quoted 65 lines
doc/guides/bbdevs/acc100.rst
Quoted 11 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ + +Enable Virtual Functions +~~~~~~~~~~~~~~~~~~~~~~~~ + +Now, it should be visible in the printouts that PCI PF is under +igb_uio control "``Kernel driver in use: igb_uio``" + +To show the number of available VFs on the device, read +``sriov_totalvfs``file..
Quoted 27 lines
doc/guides/bbdevs/acc100.rst new file +27
-0+ +.. code-block:: console + + cat /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_totalvfs + + where 0000\:<b>\:<d>.<f> is the PCI device ID + + +To enable VFs via igb_uio, echo the number of virtual functions +intended to enable to ``max_vfs`` file.. + +.. code-block:: console + + echo <num-of-vfs> > + /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/max_vfs + + +Afterwards, all VFs must be bound to appropriate UIO drivers as +required, same way it was done with the physical function previously. + +Enabling SR-IOV via vfio driver is pretty much the same, except +that the file name is different: + +.. code-block:: console + + echo <num-of-vfs> > + /sys/bus/pci/devices/0000\:<b>\:<d>.<f>/sriov_numvfsdoc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ + +Configure the VFs through PF +~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +The PCI virtual functions must be configured before working or +getting assigned to VMs/Containers. The configuration involves +allocating the number of hardware queues, priorities, load balance, +bandwidth and other settings necessary for the device to perform +FECfunctions.
doc/guides/bbdevs/acc100.rst line 210
Quoted 4 lines
doc/guides/bbdevs/acc100.rst new file +4
-0+ +This configuration needs to be executed at least once after reboot +or PCI FLR and can be achieved by using the function +``acc100_configure()``, which sets up the parameters defined in``acc100_conf`` structure.
doc/guides/bbdevs/acc100.rst line 219
Quoted 9 lines
doc/guides/bbdevs/acc100.rst new file +9
-0+ +Test Application +---------------- + +BBDEV provides a test application, ``test-bbdev.py`` and range of +test data for testing the functionality of ACC100 5G/4G FEC encode +and decode, depending on the device's capabilities. The test +application is located under app->test-bbdev folder and has the +followingoptions:
Quoted 8 lines
Quoted 8 lines
doc/guides/bbdevs/acc100.rst
Quoted 5 lines
doc/guides/bbdevs/acc100.rst new file +5
-0+ +.. code-block:: console + + "-p", "--testapp-path": specifies path to the bbdev test app. + "-e", "--eal-params" : EAL arguments which are passed to the testapp.
Quoted 2 lines
doc/guides/bbdevs/acc100.rst new file +2
-0+ "-t", "--timeout" : Timeout in seconds (default=300). + "-c", "--test-cases" : Defines test cases to run. Run all if notspecified.
Quoted 1 line
Quoted 1 line
doc/guides/bbdevs/acc100.rst line 227
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-v", "--test-vector" : Test vector path(default=dpdk_path+/app/test-
Quoted 6 lines
Quoted 6 lines
bbdev/test_vectors/bbdev_null.data).
doc/guides/bbdevs/acc100.rst line 228
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-n", "--num-ops" : Number of operations to process on device(default=32).
doc/guides/bbdevs/acc100.rst line 229
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-b", "--burst-size" : Operations enqueue/dequeue burst size(default=32).
Quoted 1 line
doc/guides/bbdevs/acc100.rst new file +1
-0+ "-s", "--snr" : SNR in dB used when generating LLRs forbler tests.
Quoted 33 lines
Quoted 33 lines
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ "-s", "--iter_max" : Number of iterations for LDPC decoder. + "-l", "--num-lcores" : Number of lcores to run (default=16). + "-i", "--init-device" : Initialise PF device with default values. + + +To execute the test application tool using simple decode or encode +data, type one of the following: + +.. code-block:: console +doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ ./test-bbdev.py -c validation -n 64 -b 1 -v + ./ldpc_dec_default.data ./test-bbdev.py -c validation -n 64 -b 1 + -v ./ldpc_enc_default.data + + +The test application ``test-bbdev.py``, supports the ability to +configure the PF device with a default set of values, if the "-i" +or +"- -init-device" option is included. The default values are defined +in
test_bbdev_perf.c.doc/guides/bbdevs/acc100.rst
Quoted 10 lines
doc/guides/bbdevs/acc100.rst new file +10
-0+ + +Test Vectors +~~~~~~~~~~~~ + +In addition to the simple LDPC decoder and LDPC encoder tests, +bbdev also provides a range of additional tests under the +test_vectors folder, which may be useful. The results of these +tests will depend on the ACC100 5G/4G FEC capabilities which may +cause some testcases tobe skipped, but no failure should be reported.
Quoted 8 lines
Quoted 5 lines
Just
to be skipped.
should be able to assume skipped test do not get reported as failures.
Not necessaraly that obvious from feedback. It doesn't hurt to be explicit and this statement is common to all PMDs.
ok
Quoted 70 lines
Quoted 62 lines
Quoted 62 lines
doc/guides/bbdevs/features/acc100.ini new file +14
-0@@ -0,0 +1,14 @@ +; +; Supported features of the 'acc100' bbdev driver. +; +; Refer to default.ini for the full list of available PMD features. +; +[Features] +Turbo Decoder (4G) = N +Turbo Encoder (4G) = N +LDPC Decoder (5G) = N +LDPC Encoder (5G) = N +LLR/HARQ Compression = N +External DDR Access = N +HW Accelerated = Y +BBDEV API = Y(quoted diff) +0
-0
b/doc/guides/bbdevs/index.rstindex a8092dd..4445cbd 100644doc/guides/bbdevs/index.rst +1
-0@@ -13,3 +13,4 @@ Baseband Device Drivers turbo_sw fpga_lte_fec fpga_5gnr_fec + acc100drivers/baseband/acc100/meson.build new file +6
-0@@ -0,0 +1,6 @@ +# SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2020 Intel +Corporation + +deps += ['bbdev', 'bus_vdev', 'ring', 'pci', 'bus_pci'] + +sources = files('rte_acc100_pmd.c')drivers/baseband/acc100/rte_acc100_pmd.c new file +12
-0@@ -0,0 +1,175 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#include <unistd.h> + +#include <rte_common.h> +#include <rte_log.h> +#include <rte_dev.h> +#include <rte_malloc.h> +#include <rte_mempool.h> +#include <rte_byteorder.h> +#include <rte_errno.h> Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 20
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+#include <rte_branch_prediction.h> +#include <rte_hexdump.h> +#include <rte_pci.h> +#include <rte_bus_pci.h> + +#include <rte_bbdev.h> +#include <rte_bbdev_pmd.h> Should these #includes' be in alpha order ?
Quoted 2 lines
Interesting comment. Is this a coding guide line for DPDK or others? I have never heard of this personnally, what is the rational?
Not sure if this is dpdk style, i know some other project do this.
This works for self consistent headers, no idea if dpdk are.
don't bother with this.
Quoted 127 lines
Quoted 115 lines
Quoted 9 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +9
-0+#include "rte_acc100_pmd.h" + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,DEBUG );#else +RTE_LOG_REGISTER (acc100_logtype, pmd.bb.acc100,NOTICE );#endif + +/* Free 64MB memory used for software rings */ static int +acc100_dev_close(struct rte_bbdev *dev __rte_unused) { +return 0 ;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+} + +static const struct rte_bbdev_ops acc100_bbdev_ops = { + .close = acc100_dev_close, +}; + +/* ACC100 PCI PF address map */ +static struct rte_pci_id pci_id_acc100_pf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_PF_DEVICE_ID)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +8
-0+ }, + {.device_id = 0}, +}; + +/* ACC100 PCI VF address map */ +static struct rte_pci_id pci_id_acc100_vf_map[] = { + { + RTE_PCI_DEVICE(RTE_ACC100_VENDOR_ID,
RTE_ACC100_VF_DEVICE_ID)Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +5
-0+ }, + {.device_id = 0}, +}; + +/* Initialization Function */ drivers/baseband/acc100/rte_acc100_pmd.c line 69
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+static void +acc100_bbdev_init (struct rte_bbdev *dev,struct rte_pci_driver +*drv) { +struct rte_pci_device *pci_dev =RTE_DEV_TO_PCI (dev->device); + + dev->dev_ops = &acc100_bbdev_ops; + + ((struct acc100_device *) dev->data->dev_private)->pf_device = + !strcmp(drv->driver.name, +RTE_STR(ACC100PF_DRIVER_NAME));drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ ((struct acc100_device *) dev->data->dev_private)->mmio_base = + pci_dev->mem_resource[0 ].addr; + + rte_bbdev_log_debug("Init device %s [%s] @ vaddr %p paddr%#"PRIx64"",
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +7
-0+ drv->driver.name, dev->data->name, + (void *)pci_dev->mem_resource[0 ].addr, + pci_dev->mem_resource[0].phys_addr); +} + +static int acc100_pci_probe (struct rte_pci_driver *pci_drv, +struct rte_pci_device *pci_dev)drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+{ +struct rte_bbdev *bbdev =NULL ; +char dev_name[RTE_BBDEV_NAME_MAX_LEN ]; + +if (pci_dev ==NULL ) { +rte_bbdev_log (ERR ,"NULL PCI device" ); +return -EINVAL ; + } + + rte_pci_device_name(&pci_dev->addr, dev_name,
sizeof(dev_name));Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+ +/* Allocate memory to be used privately by drivers */ + bbdev =rte_bbdev_allocate (pci_dev->device.name); +if (bbdev ==NULL )drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+return -ENODEV ; + +/* allocate device private memory */ + bbdev->data->dev_private =rte_zmalloc_socket (dev_name, +sizeof (struct acc100_device ),RTE_CACHE_LINE_SIZE , + pci_dev->device.numa_node); + +if (bbdev->data->dev_private ==NULL ) { + rte_bbdev_log(CRIT, + "Allocate of %zu bytes for device \"%s\"failed",
Quoted 21 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +21
-0+ sizeof(struct acc100_device), dev_name); +rte_bbdev_release (bbdev); +return -ENOMEM ; + } + +/* Fill HW specific part of device structure */ + bbdev->device = &pci_dev->device; + bbdev->intr_handle = &pci_dev->intr_handle; + bbdev->data->socket_id = pci_dev->device.numa_node; + +/* Invoke ACC100 device initialization function */ +acc100_bbdev_init (bbdev, pci_drv); + +rte_bbdev_log_debug ("Initialised bbdev %s (id = %u)" , + dev_name, bbdev->data->dev_id); +return 0 ; +} + +static int acc100_pci_remove (struct rte_pci_device *pci_dev) { +struct rte_bbdev *bbdev; +int ret;drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+uint8_t dev_id; + +if (pci_dev ==NULL ) +return -EINVAL ; + +/* Find device */ + bbdev =rte_bbdev_get_named_dev (pci_dev->device.name); +if (bbdev ==NULL ) { + rte_bbdev_log(CRIT, + "Couldn't find HW dev \"%s\" to uninitialiseit",
Quoted 12 lines
drivers/baseband/acc100/rte_acc100_pmd.c line 143
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ pci_dev->device.name); +return -ENODEV ; + } + dev_id = bbdev->data->dev_id; + +/* free device private memory before close */ +rte_free (bbdev->data->dev_private); + +/* Close device */ + ret =rte_bbdev_close (dev_id);Do you want to reorder this close before the
rte_freeso you could recover from the failure ?Quoted 1 line
Given this is done the same way for other PMDs I would not change it as it
would create a discrepency.
Quoted 1 line
It could be done in principle as another patch for multiple PMDs to
support this, but really I don't see a usecase for try to fall back in case there was such a speculative aerror.
Quoted 1 line
fair enough
Tom
Quoted 107 lines
Quoted 2 lines
Tom
Thanks
NicQuoted 101 lines
Quoted 16 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +16
-0+if (ret <0 ) +rte_bbdev_log (ERR , +"Device %i failed to close during uninit: %i" , + dev_id, ret); + +/* release bbdev from library */ +rte_bbdev_release (bbdev); + +rte_bbdev_log_debug ("Destroyed bbdev = %u" , dev_id); + +return 0 ; +} + +static struct rte_pci_driver acc100_pci_pf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove,drivers/baseband/acc100/rte_acc100_pmd.c
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +10
-0+ .id_table = pci_id_acc100_pf_map, + .drv_flags = RTE_PCI_DRV_NEED_MAPPING }; + +static struct rte_pci_driver acc100_pci_vf_driver = { + .probe = acc100_pci_probe, + .remove = acc100_pci_remove, + .id_table = pci_id_acc100_vf_map, + .drv_flags =RTE_PCI_DRV_NEED_MAPPING }; + +RTE_PMD_REGISTER_PCI(ACC100PF_DRIVER_NAME,
acc100_pci_pf_driver);drivers/baseband/acc100/rte_acc100_pmd.c line 165
Quoted 2 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +2
-0+RTE_PMD_REGISTER_PCI_TABLE (ACC100PF_DRIVER_NAME , +pci_id_acc100_pf_map);RTE_PMD_REGISTER_PCI(ACC100VF_DRIVER_NAME,
Quoted 71 lines
drivers/baseband/acc100/rte_acc100_pmd.c new file +4
-0+acc100_pci_vf_driver); +RTE_PMD_REGISTER_PCI_TABLE (ACC100VF_DRIVER_NAME , +pci_id_acc100_vf_map); +drivers/baseband/acc100/rte_acc100_pmd.h new file +35
-0@@ -0,0 +1,37 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2020 Intel Corporation */ + +#ifndef _RTE_ACC100_PMD_H_ +#define _RTE_ACC100_PMD_H_ + +/* Helper macro for logging */ +#define rte_bbdev_log (level, fmt, ...) \ + rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \ + ##__VA_ARGS__) + +#ifdef RTE_LIBRTE_BBDEV_DEBUG +#define rte_bbdev_log_debug (fmt, ...) \ + rte_bbdev_log(DEBUG, "acc100_pmd: " fmt, \ + ##__VA_ARGS__) +#else +#define rte_bbdev_log_debug (fmt, ...) #endif + +/* ACC100 PF and VF driver names */ +#define ACC100PF_DRIVER_NAME intel_acc100_pf +#define ACC100VF_DRIVER_NAME intel_acc100_vf + +/* ACC100 PCI vendor & device IDs */ +#define RTE_ACC100_VENDOR_ID (0x8086) +#define RTE_ACC100_PF_DEVICE_ID (0x0d5c) +#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) + +/* Private data structure for each ACC100 device */ struct +acc100_device { +void *mmio_base;/**< Base address of MMIO registers (BAR0) */ +bool pf_device;/**< True if this is a PF ACC100 device */ +bool configured;/**< True if this ACC100 device is configured */ +}; + +#endif /* _RTE_ACC100_PMD_H_ */ diff --git a/drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map b/drivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file mode 100644
index 0000000..4a76d1ddrivers/baseband/acc100/rte_pmd_bbdev_acc100_version.map new file +3
-0@@ -0,0 +1,3 @@ +DPDK_21 { + local: *; +};(quoted diff) +0
-0b/drivers/baseband/meson.build index 415b672..72301ce 100644
drivers/baseband/meson.build +2
-1@@ -5,7 +5,7 @@ if is_windows subdir_done() endif -drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec'] +drivers = ['null', 'turbo_sw', 'fpga_lte_fec', 'fpga_5gnr_fec', +'acc100'] config_flag_fmt = 'RTE_LIBRTE_PMD_BBDEV_@0@' driver_name_fmt = 'rte_pmd_bbdev_@0@'
PATCH v9 2/10 baseband/acc100: add register definition file
In reply to Nicolas ChautruAdd in the list of registers for the device and related HW specs definitions.
--- drivers/baseband/acc100/acc100_pf_enum.h | 1068 ++++++++++++++++++++++++++++++ drivers/baseband/acc100/acc100_vf_enum.h | 73 ++ drivers/baseband/acc100/rte_acc100_pmd.h | 490 ++++++++++++++ 3 files changed, 1631 insertions(+) create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.h
drivers/baseband/acc100/acc100_pf_enum.h new file +1068 -0
@@ -0,0 +1,1068 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_PF_ENUM_H +#define ACC100_PF_ENUM_H + +/* +* ACC100 Register mapping on PF BAR0 +* This is automatically generated from RDL, format may change with new RDL +* Release. +* Variable names are as is +*/ +enum { + HWPfQmgrEgressQueuesTemplate =0x0007FE00 , + HWPfQmgrIngressAq =0x00080000 , + HWPfQmgrArbQAvail =0x00A00010 , + HWPfQmgrArbQBlock =0x00A00014 , + HWPfQmgrAqueueDropNotifEn =0x00A00024 , + HWPfQmgrAqueueDisableNotifEn =0x00A00028 , + HWPfQmgrSoftReset =0x00A00038 , + HWPfQmgrInitStatus =0x00A0003C , + HWPfQmgrAramWatchdogCount =0x00A00040 , + HWPfQmgrAramWatchdogCounterEn =0x00A00044 , + HWPfQmgrAxiWatchdogCount =0x00A00048 , + HWPfQmgrAxiWatchdogCounterEn =0x00A0004C , + HWPfQmgrProcessWatchdogCount =0x00A00050 , + HWPfQmgrProcessWatchdogCounterEn =0x00A00054 , + HWPfQmgrProcessUl4GWatchdogCounter =0x00A00058 , + HWPfQmgrProcessDl4GWatchdogCounter =0x00A0005C , + HWPfQmgrProcessUl5GWatchdogCounter =0x00A00060 , + HWPfQmgrProcessDl5GWatchdogCounter =0x00A00064 , + HWPfQmgrProcessMldWatchdogCounter =0x00A00068 , + HWPfQmgrMsiOverflowUpperVf =0x00A00070 , + HWPfQmgrMsiOverflowLowerVf =0x00A00074 , + HWPfQmgrMsiWatchdogOverflow =0x00A00078 , + HWPfQmgrMsiOverflowEnable =0x00A0007C , + HWPfQmgrDebugAqPointerMemGrp =0x00A00100 , + HWPfQmgrDebugOutputArbQFifoGrp =0x00A00140 , + HWPfQmgrDebugMsiFifoGrp =0x00A00180 , + HWPfQmgrDebugAxiWdTimeoutMsiFifo =0x00A001C0 , + HWPfQmgrDebugProcessWdTimeoutMsiFifo =0x00A001C4 , + HWPfQmgrDepthLog2Grp =0x00A00200 , + HWPfQmgrTholdGrp =0x00A00300 , + HWPfQmgrGrpTmplateReg0Indx =0x00A00600 , + HWPfQmgrGrpTmplateReg1Indx =0x00A00680 , + HWPfQmgrGrpTmplateReg2indx =0x00A00700 , + HWPfQmgrGrpTmplateReg3Indx =0x00A00780 , + HWPfQmgrGrpTmplateReg4Indx =0x00A00800 , + HWPfQmgrVfBaseAddr =0x00A01000 , + HWPfQmgrUl4GWeightRrVf =0x00A02000 , + HWPfQmgrDl4GWeightRrVf =0x00A02100 , + HWPfQmgrUl5GWeightRrVf =0x00A02200 , + HWPfQmgrDl5GWeightRrVf =0x00A02300 , + HWPfQmgrMldWeightRrVf =0x00A02400 , + HWPfQmgrArbQDepthGrp =0x00A02F00 , + HWPfQmgrGrpFunction0 =0x00A02F40 , + HWPfQmgrGrpFunction1 =0x00A02F44 , + HWPfQmgrGrpPriority =0x00A02F48 , + HWPfQmgrWeightSync =0x00A03000 , + HWPfQmgrAqEnableVf =0x00A10000 , + HWPfQmgrAqResetVf =0x00A20000 , + HWPfQmgrRingSizeVf =0x00A20004 , + HWPfQmgrGrpDepthLog20Vf =0x00A20008 , + HWPfQmgrGrpDepthLog21Vf =0x00A2000C , + HWPfQmgrGrpFunction0Vf =0x00A20010 , + HWPfQmgrGrpFunction1Vf =0x00A20014 , + HWPfDmaConfig0Reg =0x00B80000 , + HWPfDmaConfig1Reg =0x00B80004 , + HWPfDmaQmgrAddrReg =0x00B80008 , + HWPfDmaSoftResetReg =0x00B8000C , + HWPfDmaAxcacheReg =0x00B80010 , + HWPfDmaVersionReg =0x00B80014 , + HWPfDmaFrameThreshold =0x00B80018 , + HWPfDmaTimestampLo =0x00B8001C , + HWPfDmaTimestampHi =0x00B80020 , + HWPfDmaAxiStatus =0x00B80028 , + HWPfDmaAxiControl =0x00B8002C , + HWPfDmaNoQmgr =0x00B80030 , + HWPfDmaQosScale =0x00B80034 , + HWPfDmaQmanen =0x00B80040 , + HWPfDmaQmgrQosBase =0x00B80060 , + HWPfDmaFecClkGatingEnable =0x00B80080 , + HWPfDmaPmEnable =0x00B80084 , + HWPfDmaQosEnable =0x00B80088 , + HWPfDmaHarqWeightedRrFrameThreshold =0x00B800B0 , + HWPfDmaDataSmallWeightedRrFrameThresh =0x00B800B4 , + HWPfDmaDataLargeWeightedRrFrameThresh =0x00B800B8 , + HWPfDmaInboundCbMaxSize =0x00B800BC , + HWPfDmaInboundDrainDataSize =0x00B800C0 , + HWPfDmaVfDdrBaseRw =0x00B80400 , + HWPfDmaCmplTmOutCnt =0x00B80800 , + HWPfDmaProcTmOutCnt =0x00B80804 , + HWPfDmaStatusRrespBresp =0x00B80810 , + HWPfDmaCfgRrespBresp =0x00B80814 , + HWPfDmaStatusMemParErr =0x00B80818 , + HWPfDmaCfgMemParErrEn =0x00B8081C , + HWPfDmaStatusDmaHwErr =0x00B80820 , + HWPfDmaCfgDmaHwErrEn =0x00B80824 , + HWPfDmaStatusFecCoreErr =0x00B80828 , + HWPfDmaCfgFecCoreErrEn =0x00B8082C , + HWPfDmaStatusFcwDescrErr =0x00B80830 , + HWPfDmaCfgFcwDescrErrEn =0x00B80834 , + HWPfDmaStatusBlockTransmit =0x00B80838 , + HWPfDmaBlockOnErrEn =0x00B8083C , + HWPfDmaStatusFlushDma =0x00B80840 , + HWPfDmaFlushDmaOnErrEn =0x00B80844 , + HWPfDmaStatusSdoneFifoFull =0x00B80848 , + HWPfDmaStatusDescriptorErrLoVf =0x00B8084C , + HWPfDmaStatusDescriptorErrHiVf =0x00B80850 , + HWPfDmaStatusFcwErrLoVf =0x00B80854 , + HWPfDmaStatusFcwErrHiVf =0x00B80858 , + HWPfDmaStatusDataErrLoVf =0x00B8085C , + HWPfDmaStatusDataErrHiVf =0x00B80860 , + HWPfDmaCfgMsiEnSoftwareErr =0x00B80864 , + HWPfDmaDescriptorSignatuture =0x00B80868 , + HWPfDmaFcwSignature =0x00B8086C , + HWPfDmaErrorDetectionEn =0x00B80870 , + HWPfDmaErrCntrlFifoDebug =0x00B8087C , + HWPfDmaStatusToutData =0x00B80880 , + HWPfDmaStatusToutDesc =0x00B80884 , + HWPfDmaStatusToutUnexpData =0x00B80888 , + HWPfDmaStatusToutUnexpDesc =0x00B8088C , + HWPfDmaStatusToutProcess =0x00B80890 , + HWPfDmaConfigCtoutOutDataEn =0x00B808A0 , + HWPfDmaConfigCtoutOutDescrEn =0x00B808A4 , + HWPfDmaConfigUnexpComplDataEn =0x00B808A8 , + HWPfDmaConfigUnexpComplDescrEn =0x00B808AC , + HWPfDmaConfigPtoutOutEn =0x00B808B0 , + HWPfDmaFec5GulDescBaseLoRegVf =0x00B88020 , + HWPfDmaFec5GulDescBaseHiRegVf =0x00B88024 , + HWPfDmaFec5GulRespPtrLoRegVf =0x00B88028 , + HWPfDmaFec5GulRespPtrHiRegVf =0x00B8802C , + HWPfDmaFec5GdlDescBaseLoRegVf =0x00B88040 , + HWPfDmaFec5GdlDescBaseHiRegVf =0x00B88044 , + HWPfDmaFec5GdlRespPtrLoRegVf =0x00B88048 , + HWPfDmaFec5GdlRespPtrHiRegVf =0x00B8804C , + HWPfDmaFec4GulDescBaseLoRegVf =0x00B88060 , + HWPfDmaFec4GulDescBaseHiRegVf =0x00B88064 , + HWPfDmaFec4GulRespPtrLoRegVf =0x00B88068 , + HWPfDmaFec4GulRespPtrHiRegVf =0x00B8806C , + HWPfDmaFec4GdlDescBaseLoRegVf =0x00B88080 , + HWPfDmaFec4GdlDescBaseHiRegVf =0x00B88084 , + HWPfDmaFec4GdlRespPtrLoRegVf =0x00B88088 , + HWPfDmaFec4GdlRespPtrHiRegVf =0x00B8808C , + HWPfDmaVfDdrBaseRangeRo =0x00B880A0 , + HWPfQosmonACntrlReg =0x00B90000 , + HWPfQosmonAEvalOverflow0 =0x00B90008 , + HWPfQosmonAEvalOverflow1 =0x00B9000C , + HWPfQosmonADivTerm =0x00B90010 , + HWPfQosmonATickTerm =0x00B90014 , + HWPfQosmonAEvalTerm =0x00B90018 , + HWPfQosmonAAveTerm =0x00B9001C , + HWPfQosmonAForceEccErr =0x00B90020 , + HWPfQosmonAEccErrDetect =0x00B90024 , + HWPfQosmonAIterationConfig0Low =0x00B90060 , + HWPfQosmonAIterationConfig0High =0x00B90064 , + HWPfQosmonAIterationConfig1Low =0x00B90068 , + HWPfQosmonAIterationConfig1High =0x00B9006C , + HWPfQosmonAIterationConfig2Low =0x00B90070 , + HWPfQosmonAIterationConfig2High =0x00B90074 , + HWPfQosmonAIterationConfig3Low =0x00B90078 , + HWPfQosmonAIterationConfig3High =0x00B9007C , + HWPfQosmonAEvalMemAddr =0x00B90080 , + HWPfQosmonAEvalMemData =0x00B90084 , + HWPfQosmonAXaction =0x00B900C0 , + HWPfQosmonARemThres1Vf =0x00B90400 , + HWPfQosmonAThres2Vf =0x00B90404 , + HWPfQosmonAWeiFracVf =0x00B90408 , + HWPfQosmonARrWeiVf =0x00B9040C , + HWPfPermonACntrlRegVf =0x00B98000 , + HWPfPermonACountVf =0x00B98008 , + HWPfPermonAKCntLoVf =0x00B98010 , + HWPfPermonAKCntHiVf =0x00B98014 , + HWPfPermonADeltaCntLoVf =0x00B98020 , + HWPfPermonADeltaCntHiVf =0x00B98024 , + HWPfPermonAVersionReg =0x00B9C000 , + HWPfPermonACbControlFec =0x00B9C0F0 , + HWPfPermonADltTimerLoFec =0x00B9C0F4 , + HWPfPermonADltTimerHiFec =0x00B9C0F8 , + HWPfPermonACbCountFec =0x00B9C100 , + HWPfPermonAAccExecTimerLoFec =0x00B9C104 , + HWPfPermonAAccExecTimerHiFec =0x00B9C108 , + HWPfPermonAExecTimerMinFec =0x00B9C200 , + HWPfPermonAExecTimerMaxFec =0x00B9C204 , + HWPfPermonAControlBusMon =0x00B9C400 , + HWPfPermonAConfigBusMon =0x00B9C404 , + HWPfPermonASkipCountBusMon =0x00B9C408 , + HWPfPermonAMinLatBusMon =0x00B9C40C , + HWPfPermonAMaxLatBusMon =0x00B9C500 , + HWPfPermonATotalLatLowBusMon =0x00B9C504 , + HWPfPermonATotalLatUpperBusMon =0x00B9C508 , + HWPfPermonATotalReqCntBusMon =0x00B9C50C , + HWPfQosmonBCntrlReg =0x00BA0000 , + HWPfQosmonBEvalOverflow0 =0x00BA0008 , + HWPfQosmonBEvalOverflow1 =0x00BA000C , + HWPfQosmonBDivTerm =0x00BA0010 , + HWPfQosmonBTickTerm =0x00BA0014 , + HWPfQosmonBEvalTerm =0x00BA0018 , + HWPfQosmonBAveTerm =0x00BA001C , + HWPfQosmonBForceEccErr =0x00BA0020 , + HWPfQosmonBEccErrDetect =0x00BA0024 , + HWPfQosmonBIterationConfig0Low =0x00BA0060 , + HWPfQosmonBIterationConfig0High =0x00BA0064 , + HWPfQosmonBIterationConfig1Low =0x00BA0068 , + HWPfQosmonBIterationConfig1High =0x00BA006C , + HWPfQosmonBIterationConfig2Low =0x00BA0070 , + HWPfQosmonBIterationConfig2High =0x00BA0074 , + HWPfQosmonBIterationConfig3Low =0x00BA0078 , + HWPfQosmonBIterationConfig3High =0x00BA007C , + HWPfQosmonBEvalMemAddr =0x00BA0080 , + HWPfQosmonBEvalMemData =0x00BA0084 , + HWPfQosmonBXaction =0x00BA00C0 , + HWPfQosmonBRemThres1Vf =0x00BA0400 , + HWPfQosmonBThres2Vf =0x00BA0404 , + HWPfQosmonBWeiFracVf =0x00BA0408 , + HWPfQosmonBRrWeiVf =0x00BA040C , + HWPfPermonBCntrlRegVf =0x00BA8000 , + HWPfPermonBCountVf =0x00BA8008 , + HWPfPermonBKCntLoVf =0x00BA8010 , + HWPfPermonBKCntHiVf =0x00BA8014 , + HWPfPermonBDeltaCntLoVf =0x00BA8020 , + HWPfPermonBDeltaCntHiVf =0x00BA8024 , + HWPfPermonBVersionReg =0x00BAC000 , + HWPfPermonBCbControlFec =0x00BAC0F0 , + HWPfPermonBDltTimerLoFec =0x00BAC0F4 , + HWPfPermonBDltTimerHiFec =0x00BAC0F8 , + HWPfPermonBCbCountFec =0x00BAC100 , + HWPfPermonBAccExecTimerLoFec =0x00BAC104 , + HWPfPermonBAccExecTimerHiFec =0x00BAC108 , + HWPfPermonBExecTimerMinFec =0x00BAC200 , + HWPfPermonBExecTimerMaxFec =0x00BAC204 , + HWPfPermonBControlBusMon =0x00BAC400 , + HWPfPermonBConfigBusMon =0x00BAC404 , + HWPfPermonBSkipCountBusMon =0x00BAC408 , + HWPfPermonBMinLatBusMon =0x00BAC40C , + HWPfPermonBMaxLatBusMon =0x00BAC500 , + HWPfPermonBTotalLatLowBusMon =0x00BAC504 , + HWPfPermonBTotalLatUpperBusMon =0x00BAC508 , + HWPfPermonBTotalReqCntBusMon =0x00BAC50C , + HWPfFecUl5gCntrlReg =0x00BC0000 , + HWPfFecUl5gI2MThreshReg =0x00BC0004 , + HWPfFecUl5gVersionReg =0x00BC0100 , + HWPfFecUl5gFcwStatusReg =0x00BC0104 , + HWPfFecUl5gWarnReg =0x00BC0108 , + HwPfFecUl5gIbDebugReg =0x00BC0200 , + HwPfFecUl5gObLlrDebugReg =0x00BC0204 , + HwPfFecUl5gObHarqDebugReg =0x00BC0208 , + HwPfFecUl5g1CntrlReg =0x00BC1000 , + HwPfFecUl5g1I2MThreshReg =0x00BC1004 , + HwPfFecUl5g1VersionReg =0x00BC1100 , + HwPfFecUl5g1FcwStatusReg =0x00BC1104 , + HwPfFecUl5g1WarnReg =0x00BC1108 , + HwPfFecUl5g1IbDebugReg =0x00BC1200 , + HwPfFecUl5g1ObLlrDebugReg =0x00BC1204 , + HwPfFecUl5g1ObHarqDebugReg =0x00BC1208 , + HwPfFecUl5g2CntrlReg =0x00BC2000 , + HwPfFecUl5g2I2MThreshReg =0x00BC2004 , + HwPfFecUl5g2VersionReg =0x00BC2100 , + HwPfFecUl5g2FcwStatusReg =0x00BC2104 , + HwPfFecUl5g2WarnReg =0x00BC2108 , + HwPfFecUl5g2IbDebugReg =0x00BC2200 , + HwPfFecUl5g2ObLlrDebugReg =0x00BC2204 , + HwPfFecUl5g2ObHarqDebugReg =0x00BC2208 , + HwPfFecUl5g3CntrlReg =0x00BC3000 , + HwPfFecUl5g3I2MThreshReg =0x00BC3004 , + HwPfFecUl5g3VersionReg =0x00BC3100 , + HwPfFecUl5g3FcwStatusReg =0x00BC3104 , + HwPfFecUl5g3WarnReg =0x00BC3108 , + HwPfFecUl5g3IbDebugReg =0x00BC3200 , + HwPfFecUl5g3ObLlrDebugReg =0x00BC3204 , + HwPfFecUl5g3ObHarqDebugReg =0x00BC3208 , + HwPfFecUl5g4CntrlReg =0x00BC4000 , + HwPfFecUl5g4I2MThreshReg =0x00BC4004 , + HwPfFecUl5g4VersionReg =0x00BC4100 , + HwPfFecUl5g4FcwStatusReg =0x00BC4104 , + HwPfFecUl5g4WarnReg =0x00BC4108 , + HwPfFecUl5g4IbDebugReg =0x00BC4200 , + HwPfFecUl5g4ObLlrDebugReg =0x00BC4204 , + HwPfFecUl5g4ObHarqDebugReg =0x00BC4208 , + HwPfFecUl5g5CntrlReg =0x00BC5000 , + HwPfFecUl5g5I2MThreshReg =0x00BC5004 , + HwPfFecUl5g5VersionReg =0x00BC5100 , + HwPfFecUl5g5FcwStatusReg =0x00BC5104 , + HwPfFecUl5g5WarnReg =0x00BC5108 , + HwPfFecUl5g5IbDebugReg =0x00BC5200 , + HwPfFecUl5g5ObLlrDebugReg =0x00BC5204 , + HwPfFecUl5g5ObHarqDebugReg =0x00BC5208 , + HwPfFecUl5g6CntrlReg =0x00BC6000 , + HwPfFecUl5g6I2MThreshReg =0x00BC6004 , + HwPfFecUl5g6VersionReg =0x00BC6100 , + HwPfFecUl5g6FcwStatusReg =0x00BC6104 , + HwPfFecUl5g6WarnReg =0x00BC6108 , + HwPfFecUl5g6IbDebugReg =0x00BC6200 , + HwPfFecUl5g6ObLlrDebugReg =0x00BC6204 , + HwPfFecUl5g6ObHarqDebugReg =0x00BC6208 , + HwPfFecUl5g7CntrlReg =0x00BC7000 , + HwPfFecUl5g7I2MThreshReg =0x00BC7004 , + HwPfFecUl5g7VersionReg =0x00BC7100 , + HwPfFecUl5g7FcwStatusReg =0x00BC7104 , + HwPfFecUl5g7WarnReg =0x00BC7108 , + HwPfFecUl5g7IbDebugReg =0x00BC7200 , + HwPfFecUl5g7ObLlrDebugReg =0x00BC7204 , + HwPfFecUl5g7ObHarqDebugReg =0x00BC7208 , + HwPfFecUl5g8CntrlReg =0x00BC8000 , + HwPfFecUl5g8I2MThreshReg =0x00BC8004 , + HwPfFecUl5g8VersionReg =0x00BC8100 , + HwPfFecUl5g8FcwStatusReg =0x00BC8104 , + HwPfFecUl5g8WarnReg =0x00BC8108 , + HwPfFecUl5g8IbDebugReg =0x00BC8200 , + HwPfFecUl5g8ObLlrDebugReg =0x00BC8204 , + HwPfFecUl5g8ObHarqDebugReg =0x00BC8208 , + HWPfFecDl5gCntrlReg =0x00BCF000 , + HWPfFecDl5gI2MThreshReg =0x00BCF004 , + HWPfFecDl5gVersionReg =0x00BCF100 , + HWPfFecDl5gFcwStatusReg =0x00BCF104 , + HWPfFecDl5gWarnReg =0x00BCF108 , + HWPfFecUlVersionReg =0x00BD0000 , + HWPfFecUlControlReg =0x00BD0004 , + HWPfFecUlStatusReg =0x00BD0008 , + HWPfFecDlVersionReg =0x00BDF000 , + HWPfFecDlClusterConfigReg =0x00BDF004 , + HWPfFecDlBurstThres =0x00BDF00C , + HWPfFecDlClusterStatusReg0 =0x00BDF040 , + HWPfFecDlClusterStatusReg1 =0x00BDF044 , + HWPfFecDlClusterStatusReg2 =0x00BDF048 , + HWPfFecDlClusterStatusReg3 =0x00BDF04C , + HWPfFecDlClusterStatusReg4 =0x00BDF050 , + HWPfFecDlClusterStatusReg5 =0x00BDF054 , + HWPfChaFabPllPllrst =0x00C40000 , + HWPfChaFabPllClk0 =0x00C40004 , + HWPfChaFabPllClk1 =0x00C40008 , + HWPfChaFabPllBwadj =0x00C4000C , + HWPfChaFabPllLbw =0x00C40010 , + HWPfChaFabPllResetq =0x00C40014 , + HWPfChaFabPllPhshft0 =0x00C40018 , + HWPfChaFabPllPhshft1 =0x00C4001C , + HWPfChaFabPllDivq0 =0x00C40020 , + HWPfChaFabPllDivq1 =0x00C40024 , + HWPfChaFabPllDivq2 =0x00C40028 , + HWPfChaFabPllDivq3 =0x00C4002C , + HWPfChaFabPllDivq4 =0x00C40030 , + HWPfChaFabPllDivq5 =0x00C40034 , + HWPfChaFabPllDivq6 =0x00C40038 , + HWPfChaFabPllDivq7 =0x00C4003C , + HWPfChaDl5gPllPllrst =0x00C40080 , + HWPfChaDl5gPllClk0 =0x00C40084 , + HWPfChaDl5gPllClk1 =0x00C40088 , + HWPfChaDl5gPllBwadj =0x00C4008C , + HWPfChaDl5gPllLbw =0x00C40090 , + HWPfChaDl5gPllResetq =0x00C40094 , + HWPfChaDl5gPllPhshft0 =0x00C40098 , + HWPfChaDl5gPllPhshft1 =0x00C4009C , + HWPfChaDl5gPllDivq0 =0x00C400A0 , + HWPfChaDl5gPllDivq1 =0x00C400A4 , + HWPfChaDl5gPllDivq2 =0x00C400A8 , + HWPfChaDl5gPllDivq3 =0x00C400AC , + HWPfChaDl5gPllDivq4 =0x00C400B0 , + HWPfChaDl5gPllDivq5 =0x00C400B4 , + HWPfChaDl5gPllDivq6 =0x00C400B8 , + HWPfChaDl5gPllDivq7 =0x00C400BC , + HWPfChaDl4gPllPllrst =0x00C40100 , + HWPfChaDl4gPllClk0 =0x00C40104 , + HWPfChaDl4gPllClk1 =0x00C40108 , + HWPfChaDl4gPllBwadj =0x00C4010C , + HWPfChaDl4gPllLbw =0x00C40110 , + HWPfChaDl4gPllResetq =0x00C40114 , + HWPfChaDl4gPllPhshft0 =0x00C40118 , + HWPfChaDl4gPllPhshft1 =0x00C4011C , + HWPfChaDl4gPllDivq0 =0x00C40120 , + HWPfChaDl4gPllDivq1 =0x00C40124 , + HWPfChaDl4gPllDivq2 =0x00C40128 , + HWPfChaDl4gPllDivq3 =0x00C4012C , + HWPfChaDl4gPllDivq4 =0x00C40130 , + HWPfChaDl4gPllDivq5 =0x00C40134 , + HWPfChaDl4gPllDivq6 =0x00C40138 , + HWPfChaDl4gPllDivq7 =0x00C4013C , + HWPfChaUl5gPllPllrst =0x00C40180 , + HWPfChaUl5gPllClk0 =0x00C40184 , + HWPfChaUl5gPllClk1 =0x00C40188 , + HWPfChaUl5gPllBwadj =0x00C4018C , + HWPfChaUl5gPllLbw =0x00C40190 , + HWPfChaUl5gPllResetq =0x00C40194 , + HWPfChaUl5gPllPhshft0 =0x00C40198 , + HWPfChaUl5gPllPhshft1 =0x00C4019C , + HWPfChaUl5gPllDivq0 =0x00C401A0 , + HWPfChaUl5gPllDivq1 =0x00C401A4 , + HWPfChaUl5gPllDivq2 =0x00C401A8 , + HWPfChaUl5gPllDivq3 =0x00C401AC , + HWPfChaUl5gPllDivq4 =0x00C401B0 , + HWPfChaUl5gPllDivq5 =0x00C401B4 , + HWPfChaUl5gPllDivq6 =0x00C401B8 , + HWPfChaUl5gPllDivq7 =0x00C401BC , + HWPfChaUl4gPllPllrst =0x00C40200 , + HWPfChaUl4gPllClk0 =0x00C40204 , + HWPfChaUl4gPllClk1 =0x00C40208 , + HWPfChaUl4gPllBwadj =0x00C4020C , + HWPfChaUl4gPllLbw =0x00C40210 , + HWPfChaUl4gPllResetq =0x00C40214 , + HWPfChaUl4gPllPhshft0 =0x00C40218 , + HWPfChaUl4gPllPhshft1 =0x00C4021C , + HWPfChaUl4gPllDivq0 =0x00C40220 , + HWPfChaUl4gPllDivq1 =0x00C40224 , + HWPfChaUl4gPllDivq2 =0x00C40228 , + HWPfChaUl4gPllDivq3 =0x00C4022C , + HWPfChaUl4gPllDivq4 =0x00C40230 , + HWPfChaUl4gPllDivq5 =0x00C40234 , + HWPfChaUl4gPllDivq6 =0x00C40238 , + HWPfChaUl4gPllDivq7 =0x00C4023C , + HWPfChaDdrPllPllrst =0x00C40280 , + HWPfChaDdrPllClk0 =0x00C40284 , + HWPfChaDdrPllClk1 =0x00C40288 , + HWPfChaDdrPllBwadj =0x00C4028C , + HWPfChaDdrPllLbw =0x00C40290 , + HWPfChaDdrPllResetq =0x00C40294 , + HWPfChaDdrPllPhshft0 =0x00C40298 , + HWPfChaDdrPllPhshft1 =0x00C4029C , + HWPfChaDdrPllDivq0 =0x00C402A0 , + HWPfChaDdrPllDivq1 =0x00C402A4 , + HWPfChaDdrPllDivq2 =0x00C402A8 , + HWPfChaDdrPllDivq3 =0x00C402AC , + HWPfChaDdrPllDivq4 =0x00C402B0 , + HWPfChaDdrPllDivq5 =0x00C402B4 , + HWPfChaDdrPllDivq6 =0x00C402B8 , + HWPfChaDdrPllDivq7 =0x00C402BC , + HWPfChaErrStatus =0x00C40400 , + HWPfChaErrMask =0x00C40404 , + HWPfChaDebugPcieMsiFifo =0x00C40410 , + HWPfChaDebugDdrMsiFifo =0x00C40414 , + HWPfChaDebugMiscMsiFifo =0x00C40418 , + HWPfChaPwmSet =0x00C40420 , + HWPfChaDdrRstStatus =0x00C40430 , + HWPfChaDdrStDoneStatus =0x00C40434 , + HWPfChaDdrWbRstCfg =0x00C40438 , + HWPfChaDdrApbRstCfg =0x00C4043C , + HWPfChaDdrPhyRstCfg =0x00C40440 , + HWPfChaDdrCpuRstCfg =0x00C40444 , + HWPfChaDdrSifRstCfg =0x00C40448 , + HWPfChaPadcfgPcomp0 =0x00C41000 , + HWPfChaPadcfgNcomp0 =0x00C41004 , + HWPfChaPadcfgOdt0 =0x00C41008 , + HWPfChaPadcfgProtect0 =0x00C4100C , + HWPfChaPreemphasisProtect0 =0x00C41010 , + HWPfChaPreemphasisCompen0 =0x00C41040 , + HWPfChaPreemphasisOdten0 =0x00C41044 , + HWPfChaPadcfgPcomp1 =0x00C41100 , + HWPfChaPadcfgNcomp1 =0x00C41104 , + HWPfChaPadcfgOdt1 =0x00C41108 , + HWPfChaPadcfgProtect1 =0x00C4110C , + HWPfChaPreemphasisProtect1 =0x00C41110 , + HWPfChaPreemphasisCompen1 =0x00C41140 , + HWPfChaPreemphasisOdten1 =0x00C41144 , + HWPfChaPadcfgPcomp2 =0x00C41200 , + HWPfChaPadcfgNcomp2 =0x00C41204 , + HWPfChaPadcfgOdt2 =0x00C41208 , + HWPfChaPadcfgProtect2 =0x00C4120C , + HWPfChaPreemphasisProtect2 =0x00C41210 , + HWPfChaPreemphasisCompen2 =0x00C41240 , + HWPfChaPreemphasisOdten4 =0x00C41444 , + HWPfChaPreemphasisOdten2 =0x00C41244 , + HWPfChaPadcfgPcomp3 =0x00C41300 , + HWPfChaPadcfgNcomp3 =0x00C41304 , + HWPfChaPadcfgOdt3 =0x00C41308 , + HWPfChaPadcfgProtect3 =0x00C4130C , + HWPfChaPreemphasisProtect3 =0x00C41310 , + HWPfChaPreemphasisCompen3 =0x00C41340 , + HWPfChaPreemphasisOdten3 =0x00C41344 , + HWPfChaPadcfgPcomp4 =0x00C41400 , + HWPfChaPadcfgNcomp4 =0x00C41404 , + HWPfChaPadcfgOdt4 =0x00C41408 , + HWPfChaPadcfgProtect4 =0x00C4140C , + HWPfChaPreemphasisProtect4 =0x00C41410 , + HWPfChaPreemphasisCompen4 =0x00C41440 , + HWPfHiVfToPfDbellVf =0x00C80000 , + HWPfHiPfToVfDbellVf =0x00C80008 , + HWPfHiInfoRingBaseLoVf =0x00C80010 , + HWPfHiInfoRingBaseHiVf =0x00C80014 , + HWPfHiInfoRingPointerVf =0x00C80018 , + HWPfHiInfoRingIntWrEnVf =0x00C80020 , + HWPfHiInfoRingPf2VfWrEnVf =0x00C80024 , + HWPfHiMsixVectorMapperVf =0x00C80060 , + HWPfHiModuleVersionReg =0x00C84000 , + HWPfHiIosf2axiErrLogReg =0x00C84004 , + HWPfHiHardResetReg =0x00C84008 , + HWPfHi5GHardResetReg =0x00C8400C , + HWPfHiInfoRingBaseLoRegPf =0x00C84010 , + HWPfHiInfoRingBaseHiRegPf =0x00C84014 , + HWPfHiInfoRingPointerRegPf =0x00C84018 , + HWPfHiInfoRingIntWrEnRegPf =0x00C84020 , + HWPfHiInfoRingVf2pfLoWrEnReg =0x00C84024 , + HWPfHiInfoRingVf2pfHiWrEnReg =0x00C84028 , + HWPfHiLogParityErrStatusReg =0x00C8402C , + HWPfHiLogDataParityErrorVfStatusLo =0x00C84030 , + HWPfHiLogDataParityErrorVfStatusHi =0x00C84034 , + HWPfHiBlockTransmitOnErrorEn =0x00C84038 , + HWPfHiCfgMsiIntWrEnRegPf =0x00C84040 , + HWPfHiCfgMsiVf2pfLoWrEnReg =0x00C84044 , + HWPfHiCfgMsiVf2pfHighWrEnReg =0x00C84048 , + HWPfHiMsixVectorMapperPf =0x00C84060 , + HWPfHiApbWrWaitTime =0x00C84100 , + HWPfHiXCounterMaxValue =0x00C84104 , + HWPfHiPfMode =0x00C84108 , + HWPfHiClkGateHystReg =0x00C8410C , + HWPfHiSnoopBitsReg =0x00C84110 , + HWPfHiMsiDropEnableReg =0x00C84114 , + HWPfHiMsiStatReg =0x00C84120 , + HWPfHiFifoOflStatReg =0x00C84124 , + HWPfHiHiDebugReg =0x00C841F4 , + HWPfHiDebugMemSnoopMsiFifo =0x00C841F8 , + HWPfHiDebugMemSnoopInputFifo =0x00C841FC , + HWPfHiMsixMappingConfig =0x00C84200 , + HWPfHiJunkReg =0x00C8FF00 , + HWPfDdrUmmcVer =0x00D00000 , + HWPfDdrUmmcCap =0x00D00010 , + HWPfDdrUmmcCtrl =0x00D00020 , + HWPfDdrMpcPe =0x00D00080 , + HWPfDdrMpcPpri3 =0x00D00090 , + HWPfDdrMpcPpri2 =0x00D000A0 , + HWPfDdrMpcPpri1 =0x00D000B0 , + HWPfDdrMpcPpri0 =0x00D000C0 , + HWPfDdrMpcPrwgrpCtrl =0x00D000D0 , + HWPfDdrMpcPbw7 =0x00D000E0 , + HWPfDdrMpcPbw6 =0x00D000F0 , + HWPfDdrMpcPbw5 =0x00D00100 , + HWPfDdrMpcPbw4 =0x00D00110 , + HWPfDdrMpcPbw3 =0x00D00120 , + HWPfDdrMpcPbw2 =0x00D00130 , + HWPfDdrMpcPbw1 =0x00D00140 , + HWPfDdrMpcPbw0 =0x00D00150 , + HWPfDdrMemoryInit =0x00D00200 , + HWPfDdrMemoryInitDone =0x00D00210 , + HWPfDdrMemInitPhyTrng0 =0x00D00240 , + HWPfDdrMemInitPhyTrng1 =0x00D00250 , + HWPfDdrMemInitPhyTrng2 =0x00D00260 , + HWPfDdrMemInitPhyTrng3 =0x00D00270 , + HWPfDdrBcDram =0x00D003C0 , + HWPfDdrBcAddrMap =0x00D003D0 , + HWPfDdrBcRef =0x00D003E0 , + HWPfDdrBcTim0 =0x00D00400 , + HWPfDdrBcTim1 =0x00D00410 , + HWPfDdrBcTim2 =0x00D00420 , + HWPfDdrBcTim3 =0x00D00430 , + HWPfDdrBcTim4 =0x00D00440 , + HWPfDdrBcTim5 =0x00D00450 , + HWPfDdrBcTim6 =0x00D00460 , + HWPfDdrBcTim7 =0x00D00470 , + HWPfDdrBcTim8 =0x00D00480 , + HWPfDdrBcTim9 =0x00D00490 , + HWPfDdrBcTim10 =0x00D004A0 , + HWPfDdrBcTim12 =0x00D004C0 , + HWPfDdrDfiInit =0x00D004D0 , + HWPfDdrDfiInitComplete =0x00D004E0 , + HWPfDdrDfiTim0 =0x00D004F0 , + HWPfDdrDfiTim1 =0x00D00500 , + HWPfDdrDfiPhyUpdEn =0x00D00530 , + HWPfDdrMemStatus =0x00D00540 , + HWPfDdrUmmcErrStatus =0x00D00550 , + HWPfDdrUmmcIntStatus =0x00D00560 , + HWPfDdrUmmcIntEn =0x00D00570 , + HWPfDdrPhyRdLatency =0x00D48400 , + HWPfDdrPhyRdLatencyDbi =0x00D48410 , + HWPfDdrPhyWrLatency =0x00D48420 , + HWPfDdrPhyTrngType =0x00D48430 , + HWPfDdrPhyMrsTiming2 =0x00D48440 , + HWPfDdrPhyMrsTiming0 =0x00D48450 , + HWPfDdrPhyMrsTiming1 =0x00D48460 , + HWPfDdrPhyDramTmrd =0x00D48470 , + HWPfDdrPhyDramTmod =0x00D48480 , + HWPfDdrPhyDramTwpre =0x00D48490 , + HWPfDdrPhyDramTrfc =0x00D484A0 , + HWPfDdrPhyDramTrwtp =0x00D484B0 , + HWPfDdrPhyMr01Dimm =0x00D484C0 , + HWPfDdrPhyMr01DimmDbi =0x00D484D0 , + HWPfDdrPhyMr23Dimm =0x00D484E0 , + HWPfDdrPhyMr45Dimm =0x00D484F0 , + HWPfDdrPhyMr67Dimm =0x00D48500 , + HWPfDdrPhyWrlvlWwRdlvlRr =0x00D48510 , + HWPfDdrPhyOdtEn =0x00D48520 , + HWPfDdrPhyFastTrng =0x00D48530 , + HWPfDdrPhyDynTrngGap =0x00D48540 , + HWPfDdrPhyDynRcalGap =0x00D48550 , + HWPfDdrPhyIdletimeout =0x00D48560 , + HWPfDdrPhyRstCkeGap =0x00D48570 , + HWPfDdrPhyCkeMrsGap =0x00D48580 , + HWPfDdrPhyMemVrefMidVal =0x00D48590 , + HWPfDdrPhyVrefStep =0x00D485A0 , + HWPfDdrPhyVrefThreshold =0x00D485B0 , + HWPfDdrPhyPhyVrefMidVal =0x00D485C0 , + HWPfDdrPhyDqsCountMax =0x00D485D0 , + HWPfDdrPhyDqsCountNum =0x00D485E0 , + HWPfDdrPhyDramRow =0x00D485F0 , + HWPfDdrPhyDramCol =0x00D48600 , + HWPfDdrPhyDramBgBa =0x00D48610 , + HWPfDdrPhyDynamicUpdreqrel =0x00D48620 , + HWPfDdrPhyVrefLimits =0x00D48630 , + HWPfDdrPhyIdtmTcStatus =0x00D6C020 , + HWPfDdrPhyIdtmFwVersion =0x00D6C410 , + HWPfDdrPhyRdlvlGateInitDelay =0x00D70000 , + HWPfDdrPhyRdenSmplabc =0x00D70008 , + HWPfDdrPhyVrefNibble0 =0x00D7000C , + HWPfDdrPhyVrefNibble1 =0x00D70010 , + HWPfDdrPhyRdlvlGateDqsSmpl0 =0x00D70014 , + HWPfDdrPhyRdlvlGateDqsSmpl1 =0x00D70018 , + HWPfDdrPhyRdlvlGateDqsSmpl2 =0x00D7001C , + HWPfDdrPhyDqsCount =0x00D70020 , + HWPfDdrPhyWrlvlRdlvlGateStatus =0x00D70024 , + HWPfDdrPhyErrorFlags =0x00D70028 , + HWPfDdrPhyPowerDown =0x00D70030 , + HWPfDdrPhyPrbsSeedByte0 =0x00D70034 , + HWPfDdrPhyPrbsSeedByte1 =0x00D70038 , + HWPfDdrPhyPcompDq =0x00D70040 , + HWPfDdrPhyNcompDq =0x00D70044 , + HWPfDdrPhyPcompDqs =0x00D70048 , + HWPfDdrPhyNcompDqs =0x00D7004C , + HWPfDdrPhyPcompCmd =0x00D70050 , + HWPfDdrPhyNcompCmd =0x00D70054 , + HWPfDdrPhyPcompCk =0x00D70058 , + HWPfDdrPhyNcompCk =0x00D7005C , + HWPfDdrPhyRcalOdtDq =0x00D70060 , + HWPfDdrPhyRcalOdtDqs =0x00D70064 , + HWPfDdrPhyRcalMask1 =0x00D70068 , + HWPfDdrPhyRcalMask2 =0x00D7006C , + HWPfDdrPhyRcalCtrl =0x00D70070 , + HWPfDdrPhyRcalCnt =0x00D70074 , + HWPfDdrPhyRcalOverride =0x00D70078 , + HWPfDdrPhyRcalGateen =0x00D7007C , + HWPfDdrPhyCtrl =0x00D70080 , + HWPfDdrPhyWrlvlAlg =0x00D70084 , + HWPfDdrPhyRcalVreftTxcmdOdt =0x00D70088 , + HWPfDdrPhyRdlvlGateParam =0x00D7008C , + HWPfDdrPhyRdlvlGateParam2 =0x00D70090 , + HWPfDdrPhyRcalVreftTxdata =0x00D70094 , + HWPfDdrPhyCmdIntDelay =0x00D700A4 , + HWPfDdrPhyAlertN =0x00D700A8 , + HWPfDdrPhyTrngReqWpre2tck =0x00D700AC , + HWPfDdrPhyCmdPhaseSel =0x00D700B4 , + HWPfDdrPhyCmdDcdl =0x00D700B8 , + HWPfDdrPhyCkDcdl =0x00D700BC , + HWPfDdrPhySwTrngCtrl1 =0x00D700C0 , + HWPfDdrPhySwTrngCtrl2 =0x00D700C4 , + HWPfDdrPhyRcalPcompRden =0x00D700C8 , + HWPfDdrPhyRcalNcompRden =0x00D700CC , + HWPfDdrPhyRcalCompen =0x00D700D0 , + HWPfDdrPhySwTrngRdqs =0x00D700D4 , + HWPfDdrPhySwTrngWdqs =0x00D700D8 , + HWPfDdrPhySwTrngRdena =0x00D700DC , + HWPfDdrPhySwTrngRdenb =0x00D700E0 , + HWPfDdrPhySwTrngRdenc =0x00D700E4 , + HWPfDdrPhySwTrngWdq =0x00D700E8 , + HWPfDdrPhySwTrngRdq =0x00D700EC , + HWPfDdrPhyPcfgHmValue =0x00D700F0 , + HWPfDdrPhyPcfgTimerValue =0x00D700F4 , + HWPfDdrPhyPcfgSoftwareTraining =0x00D700F8 , + HWPfDdrPhyPcfgMcStatus =0x00D700FC , + HWPfDdrPhyWrlvlPhRank0 =0x00D70100 , + HWPfDdrPhyRdenPhRank0 =0x00D70104 , + HWPfDdrPhyRdenIntRank0 =0x00D70108 , + HWPfDdrPhyRdqsDcdlRank0 =0x00D7010C , + HWPfDdrPhyRdqsShadowDcdlRank0 =0x00D70110 , + HWPfDdrPhyWdqsDcdlRank0 =0x00D70114 , + HWPfDdrPhyWdmDcdlShadowRank0 =0x00D70118 , + HWPfDdrPhyWdmDcdlRank0 =0x00D7011C , + HWPfDdrPhyDbiDcdlRank0 =0x00D70120 , + HWPfDdrPhyRdenDcdlaRank0 =0x00D70124 , + HWPfDdrPhyDbiDcdlShadowRank0 =0x00D70128 , + HWPfDdrPhyRdenDcdlbRank0 =0x00D7012C , + HWPfDdrPhyWdqsShadowDcdlRank0 =0x00D70130 , + HWPfDdrPhyRdenDcdlcRank0 =0x00D70134 , + HWPfDdrPhyRdenShadowDcdlaRank0 =0x00D70138 , + HWPfDdrPhyWrlvlIntRank0 =0x00D7013C , + HWPfDdrPhyRdqDcdlBit0Rank0 =0x00D70200 , + HWPfDdrPhyRdqDcdlShadowBit0Rank0 =0x00D70204 , + HWPfDdrPhyWdqDcdlBit0Rank0 =0x00D70208 , + HWPfDdrPhyWdqDcdlShadowBit0Rank0 =0x00D7020C , + HWPfDdrPhyRdqDcdlBit1Rank0 =0x00D70240 , + HWPfDdrPhyRdqDcdlShadowBit1Rank0 =0x00D70244 , + HWPfDdrPhyWdqDcdlBit1Rank0 =0x00D70248 , + HWPfDdrPhyWdqDcdlShadowBit1Rank0 =0x00D7024C , + HWPfDdrPhyRdqDcdlBit2Rank0 =0x00D70280 , + HWPfDdrPhyRdqDcdlShadowBit2Rank0 =0x00D70284 , + HWPfDdrPhyWdqDcdlBit2Rank0 =0x00D70288 , + HWPfDdrPhyWdqDcdlShadowBit2Rank0 =0x00D7028C , + HWPfDdrPhyRdqDcdlBit3Rank0 =0x00D702C0 , + HWPfDdrPhyRdqDcdlShadowBit3Rank0 =0x00D702C4 , + HWPfDdrPhyWdqDcdlBit3Rank0 =0x00D702C8 , + HWPfDdrPhyWdqDcdlShadowBit3Rank0 =0x00D702CC , + HWPfDdrPhyRdqDcdlBit4Rank0 =0x00D70300 , + HWPfDdrPhyRdqDcdlShadowBit4Rank0 =0x00D70304 , + HWPfDdrPhyWdqDcdlBit4Rank0 =0x00D70308 , + HWPfDdrPhyWdqDcdlShadowBit4Rank0 =0x00D7030C , + HWPfDdrPhyRdqDcdlBit5Rank0 =0x00D70340 , + HWPfDdrPhyRdqDcdlShadowBit5Rank0 =0x00D70344 , + HWPfDdrPhyWdqDcdlBit5Rank0 =0x00D70348 , + HWPfDdrPhyWdqDcdlShadowBit5Rank0 =0x00D7034C , + HWPfDdrPhyRdqDcdlBit6Rank0 =0x00D70380 , + HWPfDdrPhyRdqDcdlShadowBit6Rank0 =0x00D70384 , + HWPfDdrPhyWdqDcdlBit6Rank0 =0x00D70388 , + HWPfDdrPhyWdqDcdlShadowBit6Rank0 =0x00D7038C , + HWPfDdrPhyRdqDcdlBit7Rank0 =0x00D703C0 , + HWPfDdrPhyRdqDcdlShadowBit7Rank0 =0x00D703C4 , + HWPfDdrPhyWdqDcdlBit7Rank0 =0x00D703C8 , + HWPfDdrPhyWdqDcdlShadowBit7Rank0 =0x00D703CC , + HWPfDdrPhyIdtmStatus =0x00D740D0 , + HWPfDdrPhyIdtmError =0x00D74110 , + HWPfDdrPhyIdtmDebug =0x00D74120 , + HWPfDdrPhyIdtmDebugInt =0x00D74130 , + HwPfPcieLnAsicCfgovr =0x00D80000 , + HwPfPcieLnAclkmixer =0x00D80004 , + HwPfPcieLnTxrampfreq =0x00D80008 , + HwPfPcieLnLanetest =0x00D8000C , + HwPfPcieLnDcctrl =0x00D80010 , + HwPfPcieLnDccmeas =0x00D80014 , + HwPfPcieLnDccovrAclk =0x00D80018 , + HwPfPcieLnDccovrTxa =0x00D8001C , + HwPfPcieLnDccovrTxk =0x00D80020 , + HwPfPcieLnDccovrDclk =0x00D80024 , + HwPfPcieLnDccovrEclk =0x00D80028 , + HwPfPcieLnDcctrimAclk =0x00D8002C , + HwPfPcieLnDcctrimTx =0x00D80030 , + HwPfPcieLnDcctrimDclk =0x00D80034 , + HwPfPcieLnDcctrimEclk =0x00D80038 , + HwPfPcieLnQuadCtrl =0x00D8003C , + HwPfPcieLnQuadCorrIndex =0x00D80040 , + HwPfPcieLnQuadCorrStatus =0x00D80044 , + HwPfPcieLnAsicRxovr1 =0x00D80048 , + HwPfPcieLnAsicRxovr2 =0x00D8004C , + HwPfPcieLnAsicEqinfovr =0x00D80050 , + HwPfPcieLnRxcsr =0x00D80054 , + HwPfPcieLnRxfectrl =0x00D80058 , + HwPfPcieLnRxtest =0x00D8005C , + HwPfPcieLnEscount =0x00D80060 , + HwPfPcieLnCdrctrl =0x00D80064 , + HwPfPcieLnCdrctrl2 =0x00D80068 , + HwPfPcieLnCdrcfg0Ctrl0 =0x00D8006C , + HwPfPcieLnCdrcfg0Ctrl1 =0x00D80070 , + HwPfPcieLnCdrcfg0Ctrl2 =0x00D80074 , + HwPfPcieLnCdrcfg1Ctrl0 =0x00D80078 , + HwPfPcieLnCdrcfg1Ctrl1 =0x00D8007C , + HwPfPcieLnCdrcfg1Ctrl2 =0x00D80080 , + HwPfPcieLnCdrcfg2Ctrl0 =0x00D80084 , + HwPfPcieLnCdrcfg2Ctrl1 =0x00D80088 , + HwPfPcieLnCdrcfg2Ctrl2 =0x00D8008C , + HwPfPcieLnCdrcfg3Ctrl0 =0x00D80090 , + HwPfPcieLnCdrcfg3Ctrl1 =0x00D80094 , + HwPfPcieLnCdrcfg3Ctrl2 =0x00D80098 , + HwPfPcieLnCdrphase =0x00D8009C , + HwPfPcieLnCdrfreq =0x00D800A0 , + HwPfPcieLnCdrstatusPhase =0x00D800A4 , + HwPfPcieLnCdrstatusFreq =0x00D800A8 , + HwPfPcieLnCdroffset =0x00D800AC , + HwPfPcieLnRxvosctl =0x00D800B0 , + HwPfPcieLnRxvosctl2 =0x00D800B4 , + HwPfPcieLnRxlosctl =0x00D800B8 , + HwPfPcieLnRxlos =0x00D800BC , + HwPfPcieLnRxlosvval =0x00D800C0 , + HwPfPcieLnRxvosd0 =0x00D800C4 , + HwPfPcieLnRxvosd1 =0x00D800C8 , + HwPfPcieLnRxvosep0 =0x00D800CC , + HwPfPcieLnRxvosep1 =0x00D800D0 , + HwPfPcieLnRxvosen0 =0x00D800D4 , + HwPfPcieLnRxvosen1 =0x00D800D8 , + HwPfPcieLnRxvosafe =0x00D800DC , + HwPfPcieLnRxvosa0 =0x00D800E0 , + HwPfPcieLnRxvosa0Out =0x00D800E4 , + HwPfPcieLnRxvosa1 =0x00D800E8 , + HwPfPcieLnRxvosa1Out =0x00D800EC , + HwPfPcieLnRxmisc =0x00D800F0 , + HwPfPcieLnRxbeacon =0x00D800F4 , + HwPfPcieLnRxdssout =0x00D800F8 , + HwPfPcieLnRxdssout2 =0x00D800FC , + HwPfPcieLnAlphapctrl =0x00D80100 , + HwPfPcieLnAlphanctrl =0x00D80104 , + HwPfPcieLnAdaptctrl =0x00D80108 , + HwPfPcieLnAdaptctrl1 =0x00D8010C , + HwPfPcieLnAdaptstatus =0x00D80110 , + HwPfPcieLnAdaptvga1 =0x00D80114 , + HwPfPcieLnAdaptvga2 =0x00D80118 , + HwPfPcieLnAdaptvga3 =0x00D8011C , + HwPfPcieLnAdaptvga4 =0x00D80120 , + HwPfPcieLnAdaptboost1 =0x00D80124 , + HwPfPcieLnAdaptboost2 =0x00D80128 , + HwPfPcieLnAdaptboost3 =0x00D8012C , + HwPfPcieLnAdaptboost4 =0x00D80130 , + HwPfPcieLnAdaptsslms1 =0x00D80134 , + HwPfPcieLnAdaptsslms2 =0x00D80138 , + HwPfPcieLnAdaptvgaStatus =0x00D8013C , + HwPfPcieLnAdaptboostStatus =0x00D80140 , + HwPfPcieLnAdaptsslmsStatus1 =0x00D80144 , + HwPfPcieLnAdaptsslmsStatus2 =0x00D80148 , + HwPfPcieLnAfectrl1 =0x00D8014C , + HwPfPcieLnAfectrl2 =0x00D80150 , + HwPfPcieLnAfectrl3 =0x00D80154 , + HwPfPcieLnAfedefault1 =0x00D80158 , + HwPfPcieLnAfedefault2 =0x00D8015C , + HwPfPcieLnDfectrl1 =0x00D80160 , + HwPfPcieLnDfectrl2 =0x00D80164 , + HwPfPcieLnDfectrl3 =0x00D80168 , + HwPfPcieLnDfectrl4 =0x00D8016C , + HwPfPcieLnDfectrl5 =0x00D80170 , + HwPfPcieLnDfectrl6 =0x00D80174 , + HwPfPcieLnAfestatus1 =0x00D80178 , + HwPfPcieLnAfestatus2 =0x00D8017C , + HwPfPcieLnDfestatus1 =0x00D80180 , + HwPfPcieLnDfestatus2 =0x00D80184 , + HwPfPcieLnDfestatus3 =0x00D80188 , + HwPfPcieLnDfestatus4 =0x00D8018C , + HwPfPcieLnDfestatus5 =0x00D80190 , + HwPfPcieLnAlphastatus =0x00D80194 , + HwPfPcieLnFomctrl1 =0x00D80198 , + HwPfPcieLnFomctrl2 =0x00D8019C , + HwPfPcieLnFomctrl3 =0x00D801A0 , + HwPfPcieLnAclkcalStatus =0x00D801A4 , + HwPfPcieLnOffscorrStatus =0x00D801A8 , + HwPfPcieLnEyewidthStatus =0x00D801AC , + HwPfPcieLnEyeheightStatus =0x00D801B0 , + HwPfPcieLnAsicTxovr1 =0x00D801B4 , + HwPfPcieLnAsicTxovr2 =0x00D801B8 , + HwPfPcieLnAsicTxovr3 =0x00D801BC , + HwPfPcieLnTxbiasadjOvr =0x00D801C0 , + HwPfPcieLnTxcsr =0x00D801C4 , + HwPfPcieLnTxtest =0x00D801C8 , + HwPfPcieLnTxtestword =0x00D801CC , + HwPfPcieLnTxtestwordHigh =0x00D801D0 , + HwPfPcieLnTxdrive =0x00D801D4 , + HwPfPcieLnMtcsLn =0x00D801D8 , + HwPfPcieLnStatsumLn =0x00D801DC , + HwPfPcieLnRcbusScratch =0x00D801E0 , + HwPfPcieLnRcbusMinorrev =0x00D801F0 , + HwPfPcieLnRcbusMajorrev =0x00D801F4 , + HwPfPcieLnRcbusBlocktype =0x00D801F8 , + HwPfPcieSupPllcsr =0x00D80800 , + HwPfPcieSupPlldiv =0x00D80804 , + HwPfPcieSupPllcal =0x00D80808 , + HwPfPcieSupPllcalsts =0x00D8080C , + HwPfPcieSupPllmeas =0x00D80810 , + HwPfPcieSupPlldactrim =0x00D80814 , + HwPfPcieSupPllbiastrim =0x00D80818 , + HwPfPcieSupPllbwtrim =0x00D8081C , + HwPfPcieSupPllcaldly =0x00D80820 , + HwPfPcieSupRefclkonpclkctrl =0x00D80824 , + HwPfPcieSupPclkdelay =0x00D80828 , + HwPfPcieSupPhyconfig =0x00D8082C , + HwPfPcieSupRcalIntf =0x00D80830 , + HwPfPcieSupAuxcsr =0x00D80834 , + HwPfPcieSupVref =0x00D80838 , + HwPfPcieSupLinkmode =0x00D8083C , + HwPfPcieSupRrefcalctl =0x00D80840 , + HwPfPcieSupRrefcal =0x00D80844 , + HwPfPcieSupRrefcaldly =0x00D80848 , + HwPfPcieSupTximpcalctl =0x00D8084C , + HwPfPcieSupTximpcal =0x00D80850 , + HwPfPcieSupTximpoffset =0x00D80854 , + HwPfPcieSupTximpcaldly =0x00D80858 , + HwPfPcieSupRximpcalctl =0x00D8085C , + HwPfPcieSupRximpcal =0x00D80860 , + HwPfPcieSupRximpoffset =0x00D80864 , + HwPfPcieSupRximpcaldly =0x00D80868 , + HwPfPcieSupFence =0x00D8086C , + HwPfPcieSupMtcs =0x00D80870 , + HwPfPcieSupStatsum =0x00D809B8 , + HwPfPciePcsDpStatus0 =0x00D81000 , + HwPfPciePcsDpControl0 =0x00D81004 , + HwPfPciePcsPmaStatusLane0 =0x00D81008 , + HwPfPciePcsPipeStatusLane0 =0x00D8100C , + HwPfPciePcsTxdeemph0Lane0 =0x00D81010 , + HwPfPciePcsTxdeemph1Lane0 =0x00D81014 , + HwPfPciePcsInternalStatusLane0 =0x00D81018 , + HwPfPciePcsDpStatus1 =0x00D8101C , + HwPfPciePcsDpControl1 =0x00D81020 , + HwPfPciePcsPmaStatusLane1 =0x00D81024 , + HwPfPciePcsPipeStatusLane1 =0x00D81028 , + HwPfPciePcsTxdeemph0Lane1 =0x00D8102C , + HwPfPciePcsTxdeemph1Lane1 =0x00D81030 , + HwPfPciePcsInternalStatusLane1 =0x00D81034 , + HwPfPciePcsDpStatus2 =0x00D81038 , + HwPfPciePcsDpControl2 =0x00D8103C , + HwPfPciePcsPmaStatusLane2 =0x00D81040 , + HwPfPciePcsPipeStatusLane2 =0x00D81044 , + HwPfPciePcsTxdeemph0Lane2 =0x00D81048 , + HwPfPciePcsTxdeemph1Lane2 =0x00D8104C , + HwPfPciePcsInternalStatusLane2 =0x00D81050 , + HwPfPciePcsDpStatus3 =0x00D81054 , + HwPfPciePcsDpControl3 =0x00D81058 , + HwPfPciePcsPmaStatusLane3 =0x00D8105C , + HwPfPciePcsPipeStatusLane3 =0x00D81060 , + HwPfPciePcsTxdeemph0Lane3 =0x00D81064 , + HwPfPciePcsTxdeemph1Lane3 =0x00D81068 , + HwPfPciePcsInternalStatusLane3 =0x00D8106C , + HwPfPciePcsEbStatus0 =0x00D81070 , + HwPfPciePcsEbStatus1 =0x00D81074 , + HwPfPciePcsEbStatus2 =0x00D81078 , + HwPfPciePcsEbStatus3 =0x00D8107C , + HwPfPciePcsPllSettingPcieG1 =0x00D81088 , + HwPfPciePcsPllSettingPcieG2 =0x00D8108C , + HwPfPciePcsPllSettingPcieG3 =0x00D81090 , + HwPfPciePcsControl =0x00D81094 , + HwPfPciePcsEqControl =0x00D81098 , + HwPfPciePcsEqTimer =0x00D8109C , + HwPfPciePcsEqErrStatus =0x00D810A0 , + HwPfPciePcsEqErrCount =0x00D810A4 , + HwPfPciePcsStatus =0x00D810A8 , + HwPfPciePcsMiscRegister =0x00D810AC , + HwPfPciePcsObsControl =0x00D810B0 , + HwPfPciePcsPrbsCount0 =0x00D81200 , + HwPfPciePcsBistControl0 =0x00D81204 , + HwPfPciePcsBistStaticWord00 =0x00D81208 , + HwPfPciePcsBistStaticWord10 =0x00D8120C , + HwPfPciePcsBistStaticWord20 =0x00D81210 , + HwPfPciePcsBistStaticWord30 =0x00D81214 , + HwPfPciePcsPrbsCount1 =0x00D81220 , + HwPfPciePcsBistControl1 =0x00D81224 , + HwPfPciePcsBistStaticWord01 =0x00D81228 , + HwPfPciePcsBistStaticWord11 =0x00D8122C , + HwPfPciePcsBistStaticWord21 =0x00D81230 , + HwPfPciePcsBistStaticWord31 =0x00D81234 , + HwPfPciePcsPrbsCount2 =0x00D81240 , + HwPfPciePcsBistControl2 =0x00D81244 , + HwPfPciePcsBistStaticWord02 =0x00D81248 , + HwPfPciePcsBistStaticWord12 =0x00D8124C , + HwPfPciePcsBistStaticWord22 =0x00D81250 , + HwPfPciePcsBistStaticWord32 =0x00D81254 , + HwPfPciePcsPrbsCount3 =0x00D81260 , + HwPfPciePcsBistControl3 =0x00D81264 , + HwPfPciePcsBistStaticWord03 =0x00D81268 , + HwPfPciePcsBistStaticWord13 =0x00D8126C , + HwPfPciePcsBistStaticWord23 =0x00D81270 , + HwPfPciePcsBistStaticWord33 =0x00D81274 , + HwPfPcieGpexLtssmStateCntrl =0x00D90400 , + HwPfPcieGpexLtssmStateStatus =0x00D90404 , + HwPfPcieGpexSkipFreqTimer =0x00D90408 , + HwPfPcieGpexLaneSelect =0x00D9040C , + HwPfPcieGpexLaneDeskew =0x00D90410 , + HwPfPcieGpexRxErrorStatus =0x00D90414 , + HwPfPcieGpexLaneNumControl =0x00D90418 , + HwPfPcieGpexNFstControl =0x00D9041C , + HwPfPcieGpexLinkStatus =0x00D90420 , + HwPfPcieGpexAckReplayTimeout =0x00D90438 , + HwPfPcieGpexSeqNumberStatus =0x00D9043C , + HwPfPcieGpexCoreClkRatio =0x00D90440 , + HwPfPcieGpexDllTholdControl =0x00D90448 , + HwPfPcieGpexPmTimer =0x00D90450 , + HwPfPcieGpexPmeTimeout =0x00D90454 , + HwPfPcieGpexAspmL1Timer =0x00D90458 , + HwPfPcieGpexAspmReqTimer =0x00D9045C , + HwPfPcieGpexAspmL1Dis =0x00D90460 , + HwPfPcieGpexAdvisoryErrorControl =0x00D90468 , + HwPfPcieGpexId =0x00D90470 , + HwPfPcieGpexClasscode =0x00D90474 , + HwPfPcieGpexSubsystemId =0x00D90478 , + HwPfPcieGpexDeviceCapabilities =0x00D9047C , + HwPfPcieGpexLinkCapabilities =0x00D90480 , + HwPfPcieGpexFunctionNumber =0x00D90484 , + HwPfPcieGpexPmCapabilities =0x00D90488 , + HwPfPcieGpexFunctionSelect =0x00D9048C , + HwPfPcieGpexErrorCounter =0x00D904AC , + HwPfPcieGpexConfigReady =0x00D904B0 , + HwPfPcieGpexFcUpdateTimeout =0x00D904B8 , + HwPfPcieGpexFcUpdateTimer =0x00D904BC , + HwPfPcieGpexVcBufferLoad =0x00D904C8 , + HwPfPcieGpexVcBufferSizeThold =0x00D904CC , + HwPfPcieGpexVcBufferSelect =0x00D904D0 , + HwPfPcieGpexBarEnable =0x00D904D4 , + HwPfPcieGpexBarDwordLower =0x00D904D8 , + HwPfPcieGpexBarDwordUpper =0x00D904DC , + HwPfPcieGpexBarSelect =0x00D904E0 , + HwPfPcieGpexCreditCounterSelect =0x00D904E4 , + HwPfPcieGpexCreditCounterStatus =0x00D904E8 , + HwPfPcieGpexTlpHeaderSelect =0x00D904EC , + HwPfPcieGpexTlpHeaderDword0 =0x00D904F0 , + HwPfPcieGpexTlpHeaderDword1 =0x00D904F4 , + HwPfPcieGpexTlpHeaderDword2 =0x00D904F8 , + HwPfPcieGpexTlpHeaderDword3 =0x00D904FC , + HwPfPcieGpexRelaxOrderControl =0x00D90500 , + HwPfPcieGpexBarPrefetch =0x00D90504 , + HwPfPcieGpexFcCheckControl =0x00D90508 , + HwPfPcieGpexFcUpdateTimerTraffic =0x00D90518 , + HwPfPcieGpexPhyControl0 =0x00D9053C , + HwPfPcieGpexPhyControl1 =0x00D90544 , + HwPfPcieGpexPhyControl2 =0x00D9054C , + HwPfPcieGpexUserControl0 =0x00D9055C , + HwPfPcieGpexUncorrErrorStatus =0x00D905F0 , + HwPfPcieGpexRxCplError =0x00D90620 , + HwPfPcieGpexRxCplErrorDword0 =0x00D90624 , + HwPfPcieGpexRxCplErrorDword1 =0x00D90628 , + HwPfPcieGpexRxCplErrorDword2 =0x00D9062C , + HwPfPcieGpexPabSwResetEn =0x00D90630 , + HwPfPcieGpexGen3Control0 =0x00D90634 , + HwPfPcieGpexGen3Control1 =0x00D90638 , + HwPfPcieGpexGen3Control2 =0x00D9063C , + HwPfPcieGpexGen2ControlCsr =0x00D90640 , + HwPfPcieGpexTotalVfInitialVf0 =0x00D90644 , + HwPfPcieGpexTotalVfInitialVf1 =0x00D90648 , + HwPfPcieGpexSriovLinkDevId0 =0x00D90684 , + HwPfPcieGpexSriovLinkDevId1 =0x00D90688 , + HwPfPcieGpexSriovPageSize0 =0x00D906C4 , + HwPfPcieGpexSriovPageSize1 =0x00D906C8 , + HwPfPcieGpexIdVersion =0x00D906FC , + HwPfPcieGpexSriovVfOffsetStride0 =0x00D90704 , + HwPfPcieGpexSriovVfOffsetStride1 =0x00D90708 , + HwPfPcieGpexGen3DeskewControl =0x00D907B4 , + HwPfPcieGpexGen3EqControl =0x00D907B8 , + HwPfPcieGpexBridgeVersion =0x00D90800 , + HwPfPcieGpexBridgeCapability =0x00D90804 , + HwPfPcieGpexBridgeControl =0x00D90808 , + HwPfPcieGpexBridgeStatus =0x00D9080C , + HwPfPcieGpexEngineActivityStatus =0x00D9081C , + HwPfPcieGpexEngineResetControl =0x00D90820 , + HwPfPcieGpexAxiPioControl =0x00D90840 , + HwPfPcieGpexAxiPioStatus =0x00D90844 , + HwPfPcieGpexAmbaSlaveCmdStatus =0x00D90848 , + HwPfPcieGpexPexPioControl =0x00D908C0 , + HwPfPcieGpexPexPioStatus =0x00D908C4 , + HwPfPcieGpexAmbaMasterStatus =0x00D908C8 , + HwPfPcieGpexCsrSlaveCmdStatus =0x00D90920 , + HwPfPcieGpexMailboxAxiControl =0x00D90A50 , + HwPfPcieGpexMailboxAxiData =0x00D90A54 , + HwPfPcieGpexMailboxPexControl =0x00D90A90 , + HwPfPcieGpexMailboxPexData =0x00D90A94 , + HwPfPcieGpexPexInterruptEnable =0x00D90AD0 , + HwPfPcieGpexPexInterruptStatus =0x00D90AD4 , + HwPfPcieGpexPexInterruptAxiPioVector =0x00D90AD8 , + HwPfPcieGpexPexInterruptPexPioVector =0x00D90AE0 , + HwPfPcieGpexPexInterruptMiscVector =0x00D90AF8 , + HwPfPcieGpexAmbaInterruptPioEnable =0x00D90B00 , + HwPfPcieGpexAmbaInterruptMiscEnable =0x00D90B0C , + HwPfPcieGpexAmbaInterruptPioStatus =0x00D90B10 , + HwPfPcieGpexAmbaInterruptMiscStatus =0x00D90B1C , + HwPfPcieGpexPexPmControl =0x00D90B80 , + HwPfPcieGpexSlotMisc =0x00D90B88 , + HwPfPcieGpexAxiAddrMappingControl =0x00D90BA0 , + HwPfPcieGpexAxiAddrMappingWindowAxiBase =0x00D90BA4 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseLow =0x00D90BA8 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseHigh =0x00D90BAC , + HwPfPcieGpexPexBarAddrFunc0Bar0 =0x00D91BA0 , + HwPfPcieGpexPexBarAddrFunc0Bar1 =0x00D91BA4 , + HwPfPcieGpexAxiAddrMappingPcieHdrParam =0x00D95BA0 , + HwPfPcieGpexExtAxiAddrMappingAxiBase =0x00D980A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar0 =0x00D984A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar1 =0x00D984A4 , + HwPfPcieGpexAmbaInterruptFlrEnable =0x00D9B960 , + HwPfPcieGpexAmbaInterruptFlrStatus =0x00D9B9A0 , + HwPfPcieGpexExtAxiAddrMappingSize =0x00D9BAF0 , + HwPfPcieGpexPexPioAwcacheControl =0x00D9C300 , + HwPfPcieGpexPexPioArcacheControl =0x00D9C304 , + HwPfPcieGpexPabObSizeControlVc0 =0x00D9C310 +}; + +/* TIP PF Interrupt numbers */ +enum { +ACC100_PF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_PF_INT_DOORBELL_VF_2_PF =1 , +ACC100_PF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_PF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_PF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_PF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_PF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_PF_INT_ILLEGAL_FORMAT =7 , +ACC100_PF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_PF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +ACC100_PF_INT_ARAM_ACCESS_ERR =10 , +ACC100_PF_INT_ARAM_ECC_1BIT_ERR =11 , +ACC100_PF_INT_PARITY_ERR =12 , +ACC100_PF_INT_QMGR_ERR =13 , +ACC100_PF_INT_INT_REQ_OVERFLOW =14 , +ACC100_PF_INT_APB_TIMEOUT =15 , +}; + +#endif /* ACC100_PF_ENUM_H */
drivers/baseband/acc100/acc100_vf_enum.h new file +73 -0
73 lines not on this page · raw message
drivers/baseband/acc100/rte_acc100_pmd.h +490 -0
502 lines not on this page · raw message
Signature · 1 line
1.8.3.1
Re: [dpdk-dev] [PATCH v9 02/10] baseband/acc100: add register definition file
Quoted 1,205 lines · Nicolas Chautru
Add in the list of registers for the device and related HW specs definitions.
Signed-off-by Nicolas Chautru <[email protected]>Reviewed-by Rosen Xu <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- drivers/baseband/acc100/acc100_pf_enum.h | 1068 ++++++++++++++++++++++++++++++ drivers/baseband/acc100/acc100_vf_enum.h | 73 ++ drivers/baseband/acc100/rte_acc100_pmd.h | 490 ++++++++++++++ 3 files changed, 1631 insertions(+) create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.hdrivers/baseband/acc100/acc100_pf_enum.h new file +1068
-0@@ -0,0 +1,1068 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_PF_ENUM_H +#define ACC100_PF_ENUM_H + +/* +* ACC100 Register mapping on PF BAR0 +* This is automatically generated from RDL, format may change with new RDL +* Release. +* Variable names are as is +*/ +enum { + HWPfQmgrEgressQueuesTemplate =0x0007FE00 , + HWPfQmgrIngressAq =0x00080000 , + HWPfQmgrArbQAvail =0x00A00010 , + HWPfQmgrArbQBlock =0x00A00014 , + HWPfQmgrAqueueDropNotifEn =0x00A00024 , + HWPfQmgrAqueueDisableNotifEn =0x00A00028 , + HWPfQmgrSoftReset =0x00A00038 , + HWPfQmgrInitStatus =0x00A0003C , + HWPfQmgrAramWatchdogCount =0x00A00040 , + HWPfQmgrAramWatchdogCounterEn =0x00A00044 , + HWPfQmgrAxiWatchdogCount =0x00A00048 , + HWPfQmgrAxiWatchdogCounterEn =0x00A0004C , + HWPfQmgrProcessWatchdogCount =0x00A00050 , + HWPfQmgrProcessWatchdogCounterEn =0x00A00054 , + HWPfQmgrProcessUl4GWatchdogCounter =0x00A00058 , + HWPfQmgrProcessDl4GWatchdogCounter =0x00A0005C , + HWPfQmgrProcessUl5GWatchdogCounter =0x00A00060 , + HWPfQmgrProcessDl5GWatchdogCounter =0x00A00064 , + HWPfQmgrProcessMldWatchdogCounter =0x00A00068 , + HWPfQmgrMsiOverflowUpperVf =0x00A00070 , + HWPfQmgrMsiOverflowLowerVf =0x00A00074 , + HWPfQmgrMsiWatchdogOverflow =0x00A00078 , + HWPfQmgrMsiOverflowEnable =0x00A0007C , + HWPfQmgrDebugAqPointerMemGrp =0x00A00100 , + HWPfQmgrDebugOutputArbQFifoGrp =0x00A00140 , + HWPfQmgrDebugMsiFifoGrp =0x00A00180 , + HWPfQmgrDebugAxiWdTimeoutMsiFifo =0x00A001C0 , + HWPfQmgrDebugProcessWdTimeoutMsiFifo =0x00A001C4 , + HWPfQmgrDepthLog2Grp =0x00A00200 , + HWPfQmgrTholdGrp =0x00A00300 , + HWPfQmgrGrpTmplateReg0Indx =0x00A00600 , + HWPfQmgrGrpTmplateReg1Indx =0x00A00680 , + HWPfQmgrGrpTmplateReg2indx =0x00A00700 , + HWPfQmgrGrpTmplateReg3Indx =0x00A00780 , + HWPfQmgrGrpTmplateReg4Indx =0x00A00800 , + HWPfQmgrVfBaseAddr =0x00A01000 , + HWPfQmgrUl4GWeightRrVf =0x00A02000 , + HWPfQmgrDl4GWeightRrVf =0x00A02100 , + HWPfQmgrUl5GWeightRrVf =0x00A02200 , + HWPfQmgrDl5GWeightRrVf =0x00A02300 , + HWPfQmgrMldWeightRrVf =0x00A02400 , + HWPfQmgrArbQDepthGrp =0x00A02F00 , + HWPfQmgrGrpFunction0 =0x00A02F40 , + HWPfQmgrGrpFunction1 =0x00A02F44 , + HWPfQmgrGrpPriority =0x00A02F48 , + HWPfQmgrWeightSync =0x00A03000 , + HWPfQmgrAqEnableVf =0x00A10000 , + HWPfQmgrAqResetVf =0x00A20000 , + HWPfQmgrRingSizeVf =0x00A20004 , + HWPfQmgrGrpDepthLog20Vf =0x00A20008 , + HWPfQmgrGrpDepthLog21Vf =0x00A2000C , + HWPfQmgrGrpFunction0Vf =0x00A20010 , + HWPfQmgrGrpFunction1Vf =0x00A20014 , + HWPfDmaConfig0Reg =0x00B80000 , + HWPfDmaConfig1Reg =0x00B80004 , + HWPfDmaQmgrAddrReg =0x00B80008 , + HWPfDmaSoftResetReg =0x00B8000C , + HWPfDmaAxcacheReg =0x00B80010 , + HWPfDmaVersionReg =0x00B80014 , + HWPfDmaFrameThreshold =0x00B80018 , + HWPfDmaTimestampLo =0x00B8001C , + HWPfDmaTimestampHi =0x00B80020 , + HWPfDmaAxiStatus =0x00B80028 , + HWPfDmaAxiControl =0x00B8002C , + HWPfDmaNoQmgr =0x00B80030 , + HWPfDmaQosScale =0x00B80034 , + HWPfDmaQmanen =0x00B80040 , + HWPfDmaQmgrQosBase =0x00B80060 , + HWPfDmaFecClkGatingEnable =0x00B80080 , + HWPfDmaPmEnable =0x00B80084 , + HWPfDmaQosEnable =0x00B80088 , + HWPfDmaHarqWeightedRrFrameThreshold =0x00B800B0 , + HWPfDmaDataSmallWeightedRrFrameThresh =0x00B800B4 , + HWPfDmaDataLargeWeightedRrFrameThresh =0x00B800B8 , + HWPfDmaInboundCbMaxSize =0x00B800BC , + HWPfDmaInboundDrainDataSize =0x00B800C0 , + HWPfDmaVfDdrBaseRw =0x00B80400 , + HWPfDmaCmplTmOutCnt =0x00B80800 , + HWPfDmaProcTmOutCnt =0x00B80804 , + HWPfDmaStatusRrespBresp =0x00B80810 , + HWPfDmaCfgRrespBresp =0x00B80814 , + HWPfDmaStatusMemParErr =0x00B80818 , + HWPfDmaCfgMemParErrEn =0x00B8081C , + HWPfDmaStatusDmaHwErr =0x00B80820 , + HWPfDmaCfgDmaHwErrEn =0x00B80824 , + HWPfDmaStatusFecCoreErr =0x00B80828 , + HWPfDmaCfgFecCoreErrEn =0x00B8082C , + HWPfDmaStatusFcwDescrErr =0x00B80830 , + HWPfDmaCfgFcwDescrErrEn =0x00B80834 , + HWPfDmaStatusBlockTransmit =0x00B80838 , + HWPfDmaBlockOnErrEn =0x00B8083C , + HWPfDmaStatusFlushDma =0x00B80840 , + HWPfDmaFlushDmaOnErrEn =0x00B80844 , + HWPfDmaStatusSdoneFifoFull =0x00B80848 , + HWPfDmaStatusDescriptorErrLoVf =0x00B8084C , + HWPfDmaStatusDescriptorErrHiVf =0x00B80850 , + HWPfDmaStatusFcwErrLoVf =0x00B80854 , + HWPfDmaStatusFcwErrHiVf =0x00B80858 , + HWPfDmaStatusDataErrLoVf =0x00B8085C , + HWPfDmaStatusDataErrHiVf =0x00B80860 , + HWPfDmaCfgMsiEnSoftwareErr =0x00B80864 , + HWPfDmaDescriptorSignatuture =0x00B80868 , + HWPfDmaFcwSignature =0x00B8086C , + HWPfDmaErrorDetectionEn =0x00B80870 , + HWPfDmaErrCntrlFifoDebug =0x00B8087C , + HWPfDmaStatusToutData =0x00B80880 , + HWPfDmaStatusToutDesc =0x00B80884 , + HWPfDmaStatusToutUnexpData =0x00B80888 , + HWPfDmaStatusToutUnexpDesc =0x00B8088C , + HWPfDmaStatusToutProcess =0x00B80890 , + HWPfDmaConfigCtoutOutDataEn =0x00B808A0 , + HWPfDmaConfigCtoutOutDescrEn =0x00B808A4 , + HWPfDmaConfigUnexpComplDataEn =0x00B808A8 , + HWPfDmaConfigUnexpComplDescrEn =0x00B808AC , + HWPfDmaConfigPtoutOutEn =0x00B808B0 , + HWPfDmaFec5GulDescBaseLoRegVf =0x00B88020 , + HWPfDmaFec5GulDescBaseHiRegVf =0x00B88024 , + HWPfDmaFec5GulRespPtrLoRegVf =0x00B88028 , + HWPfDmaFec5GulRespPtrHiRegVf =0x00B8802C , + HWPfDmaFec5GdlDescBaseLoRegVf =0x00B88040 , + HWPfDmaFec5GdlDescBaseHiRegVf =0x00B88044 , + HWPfDmaFec5GdlRespPtrLoRegVf =0x00B88048 , + HWPfDmaFec5GdlRespPtrHiRegVf =0x00B8804C , + HWPfDmaFec4GulDescBaseLoRegVf =0x00B88060 , + HWPfDmaFec4GulDescBaseHiRegVf =0x00B88064 , + HWPfDmaFec4GulRespPtrLoRegVf =0x00B88068 , + HWPfDmaFec4GulRespPtrHiRegVf =0x00B8806C , + HWPfDmaFec4GdlDescBaseLoRegVf =0x00B88080 , + HWPfDmaFec4GdlDescBaseHiRegVf =0x00B88084 , + HWPfDmaFec4GdlRespPtrLoRegVf =0x00B88088 , + HWPfDmaFec4GdlRespPtrHiRegVf =0x00B8808C , + HWPfDmaVfDdrBaseRangeRo =0x00B880A0 , + HWPfQosmonACntrlReg =0x00B90000 , + HWPfQosmonAEvalOverflow0 =0x00B90008 , + HWPfQosmonAEvalOverflow1 =0x00B9000C , + HWPfQosmonADivTerm =0x00B90010 , + HWPfQosmonATickTerm =0x00B90014 , + HWPfQosmonAEvalTerm =0x00B90018 , + HWPfQosmonAAveTerm =0x00B9001C , + HWPfQosmonAForceEccErr =0x00B90020 , + HWPfQosmonAEccErrDetect =0x00B90024 , + HWPfQosmonAIterationConfig0Low =0x00B90060 , + HWPfQosmonAIterationConfig0High =0x00B90064 , + HWPfQosmonAIterationConfig1Low =0x00B90068 , + HWPfQosmonAIterationConfig1High =0x00B9006C , + HWPfQosmonAIterationConfig2Low =0x00B90070 , + HWPfQosmonAIterationConfig2High =0x00B90074 , + HWPfQosmonAIterationConfig3Low =0x00B90078 , + HWPfQosmonAIterationConfig3High =0x00B9007C , + HWPfQosmonAEvalMemAddr =0x00B90080 , + HWPfQosmonAEvalMemData =0x00B90084 , + HWPfQosmonAXaction =0x00B900C0 , + HWPfQosmonARemThres1Vf =0x00B90400 , + HWPfQosmonAThres2Vf =0x00B90404 , + HWPfQosmonAWeiFracVf =0x00B90408 , + HWPfQosmonARrWeiVf =0x00B9040C , + HWPfPermonACntrlRegVf =0x00B98000 , + HWPfPermonACountVf =0x00B98008 , + HWPfPermonAKCntLoVf =0x00B98010 , + HWPfPermonAKCntHiVf =0x00B98014 , + HWPfPermonADeltaCntLoVf =0x00B98020 , + HWPfPermonADeltaCntHiVf =0x00B98024 , + HWPfPermonAVersionReg =0x00B9C000 , + HWPfPermonACbControlFec =0x00B9C0F0 , + HWPfPermonADltTimerLoFec =0x00B9C0F4 , + HWPfPermonADltTimerHiFec =0x00B9C0F8 , + HWPfPermonACbCountFec =0x00B9C100 , + HWPfPermonAAccExecTimerLoFec =0x00B9C104 , + HWPfPermonAAccExecTimerHiFec =0x00B9C108 , + HWPfPermonAExecTimerMinFec =0x00B9C200 , + HWPfPermonAExecTimerMaxFec =0x00B9C204 , + HWPfPermonAControlBusMon =0x00B9C400 , + HWPfPermonAConfigBusMon =0x00B9C404 , + HWPfPermonASkipCountBusMon =0x00B9C408 , + HWPfPermonAMinLatBusMon =0x00B9C40C , + HWPfPermonAMaxLatBusMon =0x00B9C500 , + HWPfPermonATotalLatLowBusMon =0x00B9C504 , + HWPfPermonATotalLatUpperBusMon =0x00B9C508 , + HWPfPermonATotalReqCntBusMon =0x00B9C50C , + HWPfQosmonBCntrlReg =0x00BA0000 , + HWPfQosmonBEvalOverflow0 =0x00BA0008 , + HWPfQosmonBEvalOverflow1 =0x00BA000C , + HWPfQosmonBDivTerm =0x00BA0010 , + HWPfQosmonBTickTerm =0x00BA0014 , + HWPfQosmonBEvalTerm =0x00BA0018 , + HWPfQosmonBAveTerm =0x00BA001C , + HWPfQosmonBForceEccErr =0x00BA0020 , + HWPfQosmonBEccErrDetect =0x00BA0024 , + HWPfQosmonBIterationConfig0Low =0x00BA0060 , + HWPfQosmonBIterationConfig0High =0x00BA0064 , + HWPfQosmonBIterationConfig1Low =0x00BA0068 , + HWPfQosmonBIterationConfig1High =0x00BA006C , + HWPfQosmonBIterationConfig2Low =0x00BA0070 , + HWPfQosmonBIterationConfig2High =0x00BA0074 , + HWPfQosmonBIterationConfig3Low =0x00BA0078 , + HWPfQosmonBIterationConfig3High =0x00BA007C , + HWPfQosmonBEvalMemAddr =0x00BA0080 , + HWPfQosmonBEvalMemData =0x00BA0084 , + HWPfQosmonBXaction =0x00BA00C0 , + HWPfQosmonBRemThres1Vf =0x00BA0400 , + HWPfQosmonBThres2Vf =0x00BA0404 , + HWPfQosmonBWeiFracVf =0x00BA0408 , + HWPfQosmonBRrWeiVf =0x00BA040C , + HWPfPermonBCntrlRegVf =0x00BA8000 , + HWPfPermonBCountVf =0x00BA8008 , + HWPfPermonBKCntLoVf =0x00BA8010 , + HWPfPermonBKCntHiVf =0x00BA8014 , + HWPfPermonBDeltaCntLoVf =0x00BA8020 , + HWPfPermonBDeltaCntHiVf =0x00BA8024 , + HWPfPermonBVersionReg =0x00BAC000 , + HWPfPermonBCbControlFec =0x00BAC0F0 , + HWPfPermonBDltTimerLoFec =0x00BAC0F4 , + HWPfPermonBDltTimerHiFec =0x00BAC0F8 , + HWPfPermonBCbCountFec =0x00BAC100 , + HWPfPermonBAccExecTimerLoFec =0x00BAC104 , + HWPfPermonBAccExecTimerHiFec =0x00BAC108 , + HWPfPermonBExecTimerMinFec =0x00BAC200 , + HWPfPermonBExecTimerMaxFec =0x00BAC204 , + HWPfPermonBControlBusMon =0x00BAC400 , + HWPfPermonBConfigBusMon =0x00BAC404 , + HWPfPermonBSkipCountBusMon =0x00BAC408 , + HWPfPermonBMinLatBusMon =0x00BAC40C , + HWPfPermonBMaxLatBusMon =0x00BAC500 , + HWPfPermonBTotalLatLowBusMon =0x00BAC504 , + HWPfPermonBTotalLatUpperBusMon =0x00BAC508 , + HWPfPermonBTotalReqCntBusMon =0x00BAC50C , + HWPfFecUl5gCntrlReg =0x00BC0000 , + HWPfFecUl5gI2MThreshReg =0x00BC0004 , + HWPfFecUl5gVersionReg =0x00BC0100 , + HWPfFecUl5gFcwStatusReg =0x00BC0104 , + HWPfFecUl5gWarnReg =0x00BC0108 , + HwPfFecUl5gIbDebugReg =0x00BC0200 , + HwPfFecUl5gObLlrDebugReg =0x00BC0204 , + HwPfFecUl5gObHarqDebugReg =0x00BC0208 , + HwPfFecUl5g1CntrlReg =0x00BC1000 , + HwPfFecUl5g1I2MThreshReg =0x00BC1004 , + HwPfFecUl5g1VersionReg =0x00BC1100 , + HwPfFecUl5g1FcwStatusReg =0x00BC1104 , + HwPfFecUl5g1WarnReg =0x00BC1108 , + HwPfFecUl5g1IbDebugReg =0x00BC1200 , + HwPfFecUl5g1ObLlrDebugReg =0x00BC1204 , + HwPfFecUl5g1ObHarqDebugReg =0x00BC1208 , + HwPfFecUl5g2CntrlReg =0x00BC2000 , + HwPfFecUl5g2I2MThreshReg =0x00BC2004 , + HwPfFecUl5g2VersionReg =0x00BC2100 , + HwPfFecUl5g2FcwStatusReg =0x00BC2104 , + HwPfFecUl5g2WarnReg =0x00BC2108 , + HwPfFecUl5g2IbDebugReg =0x00BC2200 , + HwPfFecUl5g2ObLlrDebugReg =0x00BC2204 , + HwPfFecUl5g2ObHarqDebugReg =0x00BC2208 , + HwPfFecUl5g3CntrlReg =0x00BC3000 , + HwPfFecUl5g3I2MThreshReg =0x00BC3004 , + HwPfFecUl5g3VersionReg =0x00BC3100 , + HwPfFecUl5g3FcwStatusReg =0x00BC3104 , + HwPfFecUl5g3WarnReg =0x00BC3108 , + HwPfFecUl5g3IbDebugReg =0x00BC3200 , + HwPfFecUl5g3ObLlrDebugReg =0x00BC3204 , + HwPfFecUl5g3ObHarqDebugReg =0x00BC3208 , + HwPfFecUl5g4CntrlReg =0x00BC4000 , + HwPfFecUl5g4I2MThreshReg =0x00BC4004 , + HwPfFecUl5g4VersionReg =0x00BC4100 , + HwPfFecUl5g4FcwStatusReg =0x00BC4104 , + HwPfFecUl5g4WarnReg =0x00BC4108 , + HwPfFecUl5g4IbDebugReg =0x00BC4200 , + HwPfFecUl5g4ObLlrDebugReg =0x00BC4204 , + HwPfFecUl5g4ObHarqDebugReg =0x00BC4208 , + HwPfFecUl5g5CntrlReg =0x00BC5000 , + HwPfFecUl5g5I2MThreshReg =0x00BC5004 , + HwPfFecUl5g5VersionReg =0x00BC5100 , + HwPfFecUl5g5FcwStatusReg =0x00BC5104 , + HwPfFecUl5g5WarnReg =0x00BC5108 , + HwPfFecUl5g5IbDebugReg =0x00BC5200 , + HwPfFecUl5g5ObLlrDebugReg =0x00BC5204 , + HwPfFecUl5g5ObHarqDebugReg =0x00BC5208 , + HwPfFecUl5g6CntrlReg =0x00BC6000 , + HwPfFecUl5g6I2MThreshReg =0x00BC6004 , + HwPfFecUl5g6VersionReg =0x00BC6100 , + HwPfFecUl5g6FcwStatusReg =0x00BC6104 , + HwPfFecUl5g6WarnReg =0x00BC6108 , + HwPfFecUl5g6IbDebugReg =0x00BC6200 , + HwPfFecUl5g6ObLlrDebugReg =0x00BC6204 , + HwPfFecUl5g6ObHarqDebugReg =0x00BC6208 , + HwPfFecUl5g7CntrlReg =0x00BC7000 , + HwPfFecUl5g7I2MThreshReg =0x00BC7004 , + HwPfFecUl5g7VersionReg =0x00BC7100 , + HwPfFecUl5g7FcwStatusReg =0x00BC7104 , + HwPfFecUl5g7WarnReg =0x00BC7108 , + HwPfFecUl5g7IbDebugReg =0x00BC7200 , + HwPfFecUl5g7ObLlrDebugReg =0x00BC7204 , + HwPfFecUl5g7ObHarqDebugReg =0x00BC7208 , + HwPfFecUl5g8CntrlReg =0x00BC8000 , + HwPfFecUl5g8I2MThreshReg =0x00BC8004 , + HwPfFecUl5g8VersionReg =0x00BC8100 , + HwPfFecUl5g8FcwStatusReg =0x00BC8104 , + HwPfFecUl5g8WarnReg =0x00BC8108 , + HwPfFecUl5g8IbDebugReg =0x00BC8200 , + HwPfFecUl5g8ObLlrDebugReg =0x00BC8204 , + HwPfFecUl5g8ObHarqDebugReg =0x00BC8208 , + HWPfFecDl5gCntrlReg =0x00BCF000 , + HWPfFecDl5gI2MThreshReg =0x00BCF004 , + HWPfFecDl5gVersionReg =0x00BCF100 , + HWPfFecDl5gFcwStatusReg =0x00BCF104 , + HWPfFecDl5gWarnReg =0x00BCF108 , + HWPfFecUlVersionReg =0x00BD0000 , + HWPfFecUlControlReg =0x00BD0004 , + HWPfFecUlStatusReg =0x00BD0008 , + HWPfFecDlVersionReg =0x00BDF000 , + HWPfFecDlClusterConfigReg =0x00BDF004 , + HWPfFecDlBurstThres =0x00BDF00C , + HWPfFecDlClusterStatusReg0 =0x00BDF040 , + HWPfFecDlClusterStatusReg1 =0x00BDF044 , + HWPfFecDlClusterStatusReg2 =0x00BDF048 , + HWPfFecDlClusterStatusReg3 =0x00BDF04C , + HWPfFecDlClusterStatusReg4 =0x00BDF050 , + HWPfFecDlClusterStatusReg5 =0x00BDF054 , + HWPfChaFabPllPllrst =0x00C40000 , + HWPfChaFabPllClk0 =0x00C40004 , + HWPfChaFabPllClk1 =0x00C40008 , + HWPfChaFabPllBwadj =0x00C4000C , + HWPfChaFabPllLbw =0x00C40010 , + HWPfChaFabPllResetq =0x00C40014 , + HWPfChaFabPllPhshft0 =0x00C40018 , + HWPfChaFabPllPhshft1 =0x00C4001C , + HWPfChaFabPllDivq0 =0x00C40020 , + HWPfChaFabPllDivq1 =0x00C40024 , + HWPfChaFabPllDivq2 =0x00C40028 , + HWPfChaFabPllDivq3 =0x00C4002C , + HWPfChaFabPllDivq4 =0x00C40030 , + HWPfChaFabPllDivq5 =0x00C40034 , + HWPfChaFabPllDivq6 =0x00C40038 , + HWPfChaFabPllDivq7 =0x00C4003C , + HWPfChaDl5gPllPllrst =0x00C40080 , + HWPfChaDl5gPllClk0 =0x00C40084 , + HWPfChaDl5gPllClk1 =0x00C40088 , + HWPfChaDl5gPllBwadj =0x00C4008C , + HWPfChaDl5gPllLbw =0x00C40090 , + HWPfChaDl5gPllResetq =0x00C40094 , + HWPfChaDl5gPllPhshft0 =0x00C40098 , + HWPfChaDl5gPllPhshft1 =0x00C4009C , + HWPfChaDl5gPllDivq0 =0x00C400A0 , + HWPfChaDl5gPllDivq1 =0x00C400A4 , + HWPfChaDl5gPllDivq2 =0x00C400A8 , + HWPfChaDl5gPllDivq3 =0x00C400AC , + HWPfChaDl5gPllDivq4 =0x00C400B0 , + HWPfChaDl5gPllDivq5 =0x00C400B4 , + HWPfChaDl5gPllDivq6 =0x00C400B8 , + HWPfChaDl5gPllDivq7 =0x00C400BC , + HWPfChaDl4gPllPllrst =0x00C40100 , + HWPfChaDl4gPllClk0 =0x00C40104 , + HWPfChaDl4gPllClk1 =0x00C40108 , + HWPfChaDl4gPllBwadj =0x00C4010C , + HWPfChaDl4gPllLbw =0x00C40110 , + HWPfChaDl4gPllResetq =0x00C40114 , + HWPfChaDl4gPllPhshft0 =0x00C40118 , + HWPfChaDl4gPllPhshft1 =0x00C4011C , + HWPfChaDl4gPllDivq0 =0x00C40120 , + HWPfChaDl4gPllDivq1 =0x00C40124 , + HWPfChaDl4gPllDivq2 =0x00C40128 , + HWPfChaDl4gPllDivq3 =0x00C4012C , + HWPfChaDl4gPllDivq4 =0x00C40130 , + HWPfChaDl4gPllDivq5 =0x00C40134 , + HWPfChaDl4gPllDivq6 =0x00C40138 , + HWPfChaDl4gPllDivq7 =0x00C4013C , + HWPfChaUl5gPllPllrst =0x00C40180 , + HWPfChaUl5gPllClk0 =0x00C40184 , + HWPfChaUl5gPllClk1 =0x00C40188 , + HWPfChaUl5gPllBwadj =0x00C4018C , + HWPfChaUl5gPllLbw =0x00C40190 , + HWPfChaUl5gPllResetq =0x00C40194 , + HWPfChaUl5gPllPhshft0 =0x00C40198 , + HWPfChaUl5gPllPhshft1 =0x00C4019C , + HWPfChaUl5gPllDivq0 =0x00C401A0 , + HWPfChaUl5gPllDivq1 =0x00C401A4 , + HWPfChaUl5gPllDivq2 =0x00C401A8 , + HWPfChaUl5gPllDivq3 =0x00C401AC , + HWPfChaUl5gPllDivq4 =0x00C401B0 , + HWPfChaUl5gPllDivq5 =0x00C401B4 , + HWPfChaUl5gPllDivq6 =0x00C401B8 , + HWPfChaUl5gPllDivq7 =0x00C401BC , + HWPfChaUl4gPllPllrst =0x00C40200 , + HWPfChaUl4gPllClk0 =0x00C40204 , + HWPfChaUl4gPllClk1 =0x00C40208 , + HWPfChaUl4gPllBwadj =0x00C4020C , + HWPfChaUl4gPllLbw =0x00C40210 , + HWPfChaUl4gPllResetq =0x00C40214 , + HWPfChaUl4gPllPhshft0 =0x00C40218 , + HWPfChaUl4gPllPhshft1 =0x00C4021C , + HWPfChaUl4gPllDivq0 =0x00C40220 , + HWPfChaUl4gPllDivq1 =0x00C40224 , + HWPfChaUl4gPllDivq2 =0x00C40228 , + HWPfChaUl4gPllDivq3 =0x00C4022C , + HWPfChaUl4gPllDivq4 =0x00C40230 , + HWPfChaUl4gPllDivq5 =0x00C40234 , + HWPfChaUl4gPllDivq6 =0x00C40238 , + HWPfChaUl4gPllDivq7 =0x00C4023C , + HWPfChaDdrPllPllrst =0x00C40280 , + HWPfChaDdrPllClk0 =0x00C40284 , + HWPfChaDdrPllClk1 =0x00C40288 , + HWPfChaDdrPllBwadj =0x00C4028C , + HWPfChaDdrPllLbw =0x00C40290 , + HWPfChaDdrPllResetq =0x00C40294 , + HWPfChaDdrPllPhshft0 =0x00C40298 , + HWPfChaDdrPllPhshft1 =0x00C4029C , + HWPfChaDdrPllDivq0 =0x00C402A0 , + HWPfChaDdrPllDivq1 =0x00C402A4 , + HWPfChaDdrPllDivq2 =0x00C402A8 , + HWPfChaDdrPllDivq3 =0x00C402AC , + HWPfChaDdrPllDivq4 =0x00C402B0 , + HWPfChaDdrPllDivq5 =0x00C402B4 , + HWPfChaDdrPllDivq6 =0x00C402B8 , + HWPfChaDdrPllDivq7 =0x00C402BC , + HWPfChaErrStatus =0x00C40400 , + HWPfChaErrMask =0x00C40404 , + HWPfChaDebugPcieMsiFifo =0x00C40410 , + HWPfChaDebugDdrMsiFifo =0x00C40414 , + HWPfChaDebugMiscMsiFifo =0x00C40418 , + HWPfChaPwmSet =0x00C40420 , + HWPfChaDdrRstStatus =0x00C40430 , + HWPfChaDdrStDoneStatus =0x00C40434 , + HWPfChaDdrWbRstCfg =0x00C40438 , + HWPfChaDdrApbRstCfg =0x00C4043C , + HWPfChaDdrPhyRstCfg =0x00C40440 , + HWPfChaDdrCpuRstCfg =0x00C40444 , + HWPfChaDdrSifRstCfg =0x00C40448 , + HWPfChaPadcfgPcomp0 =0x00C41000 , + HWPfChaPadcfgNcomp0 =0x00C41004 , + HWPfChaPadcfgOdt0 =0x00C41008 , + HWPfChaPadcfgProtect0 =0x00C4100C , + HWPfChaPreemphasisProtect0 =0x00C41010 , + HWPfChaPreemphasisCompen0 =0x00C41040 , + HWPfChaPreemphasisOdten0 =0x00C41044 , + HWPfChaPadcfgPcomp1 =0x00C41100 , + HWPfChaPadcfgNcomp1 =0x00C41104 , + HWPfChaPadcfgOdt1 =0x00C41108 , + HWPfChaPadcfgProtect1 =0x00C4110C , + HWPfChaPreemphasisProtect1 =0x00C41110 , + HWPfChaPreemphasisCompen1 =0x00C41140 , + HWPfChaPreemphasisOdten1 =0x00C41144 , + HWPfChaPadcfgPcomp2 =0x00C41200 , + HWPfChaPadcfgNcomp2 =0x00C41204 , + HWPfChaPadcfgOdt2 =0x00C41208 , + HWPfChaPadcfgProtect2 =0x00C4120C , + HWPfChaPreemphasisProtect2 =0x00C41210 , + HWPfChaPreemphasisCompen2 =0x00C41240 , + HWPfChaPreemphasisOdten4 =0x00C41444 , + HWPfChaPreemphasisOdten2 =0x00C41244 , + HWPfChaPadcfgPcomp3 =0x00C41300 , + HWPfChaPadcfgNcomp3 =0x00C41304 , + HWPfChaPadcfgOdt3 =0x00C41308 , + HWPfChaPadcfgProtect3 =0x00C4130C , + HWPfChaPreemphasisProtect3 =0x00C41310 , + HWPfChaPreemphasisCompen3 =0x00C41340 , + HWPfChaPreemphasisOdten3 =0x00C41344 , + HWPfChaPadcfgPcomp4 =0x00C41400 , + HWPfChaPadcfgNcomp4 =0x00C41404 , + HWPfChaPadcfgOdt4 =0x00C41408 , + HWPfChaPadcfgProtect4 =0x00C4140C , + HWPfChaPreemphasisProtect4 =0x00C41410 , + HWPfChaPreemphasisCompen4 =0x00C41440 , + HWPfHiVfToPfDbellVf =0x00C80000 , + HWPfHiPfToVfDbellVf =0x00C80008 , + HWPfHiInfoRingBaseLoVf =0x00C80010 , + HWPfHiInfoRingBaseHiVf =0x00C80014 , + HWPfHiInfoRingPointerVf =0x00C80018 , + HWPfHiInfoRingIntWrEnVf =0x00C80020 , + HWPfHiInfoRingPf2VfWrEnVf =0x00C80024 , + HWPfHiMsixVectorMapperVf =0x00C80060 , + HWPfHiModuleVersionReg =0x00C84000 , + HWPfHiIosf2axiErrLogReg =0x00C84004 , + HWPfHiHardResetReg =0x00C84008 , + HWPfHi5GHardResetReg =0x00C8400C , + HWPfHiInfoRingBaseLoRegPf =0x00C84010 , + HWPfHiInfoRingBaseHiRegPf =0x00C84014 , + HWPfHiInfoRingPointerRegPf =0x00C84018 , + HWPfHiInfoRingIntWrEnRegPf =0x00C84020 , + HWPfHiInfoRingVf2pfLoWrEnReg =0x00C84024 , + HWPfHiInfoRingVf2pfHiWrEnReg =0x00C84028 , + HWPfHiLogParityErrStatusReg =0x00C8402C , + HWPfHiLogDataParityErrorVfStatusLo =0x00C84030 , + HWPfHiLogDataParityErrorVfStatusHi =0x00C84034 , + HWPfHiBlockTransmitOnErrorEn =0x00C84038 , + HWPfHiCfgMsiIntWrEnRegPf =0x00C84040 , + HWPfHiCfgMsiVf2pfLoWrEnReg =0x00C84044 , + HWPfHiCfgMsiVf2pfHighWrEnReg =0x00C84048 , + HWPfHiMsixVectorMapperPf =0x00C84060 , + HWPfHiApbWrWaitTime =0x00C84100 , + HWPfHiXCounterMaxValue =0x00C84104 , + HWPfHiPfMode =0x00C84108 , + HWPfHiClkGateHystReg =0x00C8410C , + HWPfHiSnoopBitsReg =0x00C84110 , + HWPfHiMsiDropEnableReg =0x00C84114 , + HWPfHiMsiStatReg =0x00C84120 , + HWPfHiFifoOflStatReg =0x00C84124 , + HWPfHiHiDebugReg =0x00C841F4 , + HWPfHiDebugMemSnoopMsiFifo =0x00C841F8 , + HWPfHiDebugMemSnoopInputFifo =0x00C841FC , + HWPfHiMsixMappingConfig =0x00C84200 , + HWPfHiJunkReg =0x00C8FF00 , + HWPfDdrUmmcVer =0x00D00000 , + HWPfDdrUmmcCap =0x00D00010 , + HWPfDdrUmmcCtrl =0x00D00020 , + HWPfDdrMpcPe =0x00D00080 , + HWPfDdrMpcPpri3 =0x00D00090 , + HWPfDdrMpcPpri2 =0x00D000A0 , + HWPfDdrMpcPpri1 =0x00D000B0 , + HWPfDdrMpcPpri0 =0x00D000C0 , + HWPfDdrMpcPrwgrpCtrl =0x00D000D0 , + HWPfDdrMpcPbw7 =0x00D000E0 , + HWPfDdrMpcPbw6 =0x00D000F0 , + HWPfDdrMpcPbw5 =0x00D00100 , + HWPfDdrMpcPbw4 =0x00D00110 , + HWPfDdrMpcPbw3 =0x00D00120 , + HWPfDdrMpcPbw2 =0x00D00130 , + HWPfDdrMpcPbw1 =0x00D00140 , + HWPfDdrMpcPbw0 =0x00D00150 , + HWPfDdrMemoryInit =0x00D00200 , + HWPfDdrMemoryInitDone =0x00D00210 , + HWPfDdrMemInitPhyTrng0 =0x00D00240 , + HWPfDdrMemInitPhyTrng1 =0x00D00250 , + HWPfDdrMemInitPhyTrng2 =0x00D00260 , + HWPfDdrMemInitPhyTrng3 =0x00D00270 , + HWPfDdrBcDram =0x00D003C0 , + HWPfDdrBcAddrMap =0x00D003D0 , + HWPfDdrBcRef =0x00D003E0 , + HWPfDdrBcTim0 =0x00D00400 , + HWPfDdrBcTim1 =0x00D00410 , + HWPfDdrBcTim2 =0x00D00420 , + HWPfDdrBcTim3 =0x00D00430 , + HWPfDdrBcTim4 =0x00D00440 , + HWPfDdrBcTim5 =0x00D00450 , + HWPfDdrBcTim6 =0x00D00460 , + HWPfDdrBcTim7 =0x00D00470 , + HWPfDdrBcTim8 =0x00D00480 , + HWPfDdrBcTim9 =0x00D00490 , + HWPfDdrBcTim10 =0x00D004A0 , + HWPfDdrBcTim12 =0x00D004C0 , + HWPfDdrDfiInit =0x00D004D0 , + HWPfDdrDfiInitComplete =0x00D004E0 , + HWPfDdrDfiTim0 =0x00D004F0 , + HWPfDdrDfiTim1 =0x00D00500 , + HWPfDdrDfiPhyUpdEn =0x00D00530 , + HWPfDdrMemStatus =0x00D00540 , + HWPfDdrUmmcErrStatus =0x00D00550 , + HWPfDdrUmmcIntStatus =0x00D00560 , + HWPfDdrUmmcIntEn =0x00D00570 , + HWPfDdrPhyRdLatency =0x00D48400 , + HWPfDdrPhyRdLatencyDbi =0x00D48410 , + HWPfDdrPhyWrLatency =0x00D48420 , + HWPfDdrPhyTrngType =0x00D48430 , + HWPfDdrPhyMrsTiming2 =0x00D48440 , + HWPfDdrPhyMrsTiming0 =0x00D48450 , + HWPfDdrPhyMrsTiming1 =0x00D48460 , + HWPfDdrPhyDramTmrd =0x00D48470 , + HWPfDdrPhyDramTmod =0x00D48480 , + HWPfDdrPhyDramTwpre =0x00D48490 , + HWPfDdrPhyDramTrfc =0x00D484A0 , + HWPfDdrPhyDramTrwtp =0x00D484B0 , + HWPfDdrPhyMr01Dimm =0x00D484C0 , + HWPfDdrPhyMr01DimmDbi =0x00D484D0 , + HWPfDdrPhyMr23Dimm =0x00D484E0 , + HWPfDdrPhyMr45Dimm =0x00D484F0 , + HWPfDdrPhyMr67Dimm =0x00D48500 , + HWPfDdrPhyWrlvlWwRdlvlRr =0x00D48510 , + HWPfDdrPhyOdtEn =0x00D48520 , + HWPfDdrPhyFastTrng =0x00D48530 , + HWPfDdrPhyDynTrngGap =0x00D48540 , + HWPfDdrPhyDynRcalGap =0x00D48550 , + HWPfDdrPhyIdletimeout =0x00D48560 , + HWPfDdrPhyRstCkeGap =0x00D48570 , + HWPfDdrPhyCkeMrsGap =0x00D48580 , + HWPfDdrPhyMemVrefMidVal =0x00D48590 , + HWPfDdrPhyVrefStep =0x00D485A0 , + HWPfDdrPhyVrefThreshold =0x00D485B0 , + HWPfDdrPhyPhyVrefMidVal =0x00D485C0 , + HWPfDdrPhyDqsCountMax =0x00D485D0 , + HWPfDdrPhyDqsCountNum =0x00D485E0 , + HWPfDdrPhyDramRow =0x00D485F0 , + HWPfDdrPhyDramCol =0x00D48600 , + HWPfDdrPhyDramBgBa =0x00D48610 , + HWPfDdrPhyDynamicUpdreqrel =0x00D48620 , + HWPfDdrPhyVrefLimits =0x00D48630 , + HWPfDdrPhyIdtmTcStatus =0x00D6C020 , + HWPfDdrPhyIdtmFwVersion =0x00D6C410 , + HWPfDdrPhyRdlvlGateInitDelay =0x00D70000 , + HWPfDdrPhyRdenSmplabc =0x00D70008 , + HWPfDdrPhyVrefNibble0 =0x00D7000C , + HWPfDdrPhyVrefNibble1 =0x00D70010 , + HWPfDdrPhyRdlvlGateDqsSmpl0 =0x00D70014 , + HWPfDdrPhyRdlvlGateDqsSmpl1 =0x00D70018 , + HWPfDdrPhyRdlvlGateDqsSmpl2 =0x00D7001C , + HWPfDdrPhyDqsCount =0x00D70020 , + HWPfDdrPhyWrlvlRdlvlGateStatus =0x00D70024 , + HWPfDdrPhyErrorFlags =0x00D70028 , + HWPfDdrPhyPowerDown =0x00D70030 , + HWPfDdrPhyPrbsSeedByte0 =0x00D70034 , + HWPfDdrPhyPrbsSeedByte1 =0x00D70038 , + HWPfDdrPhyPcompDq =0x00D70040 , + HWPfDdrPhyNcompDq =0x00D70044 , + HWPfDdrPhyPcompDqs =0x00D70048 , + HWPfDdrPhyNcompDqs =0x00D7004C , + HWPfDdrPhyPcompCmd =0x00D70050 , + HWPfDdrPhyNcompCmd =0x00D70054 , + HWPfDdrPhyPcompCk =0x00D70058 , + HWPfDdrPhyNcompCk =0x00D7005C , + HWPfDdrPhyRcalOdtDq =0x00D70060 , + HWPfDdrPhyRcalOdtDqs =0x00D70064 , + HWPfDdrPhyRcalMask1 =0x00D70068 , + HWPfDdrPhyRcalMask2 =0x00D7006C , + HWPfDdrPhyRcalCtrl =0x00D70070 , + HWPfDdrPhyRcalCnt =0x00D70074 , + HWPfDdrPhyRcalOverride =0x00D70078 , + HWPfDdrPhyRcalGateen =0x00D7007C , + HWPfDdrPhyCtrl =0x00D70080 , + HWPfDdrPhyWrlvlAlg =0x00D70084 , + HWPfDdrPhyRcalVreftTxcmdOdt =0x00D70088 , + HWPfDdrPhyRdlvlGateParam =0x00D7008C , + HWPfDdrPhyRdlvlGateParam2 =0x00D70090 , + HWPfDdrPhyRcalVreftTxdata =0x00D70094 , + HWPfDdrPhyCmdIntDelay =0x00D700A4 , + HWPfDdrPhyAlertN =0x00D700A8 , + HWPfDdrPhyTrngReqWpre2tck =0x00D700AC , + HWPfDdrPhyCmdPhaseSel =0x00D700B4 , + HWPfDdrPhyCmdDcdl =0x00D700B8 , + HWPfDdrPhyCkDcdl =0x00D700BC , + HWPfDdrPhySwTrngCtrl1 =0x00D700C0 , + HWPfDdrPhySwTrngCtrl2 =0x00D700C4 , + HWPfDdrPhyRcalPcompRden =0x00D700C8 , + HWPfDdrPhyRcalNcompRden =0x00D700CC , + HWPfDdrPhyRcalCompen =0x00D700D0 , + HWPfDdrPhySwTrngRdqs =0x00D700D4 , + HWPfDdrPhySwTrngWdqs =0x00D700D8 , + HWPfDdrPhySwTrngRdena =0x00D700DC , + HWPfDdrPhySwTrngRdenb =0x00D700E0 , + HWPfDdrPhySwTrngRdenc =0x00D700E4 , + HWPfDdrPhySwTrngWdq =0x00D700E8 , + HWPfDdrPhySwTrngRdq =0x00D700EC , + HWPfDdrPhyPcfgHmValue =0x00D700F0 , + HWPfDdrPhyPcfgTimerValue =0x00D700F4 , + HWPfDdrPhyPcfgSoftwareTraining =0x00D700F8 , + HWPfDdrPhyPcfgMcStatus =0x00D700FC , + HWPfDdrPhyWrlvlPhRank0 =0x00D70100 , + HWPfDdrPhyRdenPhRank0 =0x00D70104 , + HWPfDdrPhyRdenIntRank0 =0x00D70108 , + HWPfDdrPhyRdqsDcdlRank0 =0x00D7010C , + HWPfDdrPhyRdqsShadowDcdlRank0 =0x00D70110 , + HWPfDdrPhyWdqsDcdlRank0 =0x00D70114 , + HWPfDdrPhyWdmDcdlShadowRank0 =0x00D70118 , + HWPfDdrPhyWdmDcdlRank0 =0x00D7011C , + HWPfDdrPhyDbiDcdlRank0 =0x00D70120 , + HWPfDdrPhyRdenDcdlaRank0 =0x00D70124 , + HWPfDdrPhyDbiDcdlShadowRank0 =0x00D70128 , + HWPfDdrPhyRdenDcdlbRank0 =0x00D7012C , + HWPfDdrPhyWdqsShadowDcdlRank0 =0x00D70130 , + HWPfDdrPhyRdenDcdlcRank0 =0x00D70134 , + HWPfDdrPhyRdenShadowDcdlaRank0 =0x00D70138 , + HWPfDdrPhyWrlvlIntRank0 =0x00D7013C , + HWPfDdrPhyRdqDcdlBit0Rank0 =0x00D70200 , + HWPfDdrPhyRdqDcdlShadowBit0Rank0 =0x00D70204 , + HWPfDdrPhyWdqDcdlBit0Rank0 =0x00D70208 , + HWPfDdrPhyWdqDcdlShadowBit0Rank0 =0x00D7020C , + HWPfDdrPhyRdqDcdlBit1Rank0 =0x00D70240 , + HWPfDdrPhyRdqDcdlShadowBit1Rank0 =0x00D70244 , + HWPfDdrPhyWdqDcdlBit1Rank0 =0x00D70248 , + HWPfDdrPhyWdqDcdlShadowBit1Rank0 =0x00D7024C , + HWPfDdrPhyRdqDcdlBit2Rank0 =0x00D70280 , + HWPfDdrPhyRdqDcdlShadowBit2Rank0 =0x00D70284 , + HWPfDdrPhyWdqDcdlBit2Rank0 =0x00D70288 , + HWPfDdrPhyWdqDcdlShadowBit2Rank0 =0x00D7028C , + HWPfDdrPhyRdqDcdlBit3Rank0 =0x00D702C0 , + HWPfDdrPhyRdqDcdlShadowBit3Rank0 =0x00D702C4 , + HWPfDdrPhyWdqDcdlBit3Rank0 =0x00D702C8 , + HWPfDdrPhyWdqDcdlShadowBit3Rank0 =0x00D702CC , + HWPfDdrPhyRdqDcdlBit4Rank0 =0x00D70300 , + HWPfDdrPhyRdqDcdlShadowBit4Rank0 =0x00D70304 , + HWPfDdrPhyWdqDcdlBit4Rank0 =0x00D70308 , + HWPfDdrPhyWdqDcdlShadowBit4Rank0 =0x00D7030C , + HWPfDdrPhyRdqDcdlBit5Rank0 =0x00D70340 , + HWPfDdrPhyRdqDcdlShadowBit5Rank0 =0x00D70344 , + HWPfDdrPhyWdqDcdlBit5Rank0 =0x00D70348 , + HWPfDdrPhyWdqDcdlShadowBit5Rank0 =0x00D7034C , + HWPfDdrPhyRdqDcdlBit6Rank0 =0x00D70380 , + HWPfDdrPhyRdqDcdlShadowBit6Rank0 =0x00D70384 , + HWPfDdrPhyWdqDcdlBit6Rank0 =0x00D70388 , + HWPfDdrPhyWdqDcdlShadowBit6Rank0 =0x00D7038C , + HWPfDdrPhyRdqDcdlBit7Rank0 =0x00D703C0 , + HWPfDdrPhyRdqDcdlShadowBit7Rank0 =0x00D703C4 , + HWPfDdrPhyWdqDcdlBit7Rank0 =0x00D703C8 , + HWPfDdrPhyWdqDcdlShadowBit7Rank0 =0x00D703CC , + HWPfDdrPhyIdtmStatus =0x00D740D0 , + HWPfDdrPhyIdtmError =0x00D74110 , + HWPfDdrPhyIdtmDebug =0x00D74120 , + HWPfDdrPhyIdtmDebugInt =0x00D74130 , + HwPfPcieLnAsicCfgovr =0x00D80000 , + HwPfPcieLnAclkmixer =0x00D80004 , + HwPfPcieLnTxrampfreq =0x00D80008 , + HwPfPcieLnLanetest =0x00D8000C , + HwPfPcieLnDcctrl =0x00D80010 , + HwPfPcieLnDccmeas =0x00D80014 , + HwPfPcieLnDccovrAclk =0x00D80018 , + HwPfPcieLnDccovrTxa =0x00D8001C , + HwPfPcieLnDccovrTxk =0x00D80020 , + HwPfPcieLnDccovrDclk =0x00D80024 , + HwPfPcieLnDccovrEclk =0x00D80028 , + HwPfPcieLnDcctrimAclk =0x00D8002C , + HwPfPcieLnDcctrimTx =0x00D80030 , + HwPfPcieLnDcctrimDclk =0x00D80034 , + HwPfPcieLnDcctrimEclk =0x00D80038 , + HwPfPcieLnQuadCtrl =0x00D8003C , + HwPfPcieLnQuadCorrIndex =0x00D80040 , + HwPfPcieLnQuadCorrStatus =0x00D80044 , + HwPfPcieLnAsicRxovr1 =0x00D80048 , + HwPfPcieLnAsicRxovr2 =0x00D8004C , + HwPfPcieLnAsicEqinfovr =0x00D80050 , + HwPfPcieLnRxcsr =0x00D80054 , + HwPfPcieLnRxfectrl =0x00D80058 , + HwPfPcieLnRxtest =0x00D8005C , + HwPfPcieLnEscount =0x00D80060 , + HwPfPcieLnCdrctrl =0x00D80064 , + HwPfPcieLnCdrctrl2 =0x00D80068 , + HwPfPcieLnCdrcfg0Ctrl0 =0x00D8006C , + HwPfPcieLnCdrcfg0Ctrl1 =0x00D80070 , + HwPfPcieLnCdrcfg0Ctrl2 =0x00D80074 , + HwPfPcieLnCdrcfg1Ctrl0 =0x00D80078 , + HwPfPcieLnCdrcfg1Ctrl1 =0x00D8007C , + HwPfPcieLnCdrcfg1Ctrl2 =0x00D80080 , + HwPfPcieLnCdrcfg2Ctrl0 =0x00D80084 , + HwPfPcieLnCdrcfg2Ctrl1 =0x00D80088 , + HwPfPcieLnCdrcfg2Ctrl2 =0x00D8008C , + HwPfPcieLnCdrcfg3Ctrl0 =0x00D80090 , + HwPfPcieLnCdrcfg3Ctrl1 =0x00D80094 , + HwPfPcieLnCdrcfg3Ctrl2 =0x00D80098 , + HwPfPcieLnCdrphase =0x00D8009C , + HwPfPcieLnCdrfreq =0x00D800A0 , + HwPfPcieLnCdrstatusPhase =0x00D800A4 , + HwPfPcieLnCdrstatusFreq =0x00D800A8 , + HwPfPcieLnCdroffset =0x00D800AC , + HwPfPcieLnRxvosctl =0x00D800B0 , + HwPfPcieLnRxvosctl2 =0x00D800B4 , + HwPfPcieLnRxlosctl =0x00D800B8 , + HwPfPcieLnRxlos =0x00D800BC , + HwPfPcieLnRxlosvval =0x00D800C0 , + HwPfPcieLnRxvosd0 =0x00D800C4 , + HwPfPcieLnRxvosd1 =0x00D800C8 , + HwPfPcieLnRxvosep0 =0x00D800CC , + HwPfPcieLnRxvosep1 =0x00D800D0 , + HwPfPcieLnRxvosen0 =0x00D800D4 , + HwPfPcieLnRxvosen1 =0x00D800D8 , + HwPfPcieLnRxvosafe =0x00D800DC , + HwPfPcieLnRxvosa0 =0x00D800E0 , + HwPfPcieLnRxvosa0Out =0x00D800E4 , + HwPfPcieLnRxvosa1 =0x00D800E8 , + HwPfPcieLnRxvosa1Out =0x00D800EC , + HwPfPcieLnRxmisc =0x00D800F0 , + HwPfPcieLnRxbeacon =0x00D800F4 , + HwPfPcieLnRxdssout =0x00D800F8 , + HwPfPcieLnRxdssout2 =0x00D800FC , + HwPfPcieLnAlphapctrl =0x00D80100 , + HwPfPcieLnAlphanctrl =0x00D80104 , + HwPfPcieLnAdaptctrl =0x00D80108 , + HwPfPcieLnAdaptctrl1 =0x00D8010C , + HwPfPcieLnAdaptstatus =0x00D80110 , + HwPfPcieLnAdaptvga1 =0x00D80114 , + HwPfPcieLnAdaptvga2 =0x00D80118 , + HwPfPcieLnAdaptvga3 =0x00D8011C , + HwPfPcieLnAdaptvga4 =0x00D80120 , + HwPfPcieLnAdaptboost1 =0x00D80124 , + HwPfPcieLnAdaptboost2 =0x00D80128 , + HwPfPcieLnAdaptboost3 =0x00D8012C , + HwPfPcieLnAdaptboost4 =0x00D80130 , + HwPfPcieLnAdaptsslms1 =0x00D80134 , + HwPfPcieLnAdaptsslms2 =0x00D80138 , + HwPfPcieLnAdaptvgaStatus =0x00D8013C , + HwPfPcieLnAdaptboostStatus =0x00D80140 , + HwPfPcieLnAdaptsslmsStatus1 =0x00D80144 , + HwPfPcieLnAdaptsslmsStatus2 =0x00D80148 , + HwPfPcieLnAfectrl1 =0x00D8014C , + HwPfPcieLnAfectrl2 =0x00D80150 , + HwPfPcieLnAfectrl3 =0x00D80154 , + HwPfPcieLnAfedefault1 =0x00D80158 , + HwPfPcieLnAfedefault2 =0x00D8015C , + HwPfPcieLnDfectrl1 =0x00D80160 , + HwPfPcieLnDfectrl2 =0x00D80164 , + HwPfPcieLnDfectrl3 =0x00D80168 , + HwPfPcieLnDfectrl4 =0x00D8016C , + HwPfPcieLnDfectrl5 =0x00D80170 , + HwPfPcieLnDfectrl6 =0x00D80174 , + HwPfPcieLnAfestatus1 =0x00D80178 , + HwPfPcieLnAfestatus2 =0x00D8017C , + HwPfPcieLnDfestatus1 =0x00D80180 , + HwPfPcieLnDfestatus2 =0x00D80184 , + HwPfPcieLnDfestatus3 =0x00D80188 , + HwPfPcieLnDfestatus4 =0x00D8018C , + HwPfPcieLnDfestatus5 =0x00D80190 , + HwPfPcieLnAlphastatus =0x00D80194 , + HwPfPcieLnFomctrl1 =0x00D80198 , + HwPfPcieLnFomctrl2 =0x00D8019C , + HwPfPcieLnFomctrl3 =0x00D801A0 , + HwPfPcieLnAclkcalStatus =0x00D801A4 , + HwPfPcieLnOffscorrStatus =0x00D801A8 , + HwPfPcieLnEyewidthStatus =0x00D801AC , + HwPfPcieLnEyeheightStatus =0x00D801B0 , + HwPfPcieLnAsicTxovr1 =0x00D801B4 , + HwPfPcieLnAsicTxovr2 =0x00D801B8 , + HwPfPcieLnAsicTxovr3 =0x00D801BC , + HwPfPcieLnTxbiasadjOvr =0x00D801C0 , + HwPfPcieLnTxcsr =0x00D801C4 , + HwPfPcieLnTxtest =0x00D801C8 , + HwPfPcieLnTxtestword =0x00D801CC , + HwPfPcieLnTxtestwordHigh =0x00D801D0 , + HwPfPcieLnTxdrive =0x00D801D4 , + HwPfPcieLnMtcsLn =0x00D801D8 , + HwPfPcieLnStatsumLn =0x00D801DC , + HwPfPcieLnRcbusScratch =0x00D801E0 , + HwPfPcieLnRcbusMinorrev =0x00D801F0 , + HwPfPcieLnRcbusMajorrev =0x00D801F4 , + HwPfPcieLnRcbusBlocktype =0x00D801F8 , + HwPfPcieSupPllcsr =0x00D80800 , + HwPfPcieSupPlldiv =0x00D80804 , + HwPfPcieSupPllcal =0x00D80808 , + HwPfPcieSupPllcalsts =0x00D8080C , + HwPfPcieSupPllmeas =0x00D80810 , + HwPfPcieSupPlldactrim =0x00D80814 , + HwPfPcieSupPllbiastrim =0x00D80818 , + HwPfPcieSupPllbwtrim =0x00D8081C , + HwPfPcieSupPllcaldly =0x00D80820 , + HwPfPcieSupRefclkonpclkctrl =0x00D80824 , + HwPfPcieSupPclkdelay =0x00D80828 , + HwPfPcieSupPhyconfig =0x00D8082C , + HwPfPcieSupRcalIntf =0x00D80830 , + HwPfPcieSupAuxcsr =0x00D80834 , + HwPfPcieSupVref =0x00D80838 , + HwPfPcieSupLinkmode =0x00D8083C , + HwPfPcieSupRrefcalctl =0x00D80840 , + HwPfPcieSupRrefcal =0x00D80844 , + HwPfPcieSupRrefcaldly =0x00D80848 , + HwPfPcieSupTximpcalctl =0x00D8084C , + HwPfPcieSupTximpcal =0x00D80850 , + HwPfPcieSupTximpoffset =0x00D80854 , + HwPfPcieSupTximpcaldly =0x00D80858 , + HwPfPcieSupRximpcalctl =0x00D8085C , + HwPfPcieSupRximpcal =0x00D80860 , + HwPfPcieSupRximpoffset =0x00D80864 , + HwPfPcieSupRximpcaldly =0x00D80868 , + HwPfPcieSupFence =0x00D8086C , + HwPfPcieSupMtcs =0x00D80870 , + HwPfPcieSupStatsum =0x00D809B8 , + HwPfPciePcsDpStatus0 =0x00D81000 , + HwPfPciePcsDpControl0 =0x00D81004 , + HwPfPciePcsPmaStatusLane0 =0x00D81008 , + HwPfPciePcsPipeStatusLane0 =0x00D8100C , + HwPfPciePcsTxdeemph0Lane0 =0x00D81010 , + HwPfPciePcsTxdeemph1Lane0 =0x00D81014 , + HwPfPciePcsInternalStatusLane0 =0x00D81018 , + HwPfPciePcsDpStatus1 =0x00D8101C , + HwPfPciePcsDpControl1 =0x00D81020 , + HwPfPciePcsPmaStatusLane1 =0x00D81024 , + HwPfPciePcsPipeStatusLane1 =0x00D81028 , + HwPfPciePcsTxdeemph0Lane1 =0x00D8102C , + HwPfPciePcsTxdeemph1Lane1 =0x00D81030 , + HwPfPciePcsInternalStatusLane1 =0x00D81034 , + HwPfPciePcsDpStatus2 =0x00D81038 , + HwPfPciePcsDpControl2 =0x00D8103C , + HwPfPciePcsPmaStatusLane2 =0x00D81040 , + HwPfPciePcsPipeStatusLane2 =0x00D81044 , + HwPfPciePcsTxdeemph0Lane2 =0x00D81048 , + HwPfPciePcsTxdeemph1Lane2 =0x00D8104C , + HwPfPciePcsInternalStatusLane2 =0x00D81050 , + HwPfPciePcsDpStatus3 =0x00D81054 , + HwPfPciePcsDpControl3 =0x00D81058 , + HwPfPciePcsPmaStatusLane3 =0x00D8105C , + HwPfPciePcsPipeStatusLane3 =0x00D81060 , + HwPfPciePcsTxdeemph0Lane3 =0x00D81064 , + HwPfPciePcsTxdeemph1Lane3 =0x00D81068 , + HwPfPciePcsInternalStatusLane3 =0x00D8106C , + HwPfPciePcsEbStatus0 =0x00D81070 , + HwPfPciePcsEbStatus1 =0x00D81074 , + HwPfPciePcsEbStatus2 =0x00D81078 , + HwPfPciePcsEbStatus3 =0x00D8107C , + HwPfPciePcsPllSettingPcieG1 =0x00D81088 , + HwPfPciePcsPllSettingPcieG2 =0x00D8108C , + HwPfPciePcsPllSettingPcieG3 =0x00D81090 , + HwPfPciePcsControl =0x00D81094 , + HwPfPciePcsEqControl =0x00D81098 , + HwPfPciePcsEqTimer =0x00D8109C , + HwPfPciePcsEqErrStatus =0x00D810A0 , + HwPfPciePcsEqErrCount =0x00D810A4 , + HwPfPciePcsStatus =0x00D810A8 , + HwPfPciePcsMiscRegister =0x00D810AC , + HwPfPciePcsObsControl =0x00D810B0 , + HwPfPciePcsPrbsCount0 =0x00D81200 , + HwPfPciePcsBistControl0 =0x00D81204 , + HwPfPciePcsBistStaticWord00 =0x00D81208 , + HwPfPciePcsBistStaticWord10 =0x00D8120C , + HwPfPciePcsBistStaticWord20 =0x00D81210 , + HwPfPciePcsBistStaticWord30 =0x00D81214 , + HwPfPciePcsPrbsCount1 =0x00D81220 , + HwPfPciePcsBistControl1 =0x00D81224 , + HwPfPciePcsBistStaticWord01 =0x00D81228 , + HwPfPciePcsBistStaticWord11 =0x00D8122C , + HwPfPciePcsBistStaticWord21 =0x00D81230 , + HwPfPciePcsBistStaticWord31 =0x00D81234 , + HwPfPciePcsPrbsCount2 =0x00D81240 , + HwPfPciePcsBistControl2 =0x00D81244 , + HwPfPciePcsBistStaticWord02 =0x00D81248 , + HwPfPciePcsBistStaticWord12 =0x00D8124C , + HwPfPciePcsBistStaticWord22 =0x00D81250 , + HwPfPciePcsBistStaticWord32 =0x00D81254 , + HwPfPciePcsPrbsCount3 =0x00D81260 , + HwPfPciePcsBistControl3 =0x00D81264 , + HwPfPciePcsBistStaticWord03 =0x00D81268 , + HwPfPciePcsBistStaticWord13 =0x00D8126C , + HwPfPciePcsBistStaticWord23 =0x00D81270 , + HwPfPciePcsBistStaticWord33 =0x00D81274 , + HwPfPcieGpexLtssmStateCntrl =0x00D90400 , + HwPfPcieGpexLtssmStateStatus =0x00D90404 , + HwPfPcieGpexSkipFreqTimer =0x00D90408 , + HwPfPcieGpexLaneSelect =0x00D9040C , + HwPfPcieGpexLaneDeskew =0x00D90410 , + HwPfPcieGpexRxErrorStatus =0x00D90414 , + HwPfPcieGpexLaneNumControl =0x00D90418 , + HwPfPcieGpexNFstControl =0x00D9041C , + HwPfPcieGpexLinkStatus =0x00D90420 , + HwPfPcieGpexAckReplayTimeout =0x00D90438 , + HwPfPcieGpexSeqNumberStatus =0x00D9043C , + HwPfPcieGpexCoreClkRatio =0x00D90440 , + HwPfPcieGpexDllTholdControl =0x00D90448 , + HwPfPcieGpexPmTimer =0x00D90450 , + HwPfPcieGpexPmeTimeout =0x00D90454 , + HwPfPcieGpexAspmL1Timer =0x00D90458 , + HwPfPcieGpexAspmReqTimer =0x00D9045C , + HwPfPcieGpexAspmL1Dis =0x00D90460 , + HwPfPcieGpexAdvisoryErrorControl =0x00D90468 , + HwPfPcieGpexId =0x00D90470 , + HwPfPcieGpexClasscode =0x00D90474 , + HwPfPcieGpexSubsystemId =0x00D90478 , + HwPfPcieGpexDeviceCapabilities =0x00D9047C , + HwPfPcieGpexLinkCapabilities =0x00D90480 , + HwPfPcieGpexFunctionNumber =0x00D90484 , + HwPfPcieGpexPmCapabilities =0x00D90488 , + HwPfPcieGpexFunctionSelect =0x00D9048C , + HwPfPcieGpexErrorCounter =0x00D904AC , + HwPfPcieGpexConfigReady =0x00D904B0 , + HwPfPcieGpexFcUpdateTimeout =0x00D904B8 , + HwPfPcieGpexFcUpdateTimer =0x00D904BC , + HwPfPcieGpexVcBufferLoad =0x00D904C8 , + HwPfPcieGpexVcBufferSizeThold =0x00D904CC , + HwPfPcieGpexVcBufferSelect =0x00D904D0 , + HwPfPcieGpexBarEnable =0x00D904D4 , + HwPfPcieGpexBarDwordLower =0x00D904D8 , + HwPfPcieGpexBarDwordUpper =0x00D904DC , + HwPfPcieGpexBarSelect =0x00D904E0 , + HwPfPcieGpexCreditCounterSelect =0x00D904E4 , + HwPfPcieGpexCreditCounterStatus =0x00D904E8 , + HwPfPcieGpexTlpHeaderSelect =0x00D904EC , + HwPfPcieGpexTlpHeaderDword0 =0x00D904F0 , + HwPfPcieGpexTlpHeaderDword1 =0x00D904F4 , + HwPfPcieGpexTlpHeaderDword2 =0x00D904F8 , + HwPfPcieGpexTlpHeaderDword3 =0x00D904FC , + HwPfPcieGpexRelaxOrderControl =0x00D90500 , + HwPfPcieGpexBarPrefetch =0x00D90504 , + HwPfPcieGpexFcCheckControl =0x00D90508 , + HwPfPcieGpexFcUpdateTimerTraffic =0x00D90518 , + HwPfPcieGpexPhyControl0 =0x00D9053C , + HwPfPcieGpexPhyControl1 =0x00D90544 , + HwPfPcieGpexPhyControl2 =0x00D9054C , + HwPfPcieGpexUserControl0 =0x00D9055C , + HwPfPcieGpexUncorrErrorStatus =0x00D905F0 , + HwPfPcieGpexRxCplError =0x00D90620 , + HwPfPcieGpexRxCplErrorDword0 =0x00D90624 , + HwPfPcieGpexRxCplErrorDword1 =0x00D90628 , + HwPfPcieGpexRxCplErrorDword2 =0x00D9062C , + HwPfPcieGpexPabSwResetEn =0x00D90630 , + HwPfPcieGpexGen3Control0 =0x00D90634 , + HwPfPcieGpexGen3Control1 =0x00D90638 , + HwPfPcieGpexGen3Control2 =0x00D9063C , + HwPfPcieGpexGen2ControlCsr =0x00D90640 , + HwPfPcieGpexTotalVfInitialVf0 =0x00D90644 , + HwPfPcieGpexTotalVfInitialVf1 =0x00D90648 , + HwPfPcieGpexSriovLinkDevId0 =0x00D90684 , + HwPfPcieGpexSriovLinkDevId1 =0x00D90688 , + HwPfPcieGpexSriovPageSize0 =0x00D906C4 , + HwPfPcieGpexSriovPageSize1 =0x00D906C8 , + HwPfPcieGpexIdVersion =0x00D906FC , + HwPfPcieGpexSriovVfOffsetStride0 =0x00D90704 , + HwPfPcieGpexSriovVfOffsetStride1 =0x00D90708 , + HwPfPcieGpexGen3DeskewControl =0x00D907B4 , + HwPfPcieGpexGen3EqControl =0x00D907B8 , + HwPfPcieGpexBridgeVersion =0x00D90800 , + HwPfPcieGpexBridgeCapability =0x00D90804 , + HwPfPcieGpexBridgeControl =0x00D90808 , + HwPfPcieGpexBridgeStatus =0x00D9080C , + HwPfPcieGpexEngineActivityStatus =0x00D9081C , + HwPfPcieGpexEngineResetControl =0x00D90820 , + HwPfPcieGpexAxiPioControl =0x00D90840 , + HwPfPcieGpexAxiPioStatus =0x00D90844 , + HwPfPcieGpexAmbaSlaveCmdStatus =0x00D90848 , + HwPfPcieGpexPexPioControl =0x00D908C0 , + HwPfPcieGpexPexPioStatus =0x00D908C4 , + HwPfPcieGpexAmbaMasterStatus =0x00D908C8 , + HwPfPcieGpexCsrSlaveCmdStatus =0x00D90920 , + HwPfPcieGpexMailboxAxiControl =0x00D90A50 , + HwPfPcieGpexMailboxAxiData =0x00D90A54 , + HwPfPcieGpexMailboxPexControl =0x00D90A90 , + HwPfPcieGpexMailboxPexData =0x00D90A94 , + HwPfPcieGpexPexInterruptEnable =0x00D90AD0 , + HwPfPcieGpexPexInterruptStatus =0x00D90AD4 , + HwPfPcieGpexPexInterruptAxiPioVector =0x00D90AD8 , + HwPfPcieGpexPexInterruptPexPioVector =0x00D90AE0 , + HwPfPcieGpexPexInterruptMiscVector =0x00D90AF8 , + HwPfPcieGpexAmbaInterruptPioEnable =0x00D90B00 , + HwPfPcieGpexAmbaInterruptMiscEnable =0x00D90B0C , + HwPfPcieGpexAmbaInterruptPioStatus =0x00D90B10 , + HwPfPcieGpexAmbaInterruptMiscStatus =0x00D90B1C , + HwPfPcieGpexPexPmControl =0x00D90B80 , + HwPfPcieGpexSlotMisc =0x00D90B88 , + HwPfPcieGpexAxiAddrMappingControl =0x00D90BA0 , + HwPfPcieGpexAxiAddrMappingWindowAxiBase =0x00D90BA4 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseLow =0x00D90BA8 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseHigh =0x00D90BAC , + HwPfPcieGpexPexBarAddrFunc0Bar0 =0x00D91BA0 , + HwPfPcieGpexPexBarAddrFunc0Bar1 =0x00D91BA4 , + HwPfPcieGpexAxiAddrMappingPcieHdrParam =0x00D95BA0 , + HwPfPcieGpexExtAxiAddrMappingAxiBase =0x00D980A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar0 =0x00D984A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar1 =0x00D984A4 , + HwPfPcieGpexAmbaInterruptFlrEnable =0x00D9B960 , + HwPfPcieGpexAmbaInterruptFlrStatus =0x00D9B9A0 , + HwPfPcieGpexExtAxiAddrMappingSize =0x00D9BAF0 , + HwPfPcieGpexPexPioAwcacheControl =0x00D9C300 , + HwPfPcieGpexPexPioArcacheControl =0x00D9C304 , + HwPfPcieGpexPabObSizeControlVc0 =0x00D9C310 +}; + +/* TIP PF Interrupt numbers */ +enum { +ACC100_PF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_PF_INT_DOORBELL_VF_2_PF =1 , +ACC100_PF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_PF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_PF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_PF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_PF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_PF_INT_ILLEGAL_FORMAT =7 , +ACC100_PF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_PF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +ACC100_PF_INT_ARAM_ACCESS_ERR =10 , +ACC100_PF_INT_ARAM_ECC_1BIT_ERR =11 , +ACC100_PF_INT_PARITY_ERR =12 , +ACC100_PF_INT_QMGR_ERR =13 , +ACC100_PF_INT_INT_REQ_OVERFLOW =14 , +ACC100_PF_INT_APB_TIMEOUT =15 , +}; + +#endif /* ACC100_PF_ENUM_H */ drivers/baseband/acc100/acc100_vf_enum.h new file +73
-0@@ -0,0 +1,73 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_VF_ENUM_H +#define ACC100_VF_ENUM_H + +/* +* ACC100 Register mapping on VF BAR0 +* This is automatically generated from RDL, format may change with new RDL +*/ +enum { + HWVfQmgrIngressAq =0x00000000 , + HWVfHiVfToPfDbellVf =0x00000800 , + HWVfHiPfToVfDbellVf =0x00000808 , + HWVfHiInfoRingBaseLoVf =0x00000810 , + HWVfHiInfoRingBaseHiVf =0x00000814 , + HWVfHiInfoRingPointerVf =0x00000818 , + HWVfHiInfoRingIntWrEnVf =0x00000820 , + HWVfHiInfoRingPf2VfWrEnVf =0x00000824 , + HWVfHiMsixVectorMapperVf =0x00000860 , + HWVfDmaFec5GulDescBaseLoRegVf =0x00000920 , + HWVfDmaFec5GulDescBaseHiRegVf =0x00000924 , + HWVfDmaFec5GulRespPtrLoRegVf =0x00000928 , + HWVfDmaFec5GulRespPtrHiRegVf =0x0000092C , + HWVfDmaFec5GdlDescBaseLoRegVf =0x00000940 , + HWVfDmaFec5GdlDescBaseHiRegVf =0x00000944 , + HWVfDmaFec5GdlRespPtrLoRegVf =0x00000948 , + HWVfDmaFec5GdlRespPtrHiRegVf =0x0000094C , + HWVfDmaFec4GulDescBaseLoRegVf =0x00000960 , + HWVfDmaFec4GulDescBaseHiRegVf =0x00000964 , + HWVfDmaFec4GulRespPtrLoRegVf =0x00000968 , + HWVfDmaFec4GulRespPtrHiRegVf =0x0000096C , + HWVfDmaFec4GdlDescBaseLoRegVf =0x00000980 , + HWVfDmaFec4GdlDescBaseHiRegVf =0x00000984 , + HWVfDmaFec4GdlRespPtrLoRegVf =0x00000988 , + HWVfDmaFec4GdlRespPtrHiRegVf =0x0000098C , + HWVfDmaDdrBaseRangeRoVf =0x000009A0 , + HWVfQmgrAqResetVf =0x00000E00 , + HWVfQmgrRingSizeVf =0x00000E04 , + HWVfQmgrGrpDepthLog20Vf =0x00000E08 , + HWVfQmgrGrpDepthLog21Vf =0x00000E0C , + HWVfQmgrGrpFunction0Vf =0x00000E10 , + HWVfQmgrGrpFunction1Vf =0x00000E14 , + HWVfPmACntrlRegVf =0x00000F40 , + HWVfPmACountVf =0x00000F48 , + HWVfPmAKCntLoVf =0x00000F50 , + HWVfPmAKCntHiVf =0x00000F54 , + HWVfPmADeltaCntLoVf =0x00000F60 , + HWVfPmADeltaCntHiVf =0x00000F64 , + HWVfPmBCntrlRegVf =0x00000F80 , + HWVfPmBCountVf =0x00000F88 , + HWVfPmBKCntLoVf =0x00000F90 , + HWVfPmBKCntHiVf =0x00000F94 , + HWVfPmBDeltaCntLoVf =0x00000FA0 , + HWVfPmBDeltaCntHiVf =0x00000FA4 +}; + +/* TIP VF Interrupt numbers */ +enum { +ACC100_VF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_VF_INT_DOORBELL_VF_2_PF =1 , +ACC100_VF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_VF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_VF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_VF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_VF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_VF_INT_ILLEGAL_FORMAT =7 , +ACC100_VF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_VF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +}; + +#endif /* ACC100_VF_ENUM_H */ drivers/baseband/acc100/rte_acc100_pmd.h +23
-0@@ -5,6 +5,9 @@#ifndef _RTE_ACC100_PMD_H_#define _RTE_ACC100_PMD_H_ +#include "acc100_pf_enum.h" +#include "acc100_vf_enum.h" +/* Helper macro for logging */ #define rte_bbdev_log (level, fmt, ...) \ rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \@@ -27,6 +30,493 @@#define RTE_ACC100_PF_DEVICE_ID (0x0d5c)#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) +/* Define as 1 to use only a single FEC engine */ +#ifndef RTE_ACC100_SINGLE_FEC +#define RTE_ACC100_SINGLE_FEC 0 +#endif + +/* Values used in filling in descriptors */ +#define ACC100_DMA_DESC_TYPE 2 +#define ACC100_DMA_CODE_BLK_MODE 0 +#define ACC100_DMA_BLKID_FCW 1 +#define ACC100_DMA_BLKID_IN 2 +#define ACC100_DMA_BLKID_OUT_ENC 1 +#define ACC100_DMA_BLKID_OUT_HARD 1 +#define ACC100_DMA_BLKID_OUT_SOFT 2 +#define ACC100_DMA_BLKID_OUT_HARQ 3 +#define ACC100_DMA_BLKID_IN_HARQ 3 + +/* Values used in filling in decode FCWs */ +#define ACC100_FCW_TD_VER 1 +#define ACC100_FCW_TD_EXT_COLD_REG_EN 1 +#define ACC100_FCW_TD_AUTOMAP 0x0f
drivers/baseband/acc100/rte_acc100_pmd.h line 62
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h +10
-0+#define ACC100_FCW_TD_RVIDX_0 2 +#define ACC100_FCW_TD_RVIDX_1 26 +#define ACC100_FCW_TD_RVIDX_2 50 +#define ACC100_FCW_TD_RVIDX_3 74 + +/* Values used in writing to the registers */ +#define ACC100_REG_IRQ_EN_ALL 0x1FF83FF/* Enable all interrupts */ + +/* ACC100 Specific Dimensioning */ +#define ACC100_SIZE_64MBYTE (64*1024*1024)
A better name for this #define would be ACC100_MAX_RING_SIZE
Similar for alloc_2x64mb_sw_rings_mem should be
alloc_max_sw_rings_mem.
Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.h +4
-0+/* 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)
drivers/baseband/acc100/rte_acc100_pmd.h line 76
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h +10
-0+/* Assume offset for HARQ in memory */ +#define ACC100_HARQ_OFFSET (32*1024) +/* Mask used to calculate an index in an Info Ring array (not a byte offset) */ +#define ACC100_INFO_RING_MASK (ACC100_INFO_RING_NUM_ENTRIES-1) +/* Number of Virtual Functions ACC100 supports */ +#define ACC100_NUM_VFS 16 +#define ACC100_NUM_QGRPS 8 +#define ACC100_NUM_QGRPS_PER_WORD 8 +#define ACC100_NUM_AQS 16 +#define MAX_ENQ_BATCH_SIZE 255
little stuff, these define values should line up at least in the blocks.
drivers/baseband/acc100/rte_acc100_pmd.h line 78
Quoted 2 lines
drivers/baseband/acc100/rte_acc100_pmd.h +2
-0+/* All ACC100 Registers alignment are 32bits = 4B */ +#define BYTES_IN_WORD 4
Common #define names should have ACC100_ prefix to lower chance of name conflicts.
Generally a good idea of all of them.
Tom
Quoted 444 lines
drivers/baseband/acc100/rte_acc100_pmd.h +441
-0+#define MAX_E_MBUF 64000 + +#define GRP_ID_SHIFT 10/* Queue Index Hierarchy */ +#define VF_ID_SHIFT 4/* Queue Index Hierarchy */ +#define VF_OFFSET_QOS 16/* offset in Memory Space specific to QoS Mon */ +#define TMPL_PRI_0 0x03020100 +#define TMPL_PRI_1 0x07060504 +#define TMPL_PRI_2 0x0b0a0908 +#define TMPL_PRI_3 0x0f0e0d0c +#define QUEUE_ENABLE 0x80000000/* Bit to mark Queue as Enabled */ +#define WORDS_IN_ARAM_SIZE (128 * 1024 / 4) + +#define ACC100_NUM_TMPL 32 +#define VF_OFFSET_QOS 16/* offset in Memory Space specific to QoS Mon */ +/* Mapping of signals for the available engines */ +#define SIG_UL_5G 0 +#define SIG_UL_5G_LAST 7 +#define SIG_DL_5G 13 +#define SIG_DL_5G_LAST 15 +#define SIG_UL_4G 16 +#define SIG_UL_4G_LAST 21 +#define SIG_DL_4G 27 +#define SIG_DL_4G_LAST 31 + +/* max number of iterations to allocate memory block for all rings */ +#define SW_RING_MEM_ALLOC_ATTEMPTS 5 +#define MAX_QUEUE_DEPTH 1024 +#define ACC100_DMA_MAX_NUM_POINTERS 14 +#define ACC100_DMA_DESC_PADDING 8 +#define ACC100_FCW_PADDING 12 +#define ACC100_DESC_FCW_OFFSET 192 +#define ACC100_DESC_SIZE 256 +#define ACC100_DESC_OFFSET (ACC100_DESC_SIZE / 64) +#define ACC100_FCW_TE_BLEN 32 +#define ACC100_FCW_TD_BLEN 24 +#define ACC100_FCW_LE_BLEN 32 +#define ACC100_FCW_LD_BLEN 36 + +#define ACC100_FCW_VER 2 +#define MUX_5GDL_DESC 6 +#define CMP_ENC_SIZE 20 +#define CMP_DEC_SIZE 24 +#define ENC_OFFSET (32) +#define DEC_OFFSET (80) +#define ACC100_EXT_MEM +#define ACC100_HARQ_OFFSET_THRESHOLD 1024 + +/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ +#define N_ZC_1 66/* N = 66 Zc for BG 1 */ +#define N_ZC_2 50/* N = 50 Zc for BG 2 */ +#define K0_1_1 17/* K0 fraction numerator for rv 1 and BG 1 */ +#define K0_1_2 13/* K0 fraction numerator for rv 1 and BG 2 */ +#define K0_2_1 33/* K0 fraction numerator for rv 2 and BG 1 */ +#define K0_2_2 25/* K0 fraction numerator for rv 2 and BG 2 */ +#define K0_3_1 56/* K0 fraction numerator for rv 3 and BG 1 */ +#define K0_3_2 43/* K0 fraction numerator for rv 3 and BG 2 */ + +/* ACC100 Configuration */ +#define ACC100_DDR_ECC_ENABLE +#define ACC100_CFG_DMA_ERROR 0x3D7 +#define ACC100_CFG_AXI_CACHE 0x11 +#define ACC100_CFG_QMGR_HI_P 0x0F0F +#define ACC100_CFG_PCI_AXI 0xC003 +#define ACC100_CFG_PCI_BRIDGE 0x40006033 +#define ACC100_ENGINE_OFFSET 0x1000 +#define ACC100_RESET_HI 0x20100 +#define ACC100_RESET_LO 0x20000 +#define ACC100_RESET_HARD 0x1FF +#define ACC100_ENGINES_MAX 9 +#define LONG_WAIT 1000 + +/* ACC100 DMA Descriptor triplet */ +struct acc100_dma_triplet { +uint64_t address; +uint32_t blen:20 , + res0:4 , + last:1 , + dma_ext:1 , + res1:2 , + blkid:4 ; +} __rte_packed; + + + +/* ACC100 DMA Response Descriptor */ +union acc100_dma_rsp_desc { +uint32_t val; +struct { +uint32_t crc_status:1 , + synd_ok:1 , + dma_err:1 , + neg_stop:1 , + fcw_err:1 , + output_err:1 , + input_err:1 , + timestampEn:1 , + iterCountFrac:8 , + iter_cnt:8 , + rsrvd3:6 , + sdone:1 , + fdone:1 ; +uint32_t add_info_0; +uint32_t add_info_1; + }; +}; + + +/* ACC100 Queue Manager Enqueue PCI Register */ +union acc100_enqueue_reg_fmt { +uint32_t val; +struct { +uint32_t num_elem:8 , + addr_offset:3 , + rsrvd:1 , + req_elem_addr:20 ; + }; +}; + +/* FEC 4G Uplink Frame Control Word */ +struct __rte_packed acc100_fcw_td { + uint8_t fcw_ver:4, + num_maps:4; /* Unused */ + uint8_t filler:6, /* Unused */ + rsrvd0:1, + bypass_sb_deint:1; +uint16_t k_pos; +uint16_t k_neg;/* Unused */ +uint8_t c_neg;/* Unused */ +uint8_t c;/* Unused */ +uint32_t ea;/* Unused */ +uint32_t eb;/* Unused */ +uint8_t cab;/* Unused */ +uint8_t k0_start_col;/* Unused */ +uint8_t rsrvd1; + uint8_t code_block_mode:1, /* Unused */ + turbo_crc_type:1, + rsrvd2:3, + bypass_teq:1, /* Unused */ + soft_output_en:1, /* Unused */ + ext_td_cold_reg_en:1; +union {/* External Cold register */ +uint32_t ext_td_cold_reg; +struct { +uint32_t min_iter:4 ,/* Unused */ + max_iter:4 , + ext_scale:5 ,/* Unused */ + rsrvd3:3 , + early_stop_en:1 ,/* Unused */ + sw_soft_out_dis:1 ,/* Unused */ + sw_et_cont:1 ,/* Unused */ + sw_soft_out_saturation:1 ,/* Unused */ + half_iter_on:1 ,/* Unused */ + raw_decoder_input_on:1 ,/* Unused */ + rsrvd4:10 ; + }; + }; +}; + +/* FEC 5GNR Uplink Frame Control Word */ +struct __rte_packed acc100_fcw_ld { + uint32_t FCWversion:4, + qm:4, + nfiller:11, + BG:1, + Zc:9, + res0:1, + synd_precoder:1, + synd_post:1; + uint32_t ncb:16, + k0:16; + uint32_t rm_e:24, + hcin_en:1, + hcout_en:1, + crc_select:1, + bypass_dec:1, + bypass_intlv:1, + so_en:1, + so_bypass_rm:1, + so_bypass_intlv:1; + uint32_t hcin_offset:16, + hcin_size0:16; + uint32_t hcin_size1:16, + hcin_decomp_mode:3, + llr_pack_mode:1, + hcout_comp_mode:3, + res2:1, + dec_convllr:4, + hcout_convllr:4; + uint32_t itmax:7, + itstop:1, + so_it:7, + res3:1, + hcout_offset:16; + uint32_t hcout_size0:16, + hcout_size1:16; + uint32_t gain_i:8, + gain_h:8, + negstop_th:16; + uint32_t negstop_it:7, + negstop_en:1, + res4:24; +}; + +/* FEC 4G Downlink Frame Control Word */ +struct __rte_packed acc100_fcw_te { +uint16_t k_neg; +uint16_t k_pos; +uint8_t c_neg; +uint8_t c; +uint8_t filler; +uint8_t cab; + uint32_t ea:17, + rsrvd0:15; + uint32_t eb:17, + rsrvd1:15; +uint16_t ncb_neg; +uint16_t ncb_pos; + uint8_t rv_idx0:2, + rsrvd2:2, + rv_idx1:2, + rsrvd3:2; + uint8_t bypass_rv_idx0:1, + bypass_rv_idx1:1, + bypass_rm:1, + rsrvd4:5; + uint8_t rsrvd5:1, + rsrvd6:3, + code_block_crc:1, + rsrvd7:3; + uint8_t code_block_mode:1, + rsrvd8:7; +uint64_t rsrvd9; +}; + +/* FEC 5GNR Downlink Frame Control Word */ +struct __rte_packed acc100_fcw_le { + uint32_t FCWversion:4, + qm:4, + nfiller:11, + BG:1, + Zc:9, + res0:3; + uint32_t ncb:16, + k0:16; + uint32_t rm_e:24, + res1:2, + crc_select:1, + res2:1, + bypass_intlv:1, + res3:3; + uint32_t res4_a:12, + mcb_count:3, + res4_b:17; +uint32_t res5; +uint32_t res6; +uint32_t res7; +uint32_t res8; +}; + +/* ACC100 DMA Request Descriptor */ +struct __rte_packed acc100_dma_req_desc { +union { +struct { +uint32_t type:4 , + rsrvd0:26 , + sdone:1 , + fdone:1 ; +uint32_t rsrvd1; +uint32_t rsrvd2; +uint32_t pass_param:8 , + sdone_enable:1 , + irq_enable:1 , + timeStampEn:1 , + res0:5 , + numCBs:4 , + res1:4 , + m2dlen:4 , + d2mlen:4 ; + }; +struct { +uint32_t word0; +uint32_t word1; +uint32_t word2; +uint32_t word3; + }; + }; +struct acc100_dma_triplet data_ptrs[ACC100_DMA_MAX_NUM_POINTERS ]; + +/* Virtual addresses used to retrieve SW context info */ +union { +void *op_addr; +uint64_t pad1;/* pad to 64 bits */ + }; +/* +* Stores additional information needed for driver processing: +* - last_desc_in_batch - flag used to mark last descriptor (CB) +* in batch +* - cbs_in_tb - stores information about total number of Code Blocks +* in currently processed Transport Block +*/ +union { +struct { +union { +struct acc100_fcw_ld fcw_ld; +struct acc100_fcw_td fcw_td; +struct acc100_fcw_le fcw_le; +struct acc100_fcw_te fcw_te; +uint32_t pad2[ACC100_FCW_PADDING ]; + }; +uint32_t last_desc_in_batch :8 , + cbs_in_tb:8 , + pad4 :16 ; + }; +uint64_t pad3[ACC100_DMA_DESC_PADDING ];/* pad to 64 bits */ + }; +}; + +/* ACC100 DMA Descriptor */ +union acc100_dma_desc { +struct acc100_dma_req_desc req; +union acc100_dma_rsp_desc rsp; +}; + + +/* Union describing Info Ring entry */ +union acc100_harq_layout_data { +uint32_t val; +struct { +uint16_t offset; +uint16_t size0; + }; +} __rte_packed; + + +/* Union describing Info Ring entry */ +union acc100_info_ring_data { +uint32_t val; +struct { +union { +uint16_t detailed_info; +struct { +uint16_t aq_id:4 ; +uint16_t qg_id:4 ; +uint16_t vf_id:6 ; +uint16_t reserved:2 ; + }; + }; +uint16_t int_nb:7 ; +uint16_t msi_0:1 ; +uint16_t vf2pf:6 ; +uint16_t loop:1 ; +uint16_t valid:1 ; + }; +} __rte_packed; + +struct acc100_registry_addr { +unsigned int dma_ring_dl5g_hi; +unsigned int dma_ring_dl5g_lo; +unsigned int dma_ring_ul5g_hi; +unsigned int dma_ring_ul5g_lo; +unsigned int dma_ring_dl4g_hi; +unsigned int dma_ring_dl4g_lo; +unsigned int dma_ring_ul4g_hi; +unsigned int dma_ring_ul4g_lo; +unsigned int ring_size; +unsigned int info_ring_hi; +unsigned int info_ring_lo; +unsigned int info_ring_en; +unsigned int info_ring_ptr; +unsigned int tail_ptrs_dl5g_hi; +unsigned int tail_ptrs_dl5g_lo; +unsigned int tail_ptrs_ul5g_hi; +unsigned int tail_ptrs_ul5g_lo; +unsigned int tail_ptrs_dl4g_hi; +unsigned int tail_ptrs_dl4g_lo; +unsigned int tail_ptrs_ul4g_hi; +unsigned int tail_ptrs_ul4g_lo; +unsigned int depth_log0_offset; +unsigned int depth_log1_offset; +unsigned int qman_group_func; +unsigned int ddr_range; +}; + +/* Structure holding registry addresses for PF */ +static const struct acc100_registry_addr pf_reg_addr = { + .dma_ring_dl5g_hi = HWPfDmaFec5GdlDescBaseHiRegVf, + .dma_ring_dl5g_lo = HWPfDmaFec5GdlDescBaseLoRegVf, + .dma_ring_ul5g_hi = HWPfDmaFec5GulDescBaseHiRegVf, + .dma_ring_ul5g_lo = HWPfDmaFec5GulDescBaseLoRegVf, + .dma_ring_dl4g_hi = HWPfDmaFec4GdlDescBaseHiRegVf, + .dma_ring_dl4g_lo = HWPfDmaFec4GdlDescBaseLoRegVf, + .dma_ring_ul4g_hi = HWPfDmaFec4GulDescBaseHiRegVf, + .dma_ring_ul4g_lo = HWPfDmaFec4GulDescBaseLoRegVf, + .ring_size = HWPfQmgrRingSizeVf, + .info_ring_hi = HWPfHiInfoRingBaseHiRegPf, + .info_ring_lo = HWPfHiInfoRingBaseLoRegPf, + .info_ring_en = HWPfHiInfoRingIntWrEnRegPf, + .info_ring_ptr = HWPfHiInfoRingPointerRegPf, + .tail_ptrs_dl5g_hi = HWPfDmaFec5GdlRespPtrHiRegVf, + .tail_ptrs_dl5g_lo = HWPfDmaFec5GdlRespPtrLoRegVf, + .tail_ptrs_ul5g_hi = HWPfDmaFec5GulRespPtrHiRegVf, + .tail_ptrs_ul5g_lo = HWPfDmaFec5GulRespPtrLoRegVf, + .tail_ptrs_dl4g_hi = HWPfDmaFec4GdlRespPtrHiRegVf, + .tail_ptrs_dl4g_lo = HWPfDmaFec4GdlRespPtrLoRegVf, + .tail_ptrs_ul4g_hi = HWPfDmaFec4GulRespPtrHiRegVf, + .tail_ptrs_ul4g_lo = HWPfDmaFec4GulRespPtrLoRegVf, + .depth_log0_offset = HWPfQmgrGrpDepthLog20Vf, + .depth_log1_offset = HWPfQmgrGrpDepthLog21Vf, + .qman_group_func = HWPfQmgrGrpFunction0, + .ddr_range = HWPfDmaVfDdrBaseRw, +}; + +/* Structure holding registry addresses for VF */ +static const struct acc100_registry_addr vf_reg_addr = { + .dma_ring_dl5g_hi = HWVfDmaFec5GdlDescBaseHiRegVf, + .dma_ring_dl5g_lo = HWVfDmaFec5GdlDescBaseLoRegVf, + .dma_ring_ul5g_hi = HWVfDmaFec5GulDescBaseHiRegVf, + .dma_ring_ul5g_lo = HWVfDmaFec5GulDescBaseLoRegVf, + .dma_ring_dl4g_hi = HWVfDmaFec4GdlDescBaseHiRegVf, + .dma_ring_dl4g_lo = HWVfDmaFec4GdlDescBaseLoRegVf, + .dma_ring_ul4g_hi = HWVfDmaFec4GulDescBaseHiRegVf, + .dma_ring_ul4g_lo = HWVfDmaFec4GulDescBaseLoRegVf, + .ring_size = HWVfQmgrRingSizeVf, + .info_ring_hi = HWVfHiInfoRingBaseHiVf, + .info_ring_lo = HWVfHiInfoRingBaseLoVf, + .info_ring_en = HWVfHiInfoRingIntWrEnVf, + .info_ring_ptr = HWVfHiInfoRingPointerVf, + .tail_ptrs_dl5g_hi = HWVfDmaFec5GdlRespPtrHiRegVf, + .tail_ptrs_dl5g_lo = HWVfDmaFec5GdlRespPtrLoRegVf, + .tail_ptrs_ul5g_hi = HWVfDmaFec5GulRespPtrHiRegVf, + .tail_ptrs_ul5g_lo = HWVfDmaFec5GulRespPtrLoRegVf, + .tail_ptrs_dl4g_hi = HWVfDmaFec4GdlRespPtrHiRegVf, + .tail_ptrs_dl4g_lo = HWVfDmaFec4GdlRespPtrLoRegVf, + .tail_ptrs_ul4g_hi = HWVfDmaFec4GulRespPtrHiRegVf, + .tail_ptrs_ul4g_lo = HWVfDmaFec4GulRespPtrLoRegVf, + .depth_log0_offset = HWVfQmgrGrpDepthLog20Vf, + .depth_log1_offset = HWVfQmgrGrpDepthLog21Vf, + .qman_group_func = HWVfQmgrGrpFunction0Vf, + .ddr_range = HWVfDmaDdrBaseRangeRoVf, +}; +/* Private data structure for each ACC100 device */ struct acc100_device {void *mmio_base;/**< Base address of MMIO registers (BAR0) */
Re: [dpdk-dev] [PATCH v9 02/10] baseband/acc100: add register definition file
Hi Tom,
Quoted 1,227 lines
From: Tom Rix <[email protected]>
Quoted 8 lines · Nicolas Chautru
Add in the list of registers for the device and related HW specs definitions.
Signed-off-by Nicolas Chautru <[email protected]>Reviewed-by Rosen Xu <[email protected]>Acked-by Liu Tianjiao <[email protected]>--- drivers/baseband/acc100/acc100_pf_enum.h | 1068++++++++++++++++++++++++++++++
Review
Quoted 7 lines
drivers/baseband/acc100/acc100_vf_enum.h | 73 ++ drivers/baseband/acc100/rte_acc100_pmd.h | 490 ++++++++++++++ 3 files changed, 1631 insertions(+) create mode 100644 drivers/baseband/acc100/acc100_pf_enum.h create mode 100644 drivers/baseband/acc100/acc100_vf_enum.h(quoted diff) +0
-0
b/drivers/baseband/acc100/acc100_pf_enum.hQuoted 5 lines
new file mode 100644
index 0000000..a1ee416drivers/baseband/acc100/acc100_pf_enum.h line 10
Quoted 10 lines
drivers/baseband/acc100/acc100_pf_enum.h new file +10
-0@@ -0,0 +1,1068 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_PF_ENUM_H +#define ACC100_PF_ENUM_H + +/* +* ACC100 Register mapping on PF BAR0 +* This is automatically generated from RDL, format may change with new RDL
Review
Quoted 1,059 lines
drivers/baseband/acc100/acc100_pf_enum.h new file +1058
-0+* Release. +* Variable names are as is +*/ +enum { + HWPfQmgrEgressQueuesTemplate =0x0007FE00 , + HWPfQmgrIngressAq =0x00080000 , + HWPfQmgrArbQAvail =0x00A00010 , + HWPfQmgrArbQBlock =0x00A00014 , + HWPfQmgrAqueueDropNotifEn =0x00A00024 , + HWPfQmgrAqueueDisableNotifEn =0x00A00028 , + HWPfQmgrSoftReset =0x00A00038 , + HWPfQmgrInitStatus =0x00A0003C , + HWPfQmgrAramWatchdogCount =0x00A00040 , + HWPfQmgrAramWatchdogCounterEn =0x00A00044 , + HWPfQmgrAxiWatchdogCount =0x00A00048 , + HWPfQmgrAxiWatchdogCounterEn =0x00A0004C , + HWPfQmgrProcessWatchdogCount =0x00A00050 , + HWPfQmgrProcessWatchdogCounterEn =0x00A00054 , + HWPfQmgrProcessUl4GWatchdogCounter =0x00A00058 , + HWPfQmgrProcessDl4GWatchdogCounter =0x00A0005C , + HWPfQmgrProcessUl5GWatchdogCounter =0x00A00060 , + HWPfQmgrProcessDl5GWatchdogCounter =0x00A00064 , + HWPfQmgrProcessMldWatchdogCounter =0x00A00068 , + HWPfQmgrMsiOverflowUpperVf =0x00A00070 , + HWPfQmgrMsiOverflowLowerVf =0x00A00074 , + HWPfQmgrMsiWatchdogOverflow =0x00A00078 , + HWPfQmgrMsiOverflowEnable =0x00A0007C , + HWPfQmgrDebugAqPointerMemGrp =0x00A00100 , + HWPfQmgrDebugOutputArbQFifoGrp =0x00A00140 , + HWPfQmgrDebugMsiFifoGrp =0x00A00180 , + HWPfQmgrDebugAxiWdTimeoutMsiFifo =0x00A001C0 , + HWPfQmgrDebugProcessWdTimeoutMsiFifo =0x00A001C4 , + HWPfQmgrDepthLog2Grp =0x00A00200 , + HWPfQmgrTholdGrp =0x00A00300 , + HWPfQmgrGrpTmplateReg0Indx =0x00A00600 , + HWPfQmgrGrpTmplateReg1Indx =0x00A00680 , + HWPfQmgrGrpTmplateReg2indx =0x00A00700 , + HWPfQmgrGrpTmplateReg3Indx =0x00A00780 , + HWPfQmgrGrpTmplateReg4Indx =0x00A00800 , + HWPfQmgrVfBaseAddr =0x00A01000 , + HWPfQmgrUl4GWeightRrVf =0x00A02000 , + HWPfQmgrDl4GWeightRrVf =0x00A02100 , + HWPfQmgrUl5GWeightRrVf =0x00A02200 , + HWPfQmgrDl5GWeightRrVf =0x00A02300 , + HWPfQmgrMldWeightRrVf =0x00A02400 , + HWPfQmgrArbQDepthGrp =0x00A02F00 , + HWPfQmgrGrpFunction0 =0x00A02F40 , + HWPfQmgrGrpFunction1 =0x00A02F44 , + HWPfQmgrGrpPriority =0x00A02F48 , + HWPfQmgrWeightSync =0x00A03000 , + HWPfQmgrAqEnableVf =0x00A10000 , + HWPfQmgrAqResetVf =0x00A20000 , + HWPfQmgrRingSizeVf =0x00A20004 , + HWPfQmgrGrpDepthLog20Vf =0x00A20008 , + HWPfQmgrGrpDepthLog21Vf =0x00A2000C , + HWPfQmgrGrpFunction0Vf =0x00A20010 , + HWPfQmgrGrpFunction1Vf =0x00A20014 , + HWPfDmaConfig0Reg =0x00B80000 , + HWPfDmaConfig1Reg =0x00B80004 , + HWPfDmaQmgrAddrReg =0x00B80008 , + HWPfDmaSoftResetReg =0x00B8000C , + HWPfDmaAxcacheReg =0x00B80010 , + HWPfDmaVersionReg =0x00B80014 , + HWPfDmaFrameThreshold =0x00B80018 , + HWPfDmaTimestampLo =0x00B8001C , + HWPfDmaTimestampHi =0x00B80020 , + HWPfDmaAxiStatus =0x00B80028 , + HWPfDmaAxiControl =0x00B8002C , + HWPfDmaNoQmgr =0x00B80030 , + HWPfDmaQosScale =0x00B80034 , + HWPfDmaQmanen =0x00B80040 , + HWPfDmaQmgrQosBase =0x00B80060 , + HWPfDmaFecClkGatingEnable =0x00B80080 , + HWPfDmaPmEnable =0x00B80084 , + HWPfDmaQosEnable =0x00B80088 , + HWPfDmaHarqWeightedRrFrameThreshold =0x00B800B0 , + HWPfDmaDataSmallWeightedRrFrameThresh =0x00B800B4 , + HWPfDmaDataLargeWeightedRrFrameThresh =0x00B800B8 , + HWPfDmaInboundCbMaxSize =0x00B800BC , + HWPfDmaInboundDrainDataSize =0x00B800C0 , + HWPfDmaVfDdrBaseRw =0x00B80400 , + HWPfDmaCmplTmOutCnt =0x00B80800 , + HWPfDmaProcTmOutCnt =0x00B80804 , + HWPfDmaStatusRrespBresp =0x00B80810 , + HWPfDmaCfgRrespBresp =0x00B80814 , + HWPfDmaStatusMemParErr =0x00B80818 , + HWPfDmaCfgMemParErrEn =0x00B8081C , + HWPfDmaStatusDmaHwErr =0x00B80820 , + HWPfDmaCfgDmaHwErrEn =0x00B80824 , + HWPfDmaStatusFecCoreErr =0x00B80828 , + HWPfDmaCfgFecCoreErrEn =0x00B8082C , + HWPfDmaStatusFcwDescrErr =0x00B80830 , + HWPfDmaCfgFcwDescrErrEn =0x00B80834 , + HWPfDmaStatusBlockTransmit =0x00B80838 , + HWPfDmaBlockOnErrEn =0x00B8083C , + HWPfDmaStatusFlushDma =0x00B80840 , + HWPfDmaFlushDmaOnErrEn =0x00B80844 , + HWPfDmaStatusSdoneFifoFull =0x00B80848 , + HWPfDmaStatusDescriptorErrLoVf =0x00B8084C , + HWPfDmaStatusDescriptorErrHiVf =0x00B80850 , + HWPfDmaStatusFcwErrLoVf =0x00B80854 , + HWPfDmaStatusFcwErrHiVf =0x00B80858 , + HWPfDmaStatusDataErrLoVf =0x00B8085C , + HWPfDmaStatusDataErrHiVf =0x00B80860 , + HWPfDmaCfgMsiEnSoftwareErr =0x00B80864 , + HWPfDmaDescriptorSignatuture =0x00B80868 , + HWPfDmaFcwSignature =0x00B8086C , + HWPfDmaErrorDetectionEn =0x00B80870 , + HWPfDmaErrCntrlFifoDebug =0x00B8087C , + HWPfDmaStatusToutData =0x00B80880 , + HWPfDmaStatusToutDesc =0x00B80884 , + HWPfDmaStatusToutUnexpData =0x00B80888 , + HWPfDmaStatusToutUnexpDesc =0x00B8088C , + HWPfDmaStatusToutProcess =0x00B80890 , + HWPfDmaConfigCtoutOutDataEn =0x00B808A0 , + HWPfDmaConfigCtoutOutDescrEn =0x00B808A4 , + HWPfDmaConfigUnexpComplDataEn =0x00B808A8 , + HWPfDmaConfigUnexpComplDescrEn =0x00B808AC , + HWPfDmaConfigPtoutOutEn =0x00B808B0 , + HWPfDmaFec5GulDescBaseLoRegVf =0x00B88020 , + HWPfDmaFec5GulDescBaseHiRegVf =0x00B88024 , + HWPfDmaFec5GulRespPtrLoRegVf =0x00B88028 , + HWPfDmaFec5GulRespPtrHiRegVf =0x00B8802C , + HWPfDmaFec5GdlDescBaseLoRegVf =0x00B88040 , + HWPfDmaFec5GdlDescBaseHiRegVf =0x00B88044 , + HWPfDmaFec5GdlRespPtrLoRegVf =0x00B88048 , + HWPfDmaFec5GdlRespPtrHiRegVf =0x00B8804C , + HWPfDmaFec4GulDescBaseLoRegVf =0x00B88060 , + HWPfDmaFec4GulDescBaseHiRegVf =0x00B88064 , + HWPfDmaFec4GulRespPtrLoRegVf =0x00B88068 , + HWPfDmaFec4GulRespPtrHiRegVf =0x00B8806C , + HWPfDmaFec4GdlDescBaseLoRegVf =0x00B88080 , + HWPfDmaFec4GdlDescBaseHiRegVf =0x00B88084 , + HWPfDmaFec4GdlRespPtrLoRegVf =0x00B88088 , + HWPfDmaFec4GdlRespPtrHiRegVf =0x00B8808C , + HWPfDmaVfDdrBaseRangeRo =0x00B880A0 , + HWPfQosmonACntrlReg =0x00B90000 , + HWPfQosmonAEvalOverflow0 =0x00B90008 , + HWPfQosmonAEvalOverflow1 =0x00B9000C , + HWPfQosmonADivTerm =0x00B90010 , + HWPfQosmonATickTerm =0x00B90014 , + HWPfQosmonAEvalTerm =0x00B90018 , + HWPfQosmonAAveTerm =0x00B9001C , + HWPfQosmonAForceEccErr =0x00B90020 , + HWPfQosmonAEccErrDetect =0x00B90024 , + HWPfQosmonAIterationConfig0Low =0x00B90060 , + HWPfQosmonAIterationConfig0High =0x00B90064 , + HWPfQosmonAIterationConfig1Low =0x00B90068 , + HWPfQosmonAIterationConfig1High =0x00B9006C , + HWPfQosmonAIterationConfig2Low =0x00B90070 , + HWPfQosmonAIterationConfig2High =0x00B90074 , + HWPfQosmonAIterationConfig3Low =0x00B90078 , + HWPfQosmonAIterationConfig3High =0x00B9007C , + HWPfQosmonAEvalMemAddr =0x00B90080 , + HWPfQosmonAEvalMemData =0x00B90084 , + HWPfQosmonAXaction =0x00B900C0 , + HWPfQosmonARemThres1Vf =0x00B90400 , + HWPfQosmonAThres2Vf =0x00B90404 , + HWPfQosmonAWeiFracVf =0x00B90408 , + HWPfQosmonARrWeiVf =0x00B9040C , + HWPfPermonACntrlRegVf =0x00B98000 , + HWPfPermonACountVf =0x00B98008 , + HWPfPermonAKCntLoVf =0x00B98010 , + HWPfPermonAKCntHiVf =0x00B98014 , + HWPfPermonADeltaCntLoVf =0x00B98020 , + HWPfPermonADeltaCntHiVf =0x00B98024 , + HWPfPermonAVersionReg =0x00B9C000 , + HWPfPermonACbControlFec =0x00B9C0F0 , + HWPfPermonADltTimerLoFec =0x00B9C0F4 , + HWPfPermonADltTimerHiFec =0x00B9C0F8 , + HWPfPermonACbCountFec =0x00B9C100 , + HWPfPermonAAccExecTimerLoFec =0x00B9C104 , + HWPfPermonAAccExecTimerHiFec =0x00B9C108 , + HWPfPermonAExecTimerMinFec =0x00B9C200 , + HWPfPermonAExecTimerMaxFec =0x00B9C204 , + HWPfPermonAControlBusMon =0x00B9C400 , + HWPfPermonAConfigBusMon =0x00B9C404 , + HWPfPermonASkipCountBusMon =0x00B9C408 , + HWPfPermonAMinLatBusMon =0x00B9C40C , + HWPfPermonAMaxLatBusMon =0x00B9C500 , + HWPfPermonATotalLatLowBusMon =0x00B9C504 , + HWPfPermonATotalLatUpperBusMon =0x00B9C508 , + HWPfPermonATotalReqCntBusMon =0x00B9C50C , + HWPfQosmonBCntrlReg =0x00BA0000 , + HWPfQosmonBEvalOverflow0 =0x00BA0008 , + HWPfQosmonBEvalOverflow1 =0x00BA000C , + HWPfQosmonBDivTerm =0x00BA0010 , + HWPfQosmonBTickTerm =0x00BA0014 , + HWPfQosmonBEvalTerm =0x00BA0018 , + HWPfQosmonBAveTerm =0x00BA001C , + HWPfQosmonBForceEccErr =0x00BA0020 , + HWPfQosmonBEccErrDetect =0x00BA0024 , + HWPfQosmonBIterationConfig0Low =0x00BA0060 , + HWPfQosmonBIterationConfig0High =0x00BA0064 , + HWPfQosmonBIterationConfig1Low =0x00BA0068 , + HWPfQosmonBIterationConfig1High =0x00BA006C , + HWPfQosmonBIterationConfig2Low =0x00BA0070 , + HWPfQosmonBIterationConfig2High =0x00BA0074 , + HWPfQosmonBIterationConfig3Low =0x00BA0078 , + HWPfQosmonBIterationConfig3High =0x00BA007C , + HWPfQosmonBEvalMemAddr =0x00BA0080 , + HWPfQosmonBEvalMemData =0x00BA0084 , + HWPfQosmonBXaction =0x00BA00C0 , + HWPfQosmonBRemThres1Vf =0x00BA0400 , + HWPfQosmonBThres2Vf =0x00BA0404 , + HWPfQosmonBWeiFracVf =0x00BA0408 , + HWPfQosmonBRrWeiVf =0x00BA040C , + HWPfPermonBCntrlRegVf =0x00BA8000 , + HWPfPermonBCountVf =0x00BA8008 , + HWPfPermonBKCntLoVf =0x00BA8010 , + HWPfPermonBKCntHiVf =0x00BA8014 , + HWPfPermonBDeltaCntLoVf =0x00BA8020 , + HWPfPermonBDeltaCntHiVf =0x00BA8024 , + HWPfPermonBVersionReg =0x00BAC000 , + HWPfPermonBCbControlFec =0x00BAC0F0 , + HWPfPermonBDltTimerLoFec =0x00BAC0F4 , + HWPfPermonBDltTimerHiFec =0x00BAC0F8 , + HWPfPermonBCbCountFec =0x00BAC100 , + HWPfPermonBAccExecTimerLoFec =0x00BAC104 , + HWPfPermonBAccExecTimerHiFec =0x00BAC108 , + HWPfPermonBExecTimerMinFec =0x00BAC200 , + HWPfPermonBExecTimerMaxFec =0x00BAC204 , + HWPfPermonBControlBusMon =0x00BAC400 , + HWPfPermonBConfigBusMon =0x00BAC404 , + HWPfPermonBSkipCountBusMon =0x00BAC408 , + HWPfPermonBMinLatBusMon =0x00BAC40C , + HWPfPermonBMaxLatBusMon =0x00BAC500 , + HWPfPermonBTotalLatLowBusMon =0x00BAC504 , + HWPfPermonBTotalLatUpperBusMon =0x00BAC508 , + HWPfPermonBTotalReqCntBusMon =0x00BAC50C , + HWPfFecUl5gCntrlReg =0x00BC0000 , + HWPfFecUl5gI2MThreshReg =0x00BC0004 , + HWPfFecUl5gVersionReg =0x00BC0100 , + HWPfFecUl5gFcwStatusReg =0x00BC0104 , + HWPfFecUl5gWarnReg =0x00BC0108 , + HwPfFecUl5gIbDebugReg =0x00BC0200 , + HwPfFecUl5gObLlrDebugReg =0x00BC0204 , + HwPfFecUl5gObHarqDebugReg =0x00BC0208 , + HwPfFecUl5g1CntrlReg =0x00BC1000 , + HwPfFecUl5g1I2MThreshReg =0x00BC1004 , + HwPfFecUl5g1VersionReg =0x00BC1100 , + HwPfFecUl5g1FcwStatusReg =0x00BC1104 , + HwPfFecUl5g1WarnReg =0x00BC1108 , + HwPfFecUl5g1IbDebugReg =0x00BC1200 , + HwPfFecUl5g1ObLlrDebugReg =0x00BC1204 , + HwPfFecUl5g1ObHarqDebugReg =0x00BC1208 , + HwPfFecUl5g2CntrlReg =0x00BC2000 , + HwPfFecUl5g2I2MThreshReg =0x00BC2004 , + HwPfFecUl5g2VersionReg =0x00BC2100 , + HwPfFecUl5g2FcwStatusReg =0x00BC2104 , + HwPfFecUl5g2WarnReg =0x00BC2108 , + HwPfFecUl5g2IbDebugReg =0x00BC2200 , + HwPfFecUl5g2ObLlrDebugReg =0x00BC2204 , + HwPfFecUl5g2ObHarqDebugReg =0x00BC2208 , + HwPfFecUl5g3CntrlReg =0x00BC3000 , + HwPfFecUl5g3I2MThreshReg =0x00BC3004 , + HwPfFecUl5g3VersionReg =0x00BC3100 , + HwPfFecUl5g3FcwStatusReg =0x00BC3104 , + HwPfFecUl5g3WarnReg =0x00BC3108 , + HwPfFecUl5g3IbDebugReg =0x00BC3200 , + HwPfFecUl5g3ObLlrDebugReg =0x00BC3204 , + HwPfFecUl5g3ObHarqDebugReg =0x00BC3208 , + HwPfFecUl5g4CntrlReg =0x00BC4000 , + HwPfFecUl5g4I2MThreshReg =0x00BC4004 , + HwPfFecUl5g4VersionReg =0x00BC4100 , + HwPfFecUl5g4FcwStatusReg =0x00BC4104 , + HwPfFecUl5g4WarnReg =0x00BC4108 , + HwPfFecUl5g4IbDebugReg =0x00BC4200 , + HwPfFecUl5g4ObLlrDebugReg =0x00BC4204 , + HwPfFecUl5g4ObHarqDebugReg =0x00BC4208 , + HwPfFecUl5g5CntrlReg =0x00BC5000 , + HwPfFecUl5g5I2MThreshReg =0x00BC5004 , + HwPfFecUl5g5VersionReg =0x00BC5100 , + HwPfFecUl5g5FcwStatusReg =0x00BC5104 , + HwPfFecUl5g5WarnReg =0x00BC5108 , + HwPfFecUl5g5IbDebugReg =0x00BC5200 , + HwPfFecUl5g5ObLlrDebugReg =0x00BC5204 , + HwPfFecUl5g5ObHarqDebugReg =0x00BC5208 , + HwPfFecUl5g6CntrlReg =0x00BC6000 , + HwPfFecUl5g6I2MThreshReg =0x00BC6004 , + HwPfFecUl5g6VersionReg =0x00BC6100 , + HwPfFecUl5g6FcwStatusReg =0x00BC6104 , + HwPfFecUl5g6WarnReg =0x00BC6108 , + HwPfFecUl5g6IbDebugReg =0x00BC6200 , + HwPfFecUl5g6ObLlrDebugReg =0x00BC6204 , + HwPfFecUl5g6ObHarqDebugReg =0x00BC6208 , + HwPfFecUl5g7CntrlReg =0x00BC7000 , + HwPfFecUl5g7I2MThreshReg =0x00BC7004 , + HwPfFecUl5g7VersionReg =0x00BC7100 , + HwPfFecUl5g7FcwStatusReg =0x00BC7104 , + HwPfFecUl5g7WarnReg =0x00BC7108 , + HwPfFecUl5g7IbDebugReg =0x00BC7200 , + HwPfFecUl5g7ObLlrDebugReg =0x00BC7204 , + HwPfFecUl5g7ObHarqDebugReg =0x00BC7208 , + HwPfFecUl5g8CntrlReg =0x00BC8000 , + HwPfFecUl5g8I2MThreshReg =0x00BC8004 , + HwPfFecUl5g8VersionReg =0x00BC8100 , + HwPfFecUl5g8FcwStatusReg =0x00BC8104 , + HwPfFecUl5g8WarnReg =0x00BC8108 , + HwPfFecUl5g8IbDebugReg =0x00BC8200 , + HwPfFecUl5g8ObLlrDebugReg =0x00BC8204 , + HwPfFecUl5g8ObHarqDebugReg =0x00BC8208 , + HWPfFecDl5gCntrlReg =0x00BCF000 , + HWPfFecDl5gI2MThreshReg =0x00BCF004 , + HWPfFecDl5gVersionReg =0x00BCF100 , + HWPfFecDl5gFcwStatusReg =0x00BCF104 , + HWPfFecDl5gWarnReg =0x00BCF108 , + HWPfFecUlVersionReg =0x00BD0000 , + HWPfFecUlControlReg =0x00BD0004 , + HWPfFecUlStatusReg =0x00BD0008 , + HWPfFecDlVersionReg =0x00BDF000 , + HWPfFecDlClusterConfigReg =0x00BDF004 , + HWPfFecDlBurstThres =0x00BDF00C , + HWPfFecDlClusterStatusReg0 =0x00BDF040 , + HWPfFecDlClusterStatusReg1 =0x00BDF044 , + HWPfFecDlClusterStatusReg2 =0x00BDF048 , + HWPfFecDlClusterStatusReg3 =0x00BDF04C , + HWPfFecDlClusterStatusReg4 =0x00BDF050 , + HWPfFecDlClusterStatusReg5 =0x00BDF054 , + HWPfChaFabPllPllrst =0x00C40000 , + HWPfChaFabPllClk0 =0x00C40004 , + HWPfChaFabPllClk1 =0x00C40008 , + HWPfChaFabPllBwadj =0x00C4000C , + HWPfChaFabPllLbw =0x00C40010 , + HWPfChaFabPllResetq =0x00C40014 , + HWPfChaFabPllPhshft0 =0x00C40018 , + HWPfChaFabPllPhshft1 =0x00C4001C , + HWPfChaFabPllDivq0 =0x00C40020 , + HWPfChaFabPllDivq1 =0x00C40024 , + HWPfChaFabPllDivq2 =0x00C40028 , + HWPfChaFabPllDivq3 =0x00C4002C , + HWPfChaFabPllDivq4 =0x00C40030 , + HWPfChaFabPllDivq5 =0x00C40034 , + HWPfChaFabPllDivq6 =0x00C40038 , + HWPfChaFabPllDivq7 =0x00C4003C , + HWPfChaDl5gPllPllrst =0x00C40080 , + HWPfChaDl5gPllClk0 =0x00C40084 , + HWPfChaDl5gPllClk1 =0x00C40088 , + HWPfChaDl5gPllBwadj =0x00C4008C , + HWPfChaDl5gPllLbw =0x00C40090 , + HWPfChaDl5gPllResetq =0x00C40094 , + HWPfChaDl5gPllPhshft0 =0x00C40098 , + HWPfChaDl5gPllPhshft1 =0x00C4009C , + HWPfChaDl5gPllDivq0 =0x00C400A0 , + HWPfChaDl5gPllDivq1 =0x00C400A4 , + HWPfChaDl5gPllDivq2 =0x00C400A8 , + HWPfChaDl5gPllDivq3 =0x00C400AC , + HWPfChaDl5gPllDivq4 =0x00C400B0 , + HWPfChaDl5gPllDivq5 =0x00C400B4 , + HWPfChaDl5gPllDivq6 =0x00C400B8 , + HWPfChaDl5gPllDivq7 =0x00C400BC , + HWPfChaDl4gPllPllrst =0x00C40100 , + HWPfChaDl4gPllClk0 =0x00C40104 , + HWPfChaDl4gPllClk1 =0x00C40108 , + HWPfChaDl4gPllBwadj =0x00C4010C , + HWPfChaDl4gPllLbw =0x00C40110 , + HWPfChaDl4gPllResetq =0x00C40114 , + HWPfChaDl4gPllPhshft0 =0x00C40118 , + HWPfChaDl4gPllPhshft1 =0x00C4011C , + HWPfChaDl4gPllDivq0 =0x00C40120 , + HWPfChaDl4gPllDivq1 =0x00C40124 , + HWPfChaDl4gPllDivq2 =0x00C40128 , + HWPfChaDl4gPllDivq3 =0x00C4012C , + HWPfChaDl4gPllDivq4 =0x00C40130 , + HWPfChaDl4gPllDivq5 =0x00C40134 , + HWPfChaDl4gPllDivq6 =0x00C40138 , + HWPfChaDl4gPllDivq7 =0x00C4013C , + HWPfChaUl5gPllPllrst =0x00C40180 , + HWPfChaUl5gPllClk0 =0x00C40184 , + HWPfChaUl5gPllClk1 =0x00C40188 , + HWPfChaUl5gPllBwadj =0x00C4018C , + HWPfChaUl5gPllLbw =0x00C40190 , + HWPfChaUl5gPllResetq =0x00C40194 , + HWPfChaUl5gPllPhshft0 =0x00C40198 , + HWPfChaUl5gPllPhshft1 =0x00C4019C , + HWPfChaUl5gPllDivq0 =0x00C401A0 , + HWPfChaUl5gPllDivq1 =0x00C401A4 , + HWPfChaUl5gPllDivq2 =0x00C401A8 , + HWPfChaUl5gPllDivq3 =0x00C401AC , + HWPfChaUl5gPllDivq4 =0x00C401B0 , + HWPfChaUl5gPllDivq5 =0x00C401B4 , + HWPfChaUl5gPllDivq6 =0x00C401B8 , + HWPfChaUl5gPllDivq7 =0x00C401BC , + HWPfChaUl4gPllPllrst =0x00C40200 , + HWPfChaUl4gPllClk0 =0x00C40204 , + HWPfChaUl4gPllClk1 =0x00C40208 , + HWPfChaUl4gPllBwadj =0x00C4020C , + HWPfChaUl4gPllLbw =0x00C40210 , + HWPfChaUl4gPllResetq =0x00C40214 , + HWPfChaUl4gPllPhshft0 =0x00C40218 , + HWPfChaUl4gPllPhshft1 =0x00C4021C , + HWPfChaUl4gPllDivq0 =0x00C40220 , + HWPfChaUl4gPllDivq1 =0x00C40224 , + HWPfChaUl4gPllDivq2 =0x00C40228 , + HWPfChaUl4gPllDivq3 =0x00C4022C , + HWPfChaUl4gPllDivq4 =0x00C40230 , + HWPfChaUl4gPllDivq5 =0x00C40234 , + HWPfChaUl4gPllDivq6 =0x00C40238 , + HWPfChaUl4gPllDivq7 =0x00C4023C , + HWPfChaDdrPllPllrst =0x00C40280 , + HWPfChaDdrPllClk0 =0x00C40284 , + HWPfChaDdrPllClk1 =0x00C40288 , + HWPfChaDdrPllBwadj =0x00C4028C , + HWPfChaDdrPllLbw =0x00C40290 , + HWPfChaDdrPllResetq =0x00C40294 , + HWPfChaDdrPllPhshft0 =0x00C40298 , + HWPfChaDdrPllPhshft1 =0x00C4029C , + HWPfChaDdrPllDivq0 =0x00C402A0 , + HWPfChaDdrPllDivq1 =0x00C402A4 , + HWPfChaDdrPllDivq2 =0x00C402A8 , + HWPfChaDdrPllDivq3 =0x00C402AC , + HWPfChaDdrPllDivq4 =0x00C402B0 , + HWPfChaDdrPllDivq5 =0x00C402B4 , + HWPfChaDdrPllDivq6 =0x00C402B8 , + HWPfChaDdrPllDivq7 =0x00C402BC , + HWPfChaErrStatus =0x00C40400 , + HWPfChaErrMask =0x00C40404 , + HWPfChaDebugPcieMsiFifo =0x00C40410 , + HWPfChaDebugDdrMsiFifo =0x00C40414 , + HWPfChaDebugMiscMsiFifo =0x00C40418 , + HWPfChaPwmSet =0x00C40420 , + HWPfChaDdrRstStatus =0x00C40430 , + HWPfChaDdrStDoneStatus =0x00C40434 , + HWPfChaDdrWbRstCfg =0x00C40438 , + HWPfChaDdrApbRstCfg =0x00C4043C , + HWPfChaDdrPhyRstCfg =0x00C40440 , + HWPfChaDdrCpuRstCfg =0x00C40444 , + HWPfChaDdrSifRstCfg =0x00C40448 , + HWPfChaPadcfgPcomp0 =0x00C41000 , + HWPfChaPadcfgNcomp0 =0x00C41004 , + HWPfChaPadcfgOdt0 =0x00C41008 , + HWPfChaPadcfgProtect0 =0x00C4100C , + HWPfChaPreemphasisProtect0 =0x00C41010 , + HWPfChaPreemphasisCompen0 =0x00C41040 , + HWPfChaPreemphasisOdten0 =0x00C41044 , + HWPfChaPadcfgPcomp1 =0x00C41100 , + HWPfChaPadcfgNcomp1 =0x00C41104 , + HWPfChaPadcfgOdt1 =0x00C41108 , + HWPfChaPadcfgProtect1 =0x00C4110C , + HWPfChaPreemphasisProtect1 =0x00C41110 , + HWPfChaPreemphasisCompen1 =0x00C41140 , + HWPfChaPreemphasisOdten1 =0x00C41144 , + HWPfChaPadcfgPcomp2 =0x00C41200 , + HWPfChaPadcfgNcomp2 =0x00C41204 , + HWPfChaPadcfgOdt2 =0x00C41208 , + HWPfChaPadcfgProtect2 =0x00C4120C , + HWPfChaPreemphasisProtect2 =0x00C41210 , + HWPfChaPreemphasisCompen2 =0x00C41240 , + HWPfChaPreemphasisOdten4 =0x00C41444 , + HWPfChaPreemphasisOdten2 =0x00C41244 , + HWPfChaPadcfgPcomp3 =0x00C41300 , + HWPfChaPadcfgNcomp3 =0x00C41304 , + HWPfChaPadcfgOdt3 =0x00C41308 , + HWPfChaPadcfgProtect3 =0x00C4130C , + HWPfChaPreemphasisProtect3 =0x00C41310 , + HWPfChaPreemphasisCompen3 =0x00C41340 , + HWPfChaPreemphasisOdten3 =0x00C41344 , + HWPfChaPadcfgPcomp4 =0x00C41400 , + HWPfChaPadcfgNcomp4 =0x00C41404 , + HWPfChaPadcfgOdt4 =0x00C41408 , + HWPfChaPadcfgProtect4 =0x00C4140C , + HWPfChaPreemphasisProtect4 =0x00C41410 , + HWPfChaPreemphasisCompen4 =0x00C41440 , + HWPfHiVfToPfDbellVf =0x00C80000 , + HWPfHiPfToVfDbellVf =0x00C80008 , + HWPfHiInfoRingBaseLoVf =0x00C80010 , + HWPfHiInfoRingBaseHiVf =0x00C80014 , + HWPfHiInfoRingPointerVf =0x00C80018 , + HWPfHiInfoRingIntWrEnVf =0x00C80020 , + HWPfHiInfoRingPf2VfWrEnVf =0x00C80024 , + HWPfHiMsixVectorMapperVf =0x00C80060 , + HWPfHiModuleVersionReg =0x00C84000 , + HWPfHiIosf2axiErrLogReg =0x00C84004 , + HWPfHiHardResetReg =0x00C84008 , + HWPfHi5GHardResetReg =0x00C8400C , + HWPfHiInfoRingBaseLoRegPf =0x00C84010 , + HWPfHiInfoRingBaseHiRegPf =0x00C84014 , + HWPfHiInfoRingPointerRegPf =0x00C84018 , + HWPfHiInfoRingIntWrEnRegPf =0x00C84020 , + HWPfHiInfoRingVf2pfLoWrEnReg =0x00C84024 , + HWPfHiInfoRingVf2pfHiWrEnReg =0x00C84028 , + HWPfHiLogParityErrStatusReg =0x00C8402C , + HWPfHiLogDataParityErrorVfStatusLo =0x00C84030 , + HWPfHiLogDataParityErrorVfStatusHi =0x00C84034 , + HWPfHiBlockTransmitOnErrorEn =0x00C84038 , + HWPfHiCfgMsiIntWrEnRegPf =0x00C84040 , + HWPfHiCfgMsiVf2pfLoWrEnReg =0x00C84044 , + HWPfHiCfgMsiVf2pfHighWrEnReg =0x00C84048 , + HWPfHiMsixVectorMapperPf =0x00C84060 , + HWPfHiApbWrWaitTime =0x00C84100 , + HWPfHiXCounterMaxValue =0x00C84104 , + HWPfHiPfMode =0x00C84108 , + HWPfHiClkGateHystReg =0x00C8410C , + HWPfHiSnoopBitsReg =0x00C84110 , + HWPfHiMsiDropEnableReg =0x00C84114 , + HWPfHiMsiStatReg =0x00C84120 , + HWPfHiFifoOflStatReg =0x00C84124 , + HWPfHiHiDebugReg =0x00C841F4 , + HWPfHiDebugMemSnoopMsiFifo =0x00C841F8 , + HWPfHiDebugMemSnoopInputFifo =0x00C841FC , + HWPfHiMsixMappingConfig =0x00C84200 , + HWPfHiJunkReg =0x00C8FF00 , + HWPfDdrUmmcVer =0x00D00000 , + HWPfDdrUmmcCap =0x00D00010 , + HWPfDdrUmmcCtrl =0x00D00020 , + HWPfDdrMpcPe =0x00D00080 , + HWPfDdrMpcPpri3 =0x00D00090 , + HWPfDdrMpcPpri2 =0x00D000A0 , + HWPfDdrMpcPpri1 =0x00D000B0 , + HWPfDdrMpcPpri0 =0x00D000C0 , + HWPfDdrMpcPrwgrpCtrl =0x00D000D0 , + HWPfDdrMpcPbw7 =0x00D000E0 , + HWPfDdrMpcPbw6 =0x00D000F0 , + HWPfDdrMpcPbw5 =0x00D00100 , + HWPfDdrMpcPbw4 =0x00D00110 , + HWPfDdrMpcPbw3 =0x00D00120 , + HWPfDdrMpcPbw2 =0x00D00130 , + HWPfDdrMpcPbw1 =0x00D00140 , + HWPfDdrMpcPbw0 =0x00D00150 , + HWPfDdrMemoryInit =0x00D00200 , + HWPfDdrMemoryInitDone =0x00D00210 , + HWPfDdrMemInitPhyTrng0 =0x00D00240 , + HWPfDdrMemInitPhyTrng1 =0x00D00250 , + HWPfDdrMemInitPhyTrng2 =0x00D00260 , + HWPfDdrMemInitPhyTrng3 =0x00D00270 , + HWPfDdrBcDram =0x00D003C0 , + HWPfDdrBcAddrMap =0x00D003D0 , + HWPfDdrBcRef =0x00D003E0 , + HWPfDdrBcTim0 =0x00D00400 , + HWPfDdrBcTim1 =0x00D00410 , + HWPfDdrBcTim2 =0x00D00420 , + HWPfDdrBcTim3 =0x00D00430 , + HWPfDdrBcTim4 =0x00D00440 , + HWPfDdrBcTim5 =0x00D00450 , + HWPfDdrBcTim6 =0x00D00460 , + HWPfDdrBcTim7 =0x00D00470 , + HWPfDdrBcTim8 =0x00D00480 , + HWPfDdrBcTim9 =0x00D00490 , + HWPfDdrBcTim10 =0x00D004A0 , + HWPfDdrBcTim12 =0x00D004C0 , + HWPfDdrDfiInit =0x00D004D0 , + HWPfDdrDfiInitComplete =0x00D004E0 , + HWPfDdrDfiTim0 =0x00D004F0 , + HWPfDdrDfiTim1 =0x00D00500 , + HWPfDdrDfiPhyUpdEn =0x00D00530 , + HWPfDdrMemStatus =0x00D00540 , + HWPfDdrUmmcErrStatus =0x00D00550 , + HWPfDdrUmmcIntStatus =0x00D00560 , + HWPfDdrUmmcIntEn =0x00D00570 , + HWPfDdrPhyRdLatency =0x00D48400 , + HWPfDdrPhyRdLatencyDbi =0x00D48410 , + HWPfDdrPhyWrLatency =0x00D48420 , + HWPfDdrPhyTrngType =0x00D48430 , + HWPfDdrPhyMrsTiming2 =0x00D48440 , + HWPfDdrPhyMrsTiming0 =0x00D48450 , + HWPfDdrPhyMrsTiming1 =0x00D48460 , + HWPfDdrPhyDramTmrd =0x00D48470 , + HWPfDdrPhyDramTmod =0x00D48480 , + HWPfDdrPhyDramTwpre =0x00D48490 , + HWPfDdrPhyDramTrfc =0x00D484A0 , + HWPfDdrPhyDramTrwtp =0x00D484B0 , + HWPfDdrPhyMr01Dimm =0x00D484C0 , + HWPfDdrPhyMr01DimmDbi =0x00D484D0 , + HWPfDdrPhyMr23Dimm =0x00D484E0 , + HWPfDdrPhyMr45Dimm =0x00D484F0 , + HWPfDdrPhyMr67Dimm =0x00D48500 , + HWPfDdrPhyWrlvlWwRdlvlRr =0x00D48510 , + HWPfDdrPhyOdtEn =0x00D48520 , + HWPfDdrPhyFastTrng =0x00D48530 , + HWPfDdrPhyDynTrngGap =0x00D48540 , + HWPfDdrPhyDynRcalGap =0x00D48550 , + HWPfDdrPhyIdletimeout =0x00D48560 , + HWPfDdrPhyRstCkeGap =0x00D48570 , + HWPfDdrPhyCkeMrsGap =0x00D48580 , + HWPfDdrPhyMemVrefMidVal =0x00D48590 , + HWPfDdrPhyVrefStep =0x00D485A0 , + HWPfDdrPhyVrefThreshold =0x00D485B0 , + HWPfDdrPhyPhyVrefMidVal =0x00D485C0 , + HWPfDdrPhyDqsCountMax =0x00D485D0 , + HWPfDdrPhyDqsCountNum =0x00D485E0 , + HWPfDdrPhyDramRow =0x00D485F0 , + HWPfDdrPhyDramCol =0x00D48600 , + HWPfDdrPhyDramBgBa =0x00D48610 , + HWPfDdrPhyDynamicUpdreqrel =0x00D48620 , + HWPfDdrPhyVrefLimits =0x00D48630 , + HWPfDdrPhyIdtmTcStatus =0x00D6C020 , + HWPfDdrPhyIdtmFwVersion =0x00D6C410 , + HWPfDdrPhyRdlvlGateInitDelay =0x00D70000 , + HWPfDdrPhyRdenSmplabc =0x00D70008 , + HWPfDdrPhyVrefNibble0 =0x00D7000C , + HWPfDdrPhyVrefNibble1 =0x00D70010 , + HWPfDdrPhyRdlvlGateDqsSmpl0 =0x00D70014 , + HWPfDdrPhyRdlvlGateDqsSmpl1 =0x00D70018 , + HWPfDdrPhyRdlvlGateDqsSmpl2 =0x00D7001C , + HWPfDdrPhyDqsCount =0x00D70020 , + HWPfDdrPhyWrlvlRdlvlGateStatus =0x00D70024 , + HWPfDdrPhyErrorFlags =0x00D70028 , + HWPfDdrPhyPowerDown =0x00D70030 , + HWPfDdrPhyPrbsSeedByte0 =0x00D70034 , + HWPfDdrPhyPrbsSeedByte1 =0x00D70038 , + HWPfDdrPhyPcompDq =0x00D70040 , + HWPfDdrPhyNcompDq =0x00D70044 , + HWPfDdrPhyPcompDqs =0x00D70048 , + HWPfDdrPhyNcompDqs =0x00D7004C , + HWPfDdrPhyPcompCmd =0x00D70050 , + HWPfDdrPhyNcompCmd =0x00D70054 , + HWPfDdrPhyPcompCk =0x00D70058 , + HWPfDdrPhyNcompCk =0x00D7005C , + HWPfDdrPhyRcalOdtDq =0x00D70060 , + HWPfDdrPhyRcalOdtDqs =0x00D70064 , + HWPfDdrPhyRcalMask1 =0x00D70068 , + HWPfDdrPhyRcalMask2 =0x00D7006C , + HWPfDdrPhyRcalCtrl =0x00D70070 , + HWPfDdrPhyRcalCnt =0x00D70074 , + HWPfDdrPhyRcalOverride =0x00D70078 , + HWPfDdrPhyRcalGateen =0x00D7007C , + HWPfDdrPhyCtrl =0x00D70080 , + HWPfDdrPhyWrlvlAlg =0x00D70084 , + HWPfDdrPhyRcalVreftTxcmdOdt =0x00D70088 , + HWPfDdrPhyRdlvlGateParam =0x00D7008C , + HWPfDdrPhyRdlvlGateParam2 =0x00D70090 , + HWPfDdrPhyRcalVreftTxdata =0x00D70094 , + HWPfDdrPhyCmdIntDelay =0x00D700A4 , + HWPfDdrPhyAlertN =0x00D700A8 , + HWPfDdrPhyTrngReqWpre2tck =0x00D700AC , + HWPfDdrPhyCmdPhaseSel =0x00D700B4 , + HWPfDdrPhyCmdDcdl =0x00D700B8 , + HWPfDdrPhyCkDcdl =0x00D700BC , + HWPfDdrPhySwTrngCtrl1 =0x00D700C0 , + HWPfDdrPhySwTrngCtrl2 =0x00D700C4 , + HWPfDdrPhyRcalPcompRden =0x00D700C8 , + HWPfDdrPhyRcalNcompRden =0x00D700CC , + HWPfDdrPhyRcalCompen =0x00D700D0 , + HWPfDdrPhySwTrngRdqs =0x00D700D4 , + HWPfDdrPhySwTrngWdqs =0x00D700D8 , + HWPfDdrPhySwTrngRdena =0x00D700DC , + HWPfDdrPhySwTrngRdenb =0x00D700E0 , + HWPfDdrPhySwTrngRdenc =0x00D700E4 , + HWPfDdrPhySwTrngWdq =0x00D700E8 , + HWPfDdrPhySwTrngRdq =0x00D700EC , + HWPfDdrPhyPcfgHmValue =0x00D700F0 , + HWPfDdrPhyPcfgTimerValue =0x00D700F4 , + HWPfDdrPhyPcfgSoftwareTraining =0x00D700F8 , + HWPfDdrPhyPcfgMcStatus =0x00D700FC , + HWPfDdrPhyWrlvlPhRank0 =0x00D70100 , + HWPfDdrPhyRdenPhRank0 =0x00D70104 , + HWPfDdrPhyRdenIntRank0 =0x00D70108 , + HWPfDdrPhyRdqsDcdlRank0 =0x00D7010C , + HWPfDdrPhyRdqsShadowDcdlRank0 =0x00D70110 , + HWPfDdrPhyWdqsDcdlRank0 =0x00D70114 , + HWPfDdrPhyWdmDcdlShadowRank0 =0x00D70118 , + HWPfDdrPhyWdmDcdlRank0 =0x00D7011C , + HWPfDdrPhyDbiDcdlRank0 =0x00D70120 , + HWPfDdrPhyRdenDcdlaRank0 =0x00D70124 , + HWPfDdrPhyDbiDcdlShadowRank0 =0x00D70128 , + HWPfDdrPhyRdenDcdlbRank0 =0x00D7012C , + HWPfDdrPhyWdqsShadowDcdlRank0 =0x00D70130 , + HWPfDdrPhyRdenDcdlcRank0 =0x00D70134 , + HWPfDdrPhyRdenShadowDcdlaRank0 =0x00D70138 , + HWPfDdrPhyWrlvlIntRank0 =0x00D7013C , + HWPfDdrPhyRdqDcdlBit0Rank0 =0x00D70200 , + HWPfDdrPhyRdqDcdlShadowBit0Rank0 =0x00D70204 , + HWPfDdrPhyWdqDcdlBit0Rank0 =0x00D70208 , + HWPfDdrPhyWdqDcdlShadowBit0Rank0 =0x00D7020C , + HWPfDdrPhyRdqDcdlBit1Rank0 =0x00D70240 , + HWPfDdrPhyRdqDcdlShadowBit1Rank0 =0x00D70244 , + HWPfDdrPhyWdqDcdlBit1Rank0 =0x00D70248 , + HWPfDdrPhyWdqDcdlShadowBit1Rank0 =0x00D7024C , + HWPfDdrPhyRdqDcdlBit2Rank0 =0x00D70280 , + HWPfDdrPhyRdqDcdlShadowBit2Rank0 =0x00D70284 , + HWPfDdrPhyWdqDcdlBit2Rank0 =0x00D70288 , + HWPfDdrPhyWdqDcdlShadowBit2Rank0 =0x00D7028C , + HWPfDdrPhyRdqDcdlBit3Rank0 =0x00D702C0 , + HWPfDdrPhyRdqDcdlShadowBit3Rank0 =0x00D702C4 , + HWPfDdrPhyWdqDcdlBit3Rank0 =0x00D702C8 , + HWPfDdrPhyWdqDcdlShadowBit3Rank0 =0x00D702CC , + HWPfDdrPhyRdqDcdlBit4Rank0 =0x00D70300 , + HWPfDdrPhyRdqDcdlShadowBit4Rank0 =0x00D70304 , + HWPfDdrPhyWdqDcdlBit4Rank0 =0x00D70308 , + HWPfDdrPhyWdqDcdlShadowBit4Rank0 =0x00D7030C , + HWPfDdrPhyRdqDcdlBit5Rank0 =0x00D70340 , + HWPfDdrPhyRdqDcdlShadowBit5Rank0 =0x00D70344 , + HWPfDdrPhyWdqDcdlBit5Rank0 =0x00D70348 , + HWPfDdrPhyWdqDcdlShadowBit5Rank0 =0x00D7034C , + HWPfDdrPhyRdqDcdlBit6Rank0 =0x00D70380 , + HWPfDdrPhyRdqDcdlShadowBit6Rank0 =0x00D70384 , + HWPfDdrPhyWdqDcdlBit6Rank0 =0x00D70388 , + HWPfDdrPhyWdqDcdlShadowBit6Rank0 =0x00D7038C , + HWPfDdrPhyRdqDcdlBit7Rank0 =0x00D703C0 , + HWPfDdrPhyRdqDcdlShadowBit7Rank0 =0x00D703C4 , + HWPfDdrPhyWdqDcdlBit7Rank0 =0x00D703C8 , + HWPfDdrPhyWdqDcdlShadowBit7Rank0 =0x00D703CC , + HWPfDdrPhyIdtmStatus =0x00D740D0 , + HWPfDdrPhyIdtmError =0x00D74110 , + HWPfDdrPhyIdtmDebug =0x00D74120 , + HWPfDdrPhyIdtmDebugInt =0x00D74130 , + HwPfPcieLnAsicCfgovr =0x00D80000 , + HwPfPcieLnAclkmixer =0x00D80004 , + HwPfPcieLnTxrampfreq =0x00D80008 , + HwPfPcieLnLanetest =0x00D8000C , + HwPfPcieLnDcctrl =0x00D80010 , + HwPfPcieLnDccmeas =0x00D80014 , + HwPfPcieLnDccovrAclk =0x00D80018 , + HwPfPcieLnDccovrTxa =0x00D8001C , + HwPfPcieLnDccovrTxk =0x00D80020 , + HwPfPcieLnDccovrDclk =0x00D80024 , + HwPfPcieLnDccovrEclk =0x00D80028 , + HwPfPcieLnDcctrimAclk =0x00D8002C , + HwPfPcieLnDcctrimTx =0x00D80030 , + HwPfPcieLnDcctrimDclk =0x00D80034 , + HwPfPcieLnDcctrimEclk =0x00D80038 , + HwPfPcieLnQuadCtrl =0x00D8003C , + HwPfPcieLnQuadCorrIndex =0x00D80040 , + HwPfPcieLnQuadCorrStatus =0x00D80044 , + HwPfPcieLnAsicRxovr1 =0x00D80048 , + HwPfPcieLnAsicRxovr2 =0x00D8004C , + HwPfPcieLnAsicEqinfovr =0x00D80050 , + HwPfPcieLnRxcsr =0x00D80054 , + HwPfPcieLnRxfectrl =0x00D80058 , + HwPfPcieLnRxtest =0x00D8005C , + HwPfPcieLnEscount =0x00D80060 , + HwPfPcieLnCdrctrl =0x00D80064 , + HwPfPcieLnCdrctrl2 =0x00D80068 , + HwPfPcieLnCdrcfg0Ctrl0 =0x00D8006C , + HwPfPcieLnCdrcfg0Ctrl1 =0x00D80070 , + HwPfPcieLnCdrcfg0Ctrl2 =0x00D80074 , + HwPfPcieLnCdrcfg1Ctrl0 =0x00D80078 , + HwPfPcieLnCdrcfg1Ctrl1 =0x00D8007C , + HwPfPcieLnCdrcfg1Ctrl2 =0x00D80080 , + HwPfPcieLnCdrcfg2Ctrl0 =0x00D80084 , + HwPfPcieLnCdrcfg2Ctrl1 =0x00D80088 , + HwPfPcieLnCdrcfg2Ctrl2 =0x00D8008C , + HwPfPcieLnCdrcfg3Ctrl0 =0x00D80090 , + HwPfPcieLnCdrcfg3Ctrl1 =0x00D80094 , + HwPfPcieLnCdrcfg3Ctrl2 =0x00D80098 , + HwPfPcieLnCdrphase =0x00D8009C , + HwPfPcieLnCdrfreq =0x00D800A0 , + HwPfPcieLnCdrstatusPhase =0x00D800A4 , + HwPfPcieLnCdrstatusFreq =0x00D800A8 , + HwPfPcieLnCdroffset =0x00D800AC , + HwPfPcieLnRxvosctl =0x00D800B0 , + HwPfPcieLnRxvosctl2 =0x00D800B4 , + HwPfPcieLnRxlosctl =0x00D800B8 , + HwPfPcieLnRxlos =0x00D800BC , + HwPfPcieLnRxlosvval =0x00D800C0 , + HwPfPcieLnRxvosd0 =0x00D800C4 , + HwPfPcieLnRxvosd1 =0x00D800C8 , + HwPfPcieLnRxvosep0 =0x00D800CC , + HwPfPcieLnRxvosep1 =0x00D800D0 , + HwPfPcieLnRxvosen0 =0x00D800D4 , + HwPfPcieLnRxvosen1 =0x00D800D8 , + HwPfPcieLnRxvosafe =0x00D800DC , + HwPfPcieLnRxvosa0 =0x00D800E0 , + HwPfPcieLnRxvosa0Out =0x00D800E4 , + HwPfPcieLnRxvosa1 =0x00D800E8 , + HwPfPcieLnRxvosa1Out =0x00D800EC , + HwPfPcieLnRxmisc =0x00D800F0 , + HwPfPcieLnRxbeacon =0x00D800F4 , + HwPfPcieLnRxdssout =0x00D800F8 , + HwPfPcieLnRxdssout2 =0x00D800FC , + HwPfPcieLnAlphapctrl =0x00D80100 , + HwPfPcieLnAlphanctrl =0x00D80104 , + HwPfPcieLnAdaptctrl =0x00D80108 , + HwPfPcieLnAdaptctrl1 =0x00D8010C , + HwPfPcieLnAdaptstatus =0x00D80110 , + HwPfPcieLnAdaptvga1 =0x00D80114 , + HwPfPcieLnAdaptvga2 =0x00D80118 , + HwPfPcieLnAdaptvga3 =0x00D8011C , + HwPfPcieLnAdaptvga4 =0x00D80120 , + HwPfPcieLnAdaptboost1 =0x00D80124 , + HwPfPcieLnAdaptboost2 =0x00D80128 , + HwPfPcieLnAdaptboost3 =0x00D8012C , + HwPfPcieLnAdaptboost4 =0x00D80130 , + HwPfPcieLnAdaptsslms1 =0x00D80134 , + HwPfPcieLnAdaptsslms2 =0x00D80138 , + HwPfPcieLnAdaptvgaStatus =0x00D8013C , + HwPfPcieLnAdaptboostStatus =0x00D80140 , + HwPfPcieLnAdaptsslmsStatus1 =0x00D80144 , + HwPfPcieLnAdaptsslmsStatus2 =0x00D80148 , + HwPfPcieLnAfectrl1 =0x00D8014C , + HwPfPcieLnAfectrl2 =0x00D80150 , + HwPfPcieLnAfectrl3 =0x00D80154 , + HwPfPcieLnAfedefault1 =0x00D80158 , + HwPfPcieLnAfedefault2 =0x00D8015C , + HwPfPcieLnDfectrl1 =0x00D80160 , + HwPfPcieLnDfectrl2 =0x00D80164 , + HwPfPcieLnDfectrl3 =0x00D80168 , + HwPfPcieLnDfectrl4 =0x00D8016C , + HwPfPcieLnDfectrl5 =0x00D80170 , + HwPfPcieLnDfectrl6 =0x00D80174 , + HwPfPcieLnAfestatus1 =0x00D80178 , + HwPfPcieLnAfestatus2 =0x00D8017C , + HwPfPcieLnDfestatus1 =0x00D80180 , + HwPfPcieLnDfestatus2 =0x00D80184 , + HwPfPcieLnDfestatus3 =0x00D80188 , + HwPfPcieLnDfestatus4 =0x00D8018C , + HwPfPcieLnDfestatus5 =0x00D80190 , + HwPfPcieLnAlphastatus =0x00D80194 , + HwPfPcieLnFomctrl1 =0x00D80198 , + HwPfPcieLnFomctrl2 =0x00D8019C , + HwPfPcieLnFomctrl3 =0x00D801A0 , + HwPfPcieLnAclkcalStatus =0x00D801A4 , + HwPfPcieLnOffscorrStatus =0x00D801A8 , + HwPfPcieLnEyewidthStatus =0x00D801AC , + HwPfPcieLnEyeheightStatus =0x00D801B0 , + HwPfPcieLnAsicTxovr1 =0x00D801B4 , + HwPfPcieLnAsicTxovr2 =0x00D801B8 , + HwPfPcieLnAsicTxovr3 =0x00D801BC , + HwPfPcieLnTxbiasadjOvr =0x00D801C0 , + HwPfPcieLnTxcsr =0x00D801C4 , + HwPfPcieLnTxtest =0x00D801C8 , + HwPfPcieLnTxtestword =0x00D801CC , + HwPfPcieLnTxtestwordHigh =0x00D801D0 , + HwPfPcieLnTxdrive =0x00D801D4 , + HwPfPcieLnMtcsLn =0x00D801D8 , + HwPfPcieLnStatsumLn =0x00D801DC , + HwPfPcieLnRcbusScratch =0x00D801E0 , + HwPfPcieLnRcbusMinorrev =0x00D801F0 , + HwPfPcieLnRcbusMajorrev =0x00D801F4 , + HwPfPcieLnRcbusBlocktype =0x00D801F8 , + HwPfPcieSupPllcsr =0x00D80800 , + HwPfPcieSupPlldiv =0x00D80804 , + HwPfPcieSupPllcal =0x00D80808 , + HwPfPcieSupPllcalsts =0x00D8080C , + HwPfPcieSupPllmeas =0x00D80810 , + HwPfPcieSupPlldactrim =0x00D80814 , + HwPfPcieSupPllbiastrim =0x00D80818 , + HwPfPcieSupPllbwtrim =0x00D8081C , + HwPfPcieSupPllcaldly =0x00D80820 , + HwPfPcieSupRefclkonpclkctrl =0x00D80824 , + HwPfPcieSupPclkdelay =0x00D80828 , + HwPfPcieSupPhyconfig =0x00D8082C , + HwPfPcieSupRcalIntf =0x00D80830 , + HwPfPcieSupAuxcsr =0x00D80834 , + HwPfPcieSupVref =0x00D80838 , + HwPfPcieSupLinkmode =0x00D8083C , + HwPfPcieSupRrefcalctl =0x00D80840 , + HwPfPcieSupRrefcal =0x00D80844 , + HwPfPcieSupRrefcaldly =0x00D80848 , + HwPfPcieSupTximpcalctl =0x00D8084C , + HwPfPcieSupTximpcal =0x00D80850 , + HwPfPcieSupTximpoffset =0x00D80854 , + HwPfPcieSupTximpcaldly =0x00D80858 , + HwPfPcieSupRximpcalctl =0x00D8085C , + HwPfPcieSupRximpcal =0x00D80860 , + HwPfPcieSupRximpoffset =0x00D80864 , + HwPfPcieSupRximpcaldly =0x00D80868 , + HwPfPcieSupFence =0x00D8086C , + HwPfPcieSupMtcs =0x00D80870 , + HwPfPcieSupStatsum =0x00D809B8 , + HwPfPciePcsDpStatus0 =0x00D81000 , + HwPfPciePcsDpControl0 =0x00D81004 , + HwPfPciePcsPmaStatusLane0 =0x00D81008 , + HwPfPciePcsPipeStatusLane0 =0x00D8100C , + HwPfPciePcsTxdeemph0Lane0 =0x00D81010 , + HwPfPciePcsTxdeemph1Lane0 =0x00D81014 , + HwPfPciePcsInternalStatusLane0 =0x00D81018 , + HwPfPciePcsDpStatus1 =0x00D8101C , + HwPfPciePcsDpControl1 =0x00D81020 , + HwPfPciePcsPmaStatusLane1 =0x00D81024 , + HwPfPciePcsPipeStatusLane1 =0x00D81028 , + HwPfPciePcsTxdeemph0Lane1 =0x00D8102C , + HwPfPciePcsTxdeemph1Lane1 =0x00D81030 , + HwPfPciePcsInternalStatusLane1 =0x00D81034 , + HwPfPciePcsDpStatus2 =0x00D81038 , + HwPfPciePcsDpControl2 =0x00D8103C , + HwPfPciePcsPmaStatusLane2 =0x00D81040 , + HwPfPciePcsPipeStatusLane2 =0x00D81044 , + HwPfPciePcsTxdeemph0Lane2 =0x00D81048 , + HwPfPciePcsTxdeemph1Lane2 =0x00D8104C , + HwPfPciePcsInternalStatusLane2 =0x00D81050 , + HwPfPciePcsDpStatus3 =0x00D81054 , + HwPfPciePcsDpControl3 =0x00D81058 , + HwPfPciePcsPmaStatusLane3 =0x00D8105C , + HwPfPciePcsPipeStatusLane3 =0x00D81060 , + HwPfPciePcsTxdeemph0Lane3 =0x00D81064 , + HwPfPciePcsTxdeemph1Lane3 =0x00D81068 , + HwPfPciePcsInternalStatusLane3 =0x00D8106C , + HwPfPciePcsEbStatus0 =0x00D81070 , + HwPfPciePcsEbStatus1 =0x00D81074 , + HwPfPciePcsEbStatus2 =0x00D81078 , + HwPfPciePcsEbStatus3 =0x00D8107C , + HwPfPciePcsPllSettingPcieG1 =0x00D81088 , + HwPfPciePcsPllSettingPcieG2 =0x00D8108C , + HwPfPciePcsPllSettingPcieG3 =0x00D81090 , + HwPfPciePcsControl =0x00D81094 , + HwPfPciePcsEqControl =0x00D81098 , + HwPfPciePcsEqTimer =0x00D8109C , + HwPfPciePcsEqErrStatus =0x00D810A0 , + HwPfPciePcsEqErrCount =0x00D810A4 , + HwPfPciePcsStatus =0x00D810A8 , + HwPfPciePcsMiscRegister =0x00D810AC , + HwPfPciePcsObsControl =0x00D810B0 , + HwPfPciePcsPrbsCount0 =0x00D81200 , + HwPfPciePcsBistControl0 =0x00D81204 , + HwPfPciePcsBistStaticWord00 =0x00D81208 , + HwPfPciePcsBistStaticWord10 =0x00D8120C , + HwPfPciePcsBistStaticWord20 =0x00D81210 , + HwPfPciePcsBistStaticWord30 =0x00D81214 , + HwPfPciePcsPrbsCount1 =0x00D81220 , + HwPfPciePcsBistControl1 =0x00D81224 , + HwPfPciePcsBistStaticWord01 =0x00D81228 , + HwPfPciePcsBistStaticWord11 =0x00D8122C , + HwPfPciePcsBistStaticWord21 =0x00D81230 , + HwPfPciePcsBistStaticWord31 =0x00D81234 , + HwPfPciePcsPrbsCount2 =0x00D81240 , + HwPfPciePcsBistControl2 =0x00D81244 , + HwPfPciePcsBistStaticWord02 =0x00D81248 , + HwPfPciePcsBistStaticWord12 =0x00D8124C , + HwPfPciePcsBistStaticWord22 =0x00D81250 , + HwPfPciePcsBistStaticWord32 =0x00D81254 , + HwPfPciePcsPrbsCount3 =0x00D81260 , + HwPfPciePcsBistControl3 =0x00D81264 , + HwPfPciePcsBistStaticWord03 =0x00D81268 , + HwPfPciePcsBistStaticWord13 =0x00D8126C , + HwPfPciePcsBistStaticWord23 =0x00D81270 , + HwPfPciePcsBistStaticWord33 =0x00D81274 , + HwPfPcieGpexLtssmStateCntrl =0x00D90400 , + HwPfPcieGpexLtssmStateStatus =0x00D90404 , + HwPfPcieGpexSkipFreqTimer =0x00D90408 , + HwPfPcieGpexLaneSelect =0x00D9040C , + HwPfPcieGpexLaneDeskew =0x00D90410 , + HwPfPcieGpexRxErrorStatus =0x00D90414 , + HwPfPcieGpexLaneNumControl =0x00D90418 , + HwPfPcieGpexNFstControl =0x00D9041C , + HwPfPcieGpexLinkStatus =0x00D90420 , + HwPfPcieGpexAckReplayTimeout =0x00D90438 , + HwPfPcieGpexSeqNumberStatus =0x00D9043C , + HwPfPcieGpexCoreClkRatio =0x00D90440 , + HwPfPcieGpexDllTholdControl =0x00D90448 , + HwPfPcieGpexPmTimer =0x00D90450 , + HwPfPcieGpexPmeTimeout =0x00D90454 , + HwPfPcieGpexAspmL1Timer =0x00D90458 , + HwPfPcieGpexAspmReqTimer =0x00D9045C , + HwPfPcieGpexAspmL1Dis =0x00D90460 , + HwPfPcieGpexAdvisoryErrorControl =0x00D90468 , + HwPfPcieGpexId =0x00D90470 , + HwPfPcieGpexClasscode =0x00D90474 , + HwPfPcieGpexSubsystemId =0x00D90478 , + HwPfPcieGpexDeviceCapabilities =0x00D9047C , + HwPfPcieGpexLinkCapabilities =0x00D90480 , + HwPfPcieGpexFunctionNumber =0x00D90484 , + HwPfPcieGpexPmCapabilities =0x00D90488 , + HwPfPcieGpexFunctionSelect =0x00D9048C , + HwPfPcieGpexErrorCounter =0x00D904AC , + HwPfPcieGpexConfigReady =0x00D904B0 , + HwPfPcieGpexFcUpdateTimeout =0x00D904B8 , + HwPfPcieGpexFcUpdateTimer =0x00D904BC , + HwPfPcieGpexVcBufferLoad =0x00D904C8 , + HwPfPcieGpexVcBufferSizeThold =0x00D904CC , + HwPfPcieGpexVcBufferSelect =0x00D904D0 , + HwPfPcieGpexBarEnable =0x00D904D4 , + HwPfPcieGpexBarDwordLower =0x00D904D8 , + HwPfPcieGpexBarDwordUpper =0x00D904DC , + HwPfPcieGpexBarSelect =0x00D904E0 , + HwPfPcieGpexCreditCounterSelect =0x00D904E4 , + HwPfPcieGpexCreditCounterStatus =0x00D904E8 , + HwPfPcieGpexTlpHeaderSelect =0x00D904EC , + HwPfPcieGpexTlpHeaderDword0 =0x00D904F0 , + HwPfPcieGpexTlpHeaderDword1 =0x00D904F4 , + HwPfPcieGpexTlpHeaderDword2 =0x00D904F8 , + HwPfPcieGpexTlpHeaderDword3 =0x00D904FC , + HwPfPcieGpexRelaxOrderControl =0x00D90500 , + HwPfPcieGpexBarPrefetch =0x00D90504 , + HwPfPcieGpexFcCheckControl =0x00D90508 , + HwPfPcieGpexFcUpdateTimerTraffic =0x00D90518 , + HwPfPcieGpexPhyControl0 =0x00D9053C , + HwPfPcieGpexPhyControl1 =0x00D90544 , + HwPfPcieGpexPhyControl2 =0x00D9054C , + HwPfPcieGpexUserControl0 =0x00D9055C , + HwPfPcieGpexUncorrErrorStatus =0x00D905F0 , + HwPfPcieGpexRxCplError =0x00D90620 , + HwPfPcieGpexRxCplErrorDword0 =0x00D90624 , + HwPfPcieGpexRxCplErrorDword1 =0x00D90628 , + HwPfPcieGpexRxCplErrorDword2 =0x00D9062C , + HwPfPcieGpexPabSwResetEn =0x00D90630 , + HwPfPcieGpexGen3Control0 =0x00D90634 , + HwPfPcieGpexGen3Control1 =0x00D90638 , + HwPfPcieGpexGen3Control2 =0x00D9063C , + HwPfPcieGpexGen2ControlCsr =0x00D90640 , + HwPfPcieGpexTotalVfInitialVf0 =0x00D90644 , + HwPfPcieGpexTotalVfInitialVf1 =0x00D90648 , + HwPfPcieGpexSriovLinkDevId0 =0x00D90684 , + HwPfPcieGpexSriovLinkDevId1 =0x00D90688 , + HwPfPcieGpexSriovPageSize0 =0x00D906C4 , + HwPfPcieGpexSriovPageSize1 =0x00D906C8 , + HwPfPcieGpexIdVersion =0x00D906FC , + HwPfPcieGpexSriovVfOffsetStride0 =0x00D90704 , + HwPfPcieGpexSriovVfOffsetStride1 =0x00D90708 , + HwPfPcieGpexGen3DeskewControl =0x00D907B4 , + HwPfPcieGpexGen3EqControl =0x00D907B8 , + HwPfPcieGpexBridgeVersion =0x00D90800 , + HwPfPcieGpexBridgeCapability =0x00D90804 , + HwPfPcieGpexBridgeControl =0x00D90808 , + HwPfPcieGpexBridgeStatus =0x00D9080C , + HwPfPcieGpexEngineActivityStatus =0x00D9081C , + HwPfPcieGpexEngineResetControl =0x00D90820 , + HwPfPcieGpexAxiPioControl =0x00D90840 , + HwPfPcieGpexAxiPioStatus =0x00D90844 , + HwPfPcieGpexAmbaSlaveCmdStatus =0x00D90848 , + HwPfPcieGpexPexPioControl =0x00D908C0 , + HwPfPcieGpexPexPioStatus =0x00D908C4 , + HwPfPcieGpexAmbaMasterStatus =0x00D908C8 , + HwPfPcieGpexCsrSlaveCmdStatus =0x00D90920 , + HwPfPcieGpexMailboxAxiControl =0x00D90A50 , + HwPfPcieGpexMailboxAxiData =0x00D90A54 , + HwPfPcieGpexMailboxPexControl =0x00D90A90 , + HwPfPcieGpexMailboxPexData =0x00D90A94 , + HwPfPcieGpexPexInterruptEnable =0x00D90AD0 , + HwPfPcieGpexPexInterruptStatus =0x00D90AD4 , + HwPfPcieGpexPexInterruptAxiPioVector =0x00D90AD8 , + HwPfPcieGpexPexInterruptPexPioVector =0x00D90AE0 , + HwPfPcieGpexPexInterruptMiscVector =0x00D90AF8 , + HwPfPcieGpexAmbaInterruptPioEnable =0x00D90B00 , + HwPfPcieGpexAmbaInterruptMiscEnable =0x00D90B0C , + HwPfPcieGpexAmbaInterruptPioStatus =0x00D90B10 , + HwPfPcieGpexAmbaInterruptMiscStatus =0x00D90B1C , + HwPfPcieGpexPexPmControl =0x00D90B80 , + HwPfPcieGpexSlotMisc =0x00D90B88 , + HwPfPcieGpexAxiAddrMappingControl =0x00D90BA0 , + HwPfPcieGpexAxiAddrMappingWindowAxiBase =0x00D90BA4 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseLow =0x00D90BA8 , + HwPfPcieGpexAxiAddrMappingWindowPexBaseHigh =0x00D90BAC , + HwPfPcieGpexPexBarAddrFunc0Bar0 =0x00D91BA0 , + HwPfPcieGpexPexBarAddrFunc0Bar1 =0x00D91BA4 , + HwPfPcieGpexAxiAddrMappingPcieHdrParam =0x00D95BA0 , + HwPfPcieGpexExtAxiAddrMappingAxiBase =0x00D980A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar0 =0x00D984A0 , + HwPfPcieGpexPexExtBarAddrFunc0Bar1 =0x00D984A4 , + HwPfPcieGpexAmbaInterruptFlrEnable =0x00D9B960 , + HwPfPcieGpexAmbaInterruptFlrStatus =0x00D9B9A0 , + HwPfPcieGpexExtAxiAddrMappingSize =0x00D9BAF0 , + HwPfPcieGpexPexPioAwcacheControl =0x00D9C300 , + HwPfPcieGpexPexPioArcacheControl =0x00D9C304 , + HwPfPcieGpexPabObSizeControlVc0 =0x00D9C310 +}; + +/* TIP PF Interrupt numbers */ +enum { +ACC100_PF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_PF_INT_DOORBELL_VF_2_PF =1 , +ACC100_PF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_PF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_PF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_PF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_PF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_PF_INT_ILLEGAL_FORMAT =7 , +ACC100_PF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_PF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +ACC100_PF_INT_ARAM_ACCESS_ERR =10 , +ACC100_PF_INT_ARAM_ECC_1BIT_ERR =11 , +ACC100_PF_INT_PARITY_ERR =12 , +ACC100_PF_INT_QMGR_ERR =13 , +ACC100_PF_INT_INT_REQ_OVERFLOW =14 , +ACC100_PF_INT_APB_TIMEOUT =15 , +}; + +#endif /* ACC100_PF_ENUM_H */ (quoted diff) +0
-0
b/drivers/baseband/acc100/acc100_vf_enum.hQuoted 5 lines
new file mode 100644
index 0000000..b512af3drivers/baseband/acc100/acc100_vf_enum.h line 10
Quoted 10 lines
drivers/baseband/acc100/acc100_vf_enum.h new file +10
-0@@ -0,0 +1,73 @@ +/* SPDX-License-Identifier: BSD-3-Clause +* Copyright(c) 2017 Intel Corporation +*/ + +#ifndef ACC100_VF_ENUM_H +#define ACC100_VF_ENUM_H + +/* +* ACC100 Register mapping on VF BAR0 +* This is automatically generated from RDL, format may change with new RDL
Review
Quoted 64 lines
drivers/baseband/acc100/acc100_vf_enum.h new file +63
-0+*/ +enum { + HWVfQmgrIngressAq =0x00000000 , + HWVfHiVfToPfDbellVf =0x00000800 , + HWVfHiPfToVfDbellVf =0x00000808 , + HWVfHiInfoRingBaseLoVf =0x00000810 , + HWVfHiInfoRingBaseHiVf =0x00000814 , + HWVfHiInfoRingPointerVf =0x00000818 , + HWVfHiInfoRingIntWrEnVf =0x00000820 , + HWVfHiInfoRingPf2VfWrEnVf =0x00000824 , + HWVfHiMsixVectorMapperVf =0x00000860 , + HWVfDmaFec5GulDescBaseLoRegVf =0x00000920 , + HWVfDmaFec5GulDescBaseHiRegVf =0x00000924 , + HWVfDmaFec5GulRespPtrLoRegVf =0x00000928 , + HWVfDmaFec5GulRespPtrHiRegVf =0x0000092C , + HWVfDmaFec5GdlDescBaseLoRegVf =0x00000940 , + HWVfDmaFec5GdlDescBaseHiRegVf =0x00000944 , + HWVfDmaFec5GdlRespPtrLoRegVf =0x00000948 , + HWVfDmaFec5GdlRespPtrHiRegVf =0x0000094C , + HWVfDmaFec4GulDescBaseLoRegVf =0x00000960 , + HWVfDmaFec4GulDescBaseHiRegVf =0x00000964 , + HWVfDmaFec4GulRespPtrLoRegVf =0x00000968 , + HWVfDmaFec4GulRespPtrHiRegVf =0x0000096C , + HWVfDmaFec4GdlDescBaseLoRegVf =0x00000980 , + HWVfDmaFec4GdlDescBaseHiRegVf =0x00000984 , + HWVfDmaFec4GdlRespPtrLoRegVf =0x00000988 , + HWVfDmaFec4GdlRespPtrHiRegVf =0x0000098C , + HWVfDmaDdrBaseRangeRoVf =0x000009A0 , + HWVfQmgrAqResetVf =0x00000E00 , + HWVfQmgrRingSizeVf =0x00000E04 , + HWVfQmgrGrpDepthLog20Vf =0x00000E08 , + HWVfQmgrGrpDepthLog21Vf =0x00000E0C , + HWVfQmgrGrpFunction0Vf =0x00000E10 , + HWVfQmgrGrpFunction1Vf =0x00000E14 , + HWVfPmACntrlRegVf =0x00000F40 , + HWVfPmACountVf =0x00000F48 , + HWVfPmAKCntLoVf =0x00000F50 , + HWVfPmAKCntHiVf =0x00000F54 , + HWVfPmADeltaCntLoVf =0x00000F60 , + HWVfPmADeltaCntHiVf =0x00000F64 , + HWVfPmBCntrlRegVf =0x00000F80 , + HWVfPmBCountVf =0x00000F88 , + HWVfPmBKCntLoVf =0x00000F90 , + HWVfPmBKCntHiVf =0x00000F94 , + HWVfPmBDeltaCntLoVf =0x00000FA0 , + HWVfPmBDeltaCntHiVf =0x00000FA4 +}; + +/* TIP VF Interrupt numbers */ +enum { +ACC100_VF_INT_QMGR_AQ_OVERFLOW =0 , +ACC100_VF_INT_DOORBELL_VF_2_PF =1 , +ACC100_VF_INT_DMA_DL_DESC_IRQ =2 , +ACC100_VF_INT_DMA_UL_DESC_IRQ =3 , +ACC100_VF_INT_DMA_MLD_DESC_IRQ =4 , +ACC100_VF_INT_DMA_UL5G_DESC_IRQ =5 , +ACC100_VF_INT_DMA_DL5G_DESC_IRQ =6 , +ACC100_VF_INT_ILLEGAL_FORMAT =7 , +ACC100_VF_INT_QMGR_DISABLED_ACCESS =8 , +ACC100_VF_INT_QMGR_AQ_OVERTHRESHOLD =9 , +}; + +#endif /* ACC100_VF_ENUM_H */ (quoted diff) +0
-0
b/drivers/baseband/acc100/rte_acc100_pmd.hQuoted 34 lines
index 6f46df0..cd77570 100644
drivers/baseband/acc100/rte_acc100_pmd.h +20
-0@@ -5,6 +5,9 @@#ifndef _RTE_ACC100_PMD_H_#define _RTE_ACC100_PMD_H_ +#include "acc100_pf_enum.h" +#include "acc100_vf_enum.h" +/* Helper macro for logging */ #define rte_bbdev_log (level, fmt, ...) \ rte_log(RTE_LOG_ ## level, acc100_logtype, fmt "\n", \@@ -27,6 +30,493 @@#define RTE_ACC100_PF_DEVICE_ID (0x0d5c)#define RTE_ACC100_VF_DEVICE_ID (0x0d5d) +/* Define as 1 to use only a single FEC engine */ +#ifndef RTE_ACC100_SINGLE_FEC +#define RTE_ACC100_SINGLE_FEC 0 +#endif + +/* Values used in filling in descriptors */ +#define ACC100_DMA_DESC_TYPE 2 +#define ACC100_DMA_CODE_BLK_MODE 0 +#define ACC100_DMA_BLKID_FCW 1 +#define ACC100_DMA_BLKID_IN 2 +#define ACC100_DMA_BLKID_OUT_ENC 1 +#define ACC100_DMA_BLKID_OUT_HARD 1 +#define ACC100_DMA_BLKID_OUT_SOFT 2 +#define ACC100_DMA_BLKID_OUT_HARQ 3 +#define ACC100_DMA_BLKID_IN_HARQ 3 + +/* Values used in filling in decode FCWs */ drivers/baseband/acc100/rte_acc100_pmd.h line 59
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h +10
-0+#define ACC100_FCW_TD_VER 1 +#define ACC100_FCW_TD_EXT_COLD_REG_EN 1 +#define ACC100_FCW_TD_AUTOMAP 0x0f +#define ACC100_FCW_TD_RVIDX_0 2 +#define ACC100_FCW_TD_RVIDX_1 26 +#define ACC100_FCW_TD_RVIDX_2 50 +#define ACC100_FCW_TD_RVIDX_3 74 + +/* Values used in writing to the registers */ +#define ACC100_REG_IRQ_EN_ALL 0x1FF83FF/* Enable all interrupts */
drivers/baseband/acc100/rte_acc100_pmd.h line 62
Quoted 3 lines
drivers/baseband/acc100/rte_acc100_pmd.h +3
-0+ +/* ACC100 Specific Dimensioning */ +#define ACC100_SIZE_64MBYTE (64*1024*1024)A better name for this #define would be
ACC100_MAX_RING_SIZE
Quoted 4 lines
Similar for
alloc_2x64mb_sw_rings_memshould be
alloc_max_sw_rings_mem.
I am not convinced. I tend to believe this is actually more descriptive this way, and the concept of max ring size is something else.
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 8 lines
drivers/baseband/acc100/rte_acc100_pmd.h +7
-0+/* 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) +/* Assume offset for HARQ in memory */ +#define ACC100_HARQ_OFFSET (32*1024) +/* Mask used to calculate an index in an Info Ring array (not a byte offset) */
drivers/baseband/acc100/rte_acc100_pmd.h line 70
Quoted 1 line
drivers/baseband/acc100/rte_acc100_pmd.h +1
-0+#define ACC100_INFO_RING_MASK
Quoted 8 lines
(ACC100_INFO_RING_NUM_ENTRIES-1)
drivers/baseband/acc100/rte_acc100_pmd.h line 76
Quoted 6 lines
drivers/baseband/acc100/rte_acc100_pmd.h +6
-0+/* Number of Virtual Functions ACC100 supports */ +#define ACC100_NUM_VFS 16 +#define ACC100_NUM_QGRPS 8 +#define ACC100_NUM_QGRPS_PER_WORD 8 +#define ACC100_NUM_AQS 16 +#define MAX_ENQ_BATCH_SIZE 255little stuff, these define values should line up at least in the blocks.
ok
Quoted 7 lines
drivers/baseband/acc100/rte_acc100_pmd.h line 78
Quoted 2 lines
drivers/baseband/acc100/rte_acc100_pmd.h +2
-0+/* All ACC100 Registers alignment are 32bits = 4B */ +#define BYTES_IN_WORD 4Common #define names should have
ACC100_prefix to lower chance of name conflicts.Generally a good idea of all of them.
You are right, ok.
Quoted 452 lines
Tom
drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.h +5
-0+#define MAX_E_MBUF 64000 + +#define GRP_ID_SHIFT 10/* Queue Index Hierarchy */ +#define VF_ID_SHIFT 4/* Queue Index Hierarchy */ +#define VF_OFFSET_QOS 16/* offset in Memory Space specific to QoS Mon */
drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 5 lines
drivers/baseband/acc100/rte_acc100_pmd.h +5
-0+#define TMPL_PRI_0 0x03020100 +#define TMPL_PRI_1 0x07060504 +#define TMPL_PRI_2 0x0b0a0908 +#define TMPL_PRI_3 0x0f0e0d0c +#define QUEUE_ENABLE 0x80000000/* Bit to mark Queue as Enabled */
drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 4 lines
drivers/baseband/acc100/rte_acc100_pmd.h +4
-0+#define WORDS_IN_ARAM_SIZE (128 * 1024 / 4) + +#define ACC100_NUM_TMPL 32 +#define VF_OFFSET_QOS 16/* offset in Memory Space specific to QoS Mon */
Quoted 263 lines
drivers/baseband/acc100/rte_acc100_pmd.h +263
-0+/* Mapping of signals for the available engines */ +#define SIG_UL_5G 0 +#define SIG_UL_5G_LAST 7 +#define SIG_DL_5G 13 +#define SIG_DL_5G_LAST 15 +#define SIG_UL_4G 16 +#define SIG_UL_4G_LAST 21 +#define SIG_DL_4G 27 +#define SIG_DL_4G_LAST 31 + +/* max number of iterations to allocate memory block for all rings */ +#define SW_RING_MEM_ALLOC_ATTEMPTS 5 +#define MAX_QUEUE_DEPTH 1024 +#define ACC100_DMA_MAX_NUM_POINTERS 14 +#define ACC100_DMA_DESC_PADDING 8 +#define ACC100_FCW_PADDING 12 +#define ACC100_DESC_FCW_OFFSET 192 +#define ACC100_DESC_SIZE 256 +#define ACC100_DESC_OFFSET (ACC100_DESC_SIZE / 64) +#define ACC100_FCW_TE_BLEN 32 +#define ACC100_FCW_TD_BLEN 24 +#define ACC100_FCW_LE_BLEN 32 +#define ACC100_FCW_LD_BLEN 36 + +#define ACC100_FCW_VER 2 +#define MUX_5GDL_DESC 6 +#define CMP_ENC_SIZE 20 +#define CMP_DEC_SIZE 24 +#define ENC_OFFSET (32) +#define DEC_OFFSET (80) +#define ACC100_EXT_MEM +#define ACC100_HARQ_OFFSET_THRESHOLD 1024 + +/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ +#define N_ZC_1 66/* N = 66 Zc for BG 1 */ +#define N_ZC_2 50/* N = 50 Zc for BG 2 */ +#define K0_1_1 17/* K0 fraction numerator for rv 1 and BG 1 */ +#define K0_1_2 13/* K0 fraction numerator for rv 1 and BG 2 */ +#define K0_2_1 33/* K0 fraction numerator for rv 2 and BG 1 */ +#define K0_2_2 25/* K0 fraction numerator for rv 2 and BG 2 */ +#define K0_3_1 56/* K0 fraction numerator for rv 3 and BG 1 */ +#define K0_3_2 43/* K0 fraction numerator for rv 3 and BG 2 */ + +/* ACC100 Configuration */ +#define ACC100_DDR_ECC_ENABLE +#define ACC100_CFG_DMA_ERROR 0x3D7 +#define ACC100_CFG_AXI_CACHE 0x11 +#define ACC100_CFG_QMGR_HI_P 0x0F0F +#define ACC100_CFG_PCI_AXI 0xC003 +#define ACC100_CFG_PCI_BRIDGE 0x40006033 +#define ACC100_ENGINE_OFFSET 0x1000 +#define ACC100_RESET_HI 0x20100 +#define ACC100_RESET_LO 0x20000 +#define ACC100_RESET_HARD 0x1FF +#define ACC100_ENGINES_MAX 9 +#define LONG_WAIT 1000 + +/* ACC100 DMA Descriptor triplet */ +struct acc100_dma_triplet { +uint64_t address; +uint32_t blen:20 , + res0:4 , + last:1 , + dma_ext:1 , + res1:2 , + blkid:4 ; +} __rte_packed; + + + +/* ACC100 DMA Response Descriptor */ +union acc100_dma_rsp_desc { +uint32_t val; +struct { +uint32_t crc_status:1 , + synd_ok:1 , + dma_err:1 , + neg_stop:1 , + fcw_err:1 , + output_err:1 , + input_err:1 , + timestampEn:1 , + iterCountFrac:8 , + iter_cnt:8 , + rsrvd3:6 , + sdone:1 , + fdone:1 ; +uint32_t add_info_0; +uint32_t add_info_1; + }; +}; + + +/* ACC100 Queue Manager Enqueue PCI Register */ +union acc100_enqueue_reg_fmt { +uint32_t val; +struct { +uint32_t num_elem:8 , + addr_offset:3 , + rsrvd:1 , + req_elem_addr:20 ; + }; +}; + +/* FEC 4G Uplink Frame Control Word */ +struct __rte_packed acc100_fcw_td { + uint8_t fcw_ver:4, + num_maps:4; /* Unused */ + uint8_t filler:6, /* Unused */ + rsrvd0:1, + bypass_sb_deint:1; +uint16_t k_pos; +uint16_t k_neg;/* Unused */ +uint8_t c_neg;/* Unused */ +uint8_t c;/* Unused */ +uint32_t ea;/* Unused */ +uint32_t eb;/* Unused */ +uint8_t cab;/* Unused */ +uint8_t k0_start_col;/* Unused */ +uint8_t rsrvd1; + uint8_t code_block_mode:1, /* Unused */ + turbo_crc_type:1, + rsrvd2:3, + bypass_teq:1, /* Unused */ + soft_output_en:1, /* Unused */ + ext_td_cold_reg_en:1; +union {/* External Cold register */ +uint32_t ext_td_cold_reg; +struct { +uint32_t min_iter:4 ,/* Unused */ + max_iter:4 , + ext_scale:5 ,/* Unused */ + rsrvd3:3 , + early_stop_en:1 ,/* Unused */ + sw_soft_out_dis:1 ,/* Unused */ + sw_et_cont:1 ,/* Unused */ + sw_soft_out_saturation:1 ,/* Unused */ + half_iter_on:1 ,/* Unused */ + raw_decoder_input_on:1 ,/* Unused */ + rsrvd4:10 ; + }; + }; +}; + +/* FEC 5GNR Uplink Frame Control Word */ +struct __rte_packed acc100_fcw_ld { + uint32_t FCWversion:4, + qm:4, + nfiller:11, + BG:1, + Zc:9, + res0:1, + synd_precoder:1, + synd_post:1; + uint32_t ncb:16, + k0:16; + uint32_t rm_e:24, + hcin_en:1, + hcout_en:1, + crc_select:1, + bypass_dec:1, + bypass_intlv:1, + so_en:1, + so_bypass_rm:1, + so_bypass_intlv:1; + uint32_t hcin_offset:16, + hcin_size0:16; + uint32_t hcin_size1:16, + hcin_decomp_mode:3, + llr_pack_mode:1, + hcout_comp_mode:3, + res2:1, + dec_convllr:4, + hcout_convllr:4; + uint32_t itmax:7, + itstop:1, + so_it:7, + res3:1, + hcout_offset:16; + uint32_t hcout_size0:16, + hcout_size1:16; + uint32_t gain_i:8, + gain_h:8, + negstop_th:16; + uint32_t negstop_it:7, + negstop_en:1, + res4:24; +}; + +/* FEC 4G Downlink Frame Control Word */ +struct __rte_packed acc100_fcw_te { +uint16_t k_neg; +uint16_t k_pos; +uint8_t c_neg; +uint8_t c; +uint8_t filler; +uint8_t cab; + uint32_t ea:17, + rsrvd0:15; + uint32_t eb:17, + rsrvd1:15; +uint16_t ncb_neg; +uint16_t ncb_pos; + uint8_t rv_idx0:2, + rsrvd2:2, + rv_idx1:2, + rsrvd3:2; + uint8_t bypass_rv_idx0:1, + bypass_rv_idx1:1, + bypass_rm:1, + rsrvd4:5; + uint8_t rsrvd5:1, + rsrvd6:3, + code_block_crc:1, + rsrvd7:3; + uint8_t code_block_mode:1, + rsrvd8:7; +uint64_t rsrvd9; +}; + +/* FEC 5GNR Downlink Frame Control Word */ +struct __rte_packed acc100_fcw_le { + uint32_t FCWversion:4, + qm:4, + nfiller:11, + BG:1, + Zc:9, + res0:3; + uint32_t ncb:16, + k0:16; + uint32_t rm_e:24, + res1:2, + crc_select:1, + res2:1, + bypass_intlv:1, + res3:3; + uint32_t res4_a:12, + mcb_count:3, + res4_b:17; +uint32_t res5; +uint32_t res6; +uint32_t res7; +uint32_t res8; +}; + +/* ACC100 DMA Request Descriptor */ +struct __rte_packed acc100_dma_req_desc { + union { + struct{ + uint32_t type:4, + rsrvd0:26, + sdone:1, + fdone:1; + uint32_t rsrvd1; + uint32_t rsrvd2; + uint32_t pass_param:8, + sdone_enable:1, + irq_enable:1, + timeStampEn:1, + res0:5, + numCBs:4, + res1:4, + m2dlen:4,drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h +10
-0+ d2mlen:4 ; + }; +struct { +uint32_t word0; +uint32_t word1; +uint32_t word2; +uint32_t word3; + }; + }; +struct acc100_dma_triplet data_ptrs[ACC100_DMA_MAX_NUM_POINTERS];
Quoted 17 lines
drivers/baseband/acc100/rte_acc100_pmd.h +17
-0+ +/* Virtual addresses used to retrieve SW context info */ +union { +void *op_addr; +uint64_t pad1;/* pad to 64 bits */ + }; +/* +* Stores additional information needed for driver processing: +* - last_desc_in_batch - flag used to mark last descriptor (CB) +* in batch +* - cbs_in_tb - stores information about total number of Code Blocks +* in currently processed Transport Block +*/ + union { + struct { + union { + struct acc100_fcw_ld fcw_ld;drivers/baseband/acc100/rte_acc100_pmd.h
Quoted 10 lines
drivers/baseband/acc100/rte_acc100_pmd.h +10
-0+struct acc100_fcw_td fcw_td; +struct acc100_fcw_le fcw_le; +struct acc100_fcw_te fcw_te; +uint32_t pad2[ACC100_FCW_PADDING ]; + }; + uint32_t last_desc_in_batch :8, + cbs_in_tb:8, + pad4 : 16; + }; +uint64_t pad3[ACC100_DMA_DESC_PADDING ];/* pad to 64 bits */
Quoted 130 lines
drivers/baseband/acc100/rte_acc100_pmd.h +127
-0+ }; +}; + +/* ACC100 DMA Descriptor */ +union acc100_dma_desc { +struct acc100_dma_req_desc req; +union acc100_dma_rsp_desc rsp; +}; + + +/* Union describing Info Ring entry */ +union acc100_harq_layout_data { +uint32_t val; +struct { +uint16_t offset; +uint16_t size0; + }; +} __rte_packed; + + +/* Union describing Info Ring entry */ +union acc100_info_ring_data { +uint32_t val; +struct { +union { +uint16_t detailed_info; +struct { +uint16_t aq_id:4 ; +uint16_t qg_id:4 ; +uint16_t vf_id:6 ; +uint16_t reserved:2 ; + }; + }; +uint16_t int_nb:7 ; +uint16_t msi_0:1 ; +uint16_t vf2pf:6 ; +uint16_t loop:1 ; +uint16_t valid:1 ; + }; +} __rte_packed; + +struct acc100_registry_addr { +unsigned int dma_ring_dl5g_hi; +unsigned int dma_ring_dl5g_lo; +unsigned int dma_ring_ul5g_hi; +unsigned int dma_ring_ul5g_lo; +unsigned int dma_ring_dl4g_hi; +unsigned int dma_ring_dl4g_lo; +unsigned int dma_ring_ul4g_hi; +unsigned int dma_ring_ul4g_lo; +unsigned int ring_size; +unsigned int info_ring_hi; +unsigned int info_ring_lo; +unsigned int info_ring_en; +unsigned int info_ring_ptr; +unsigned int tail_ptrs_dl5g_hi; +unsigned int tail_ptrs_dl5g_lo; +unsigned int tail_ptrs_ul5g_hi; +unsigned int tail_ptrs_ul5g_lo; +unsigned int tail_ptrs_dl4g_hi; +unsigned int tail_ptrs_dl4g_lo; +unsigned int tail_ptrs_ul4g_hi; +unsigned int tail_ptrs_ul4g_lo; +unsigned int depth_log0_offset; +unsigned int depth_log1_offset; +unsigned int qman_group_func; +unsigned int ddr_range; +}; + +/* Structure holding registry addresses for PF */ +static const struct acc100_registry_addr pf_reg_addr = { + .dma_ring_dl5g_hi = HWPfDmaFec5GdlDescBaseHiRegVf, + .dma_ring_dl5g_lo = HWPfDmaFec5GdlDescBaseLoRegVf, + .dma_ring_ul5g_hi = HWPfDmaFec5GulDescBaseHiRegVf, + .dma_ring_ul5g_lo = HWPfDmaFec5GulDescBaseLoRegVf, + .dma_ring_dl4g_hi = HWPfDmaFec4GdlDescBaseHiRegVf, + .dma_ring_dl4g_lo = HWPfDmaFec4GdlDescBaseLoRegVf, + .dma_ring_ul4g_hi = HWPfDmaFec4GulDescBaseHiRegVf, + .dma_ring_ul4g_lo = HWPfDmaFec4GulDescBaseLoRegVf, + .ring_size = HWPfQmgrRingSizeVf, + .info_ring_hi = HWPfHiInfoRingBaseHiRegPf, + .info_ring_lo = HWPfHiInfoRingBaseLoRegPf, + .info_ring_en = HWPfHiInfoRingIntWrEnRegPf, + .info_ring_ptr = HWPfHiInfoRingPointerRegPf, + .tail_ptrs_dl5g_hi = HWPfDmaFec5GdlRespPtrHiRegVf, + .tail_ptrs_dl5g_lo = HWPfDmaFec5GdlRespPtrLoRegVf, + .tail_ptrs_ul5g_hi = HWPfDmaFec5GulRespPtrHiRegVf, + .tail_ptrs_ul5g_lo = HWPfDmaFec5GulRespPtrLoRegVf, + .tail_ptrs_dl4g_hi = HWPfDmaFec4GdlRespPtrHiRegVf, + .tail_ptrs_dl4g_lo = HWPfDmaFec4GdlRespPtrLoRegVf, + .tail_ptrs_ul4g_hi = HWPfDmaFec4GulRespPtrHiRegVf, + .tail_ptrs_ul4g_lo = HWPfDmaFec4GulRespPtrLoRegVf, + .depth_log0_offset = HWPfQmgrGrpDepthLog20Vf, + .depth_log1_offset = HWPfQmgrGrpDepthLog21Vf, + .qman_group_func = HWPfQmgrGrpFunction0, + .ddr_range = HWPfDmaVfDdrBaseRw, +}; + +/* Structure holding registry addresses for VF */ +static const struct acc100_registry_addr vf_reg_addr = { + .dma_ring_dl5g_hi = HWVfDmaFec5GdlDescBaseHiRegVf, + .dma_ring_dl5g_lo = HWVfDmaFec5GdlDescBaseLoRegVf, + .dma_ring_ul5g_hi = HWVfDmaFec5GulDescBaseHiRegVf, + .dma_ring_ul5g_lo = HWVfDmaFec5GulDescBaseLoRegVf, + .dma_ring_dl4g_hi = HWVfDmaFec4GdlDescBaseHiRegVf, + .dma_ring_dl4g_lo = HWVfDmaFec4GdlDescBaseLoRegVf, + .dma_ring_ul4g_hi = HWVfDmaFec4GulDescBaseHiRegVf, + .dma_ring_ul4g_lo = HWVfDmaFec4GulDescBaseLoRegVf, + .ring_size = HWVfQmgrRingSizeVf, + .info_ring_hi = HWVfHiInfoRingBaseHiVf, + .info_ring_lo = HWVfHiInfoRingBaseLoVf, + .info_ring_en = HWVfHiInfoRingIntWrEnVf, + .info_ring_ptr = HWVfHiInfoRingPointerVf, + .tail_ptrs_dl5g_hi = HWVfDmaFec5GdlRespPtrHiRegVf, + .tail_ptrs_dl5g_lo = HWVfDmaFec5GdlRespPtrLoRegVf, + .tail_ptrs_ul5g_hi = HWVfDmaFec5GulRespPtrHiRegVf, + .tail_ptrs_ul5g_lo = HWVfDmaFec5GulRespPtrLoRegVf, + .tail_ptrs_dl4g_hi = HWVfDmaFec4GdlRespPtrHiRegVf, + .tail_ptrs_dl4g_lo = HWVfDmaFec4GdlRespPtrLoRegVf, + .tail_ptrs_ul4g_hi = HWVfDmaFec4GulRespPtrHiRegVf, + .tail_ptrs_ul4g_lo = HWVfDmaFec4GulRespPtrLoRegVf, + .depth_log0_offset = HWVfQmgrGrpDepthLog20Vf, + .depth_log1_offset = HWVfQmgrGrpDepthLog21Vf, + .qman_group_func = HWVfQmgrGrpFunction0Vf, + .ddr_range = HWVfDmaDdrBaseRangeRoVf, +}; +/* Private data structure for each ACC100 device */ struct acc100_device {void *mmio_base;/**< Base address of MMIO registers (BAR0) */