baseband/acc: vrb2 FFT support
cover baseband/acc: vrb2 FFT support
Hi,
Additional and final series for the VRB2 PMD.
Now supporting latest FFT processing (available on final stepping of the device ) and generic improvement to decoder configuration.
Thanks
Nic
Nicolas Chautru (2):
baseband/acc: FFT support in VRB2 PRQ device baseband/acc: saturate input to 6 bits for VRB decoder
drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 33 +++++++++++++++++++++++++---- drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 32 insertions(+), 7 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/2 baseband/acc: FFT support in VRB2 PRQ device
Supporting recent change in the device to
extend FFT capability processing in latest stepping. Also including cosmetic change to VRB2 register definition.
--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30 +++++++++++++++++++++++++---- drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)
drivers/baseband/acc/acc_common.h +1 -1
@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66/* N = 66 Zc for BG 1 */
drivers/baseband/acc/rte_vrb_pmd.c +26 -4
@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;
@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev, struct rte_bbdev_driver_info *dev_info)RTE_BBDEV_FFT_FP16_INPUT |RTE_BBDEV_FFT_FP16_OUTPUT |RTE_BBDEV_FFT_POWER_MEAS | - RTE_BBDEV_FFT_WINDOWING_BYPASS, +RTE_BBDEV_FFT_WINDOWING_BYPASS | +RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS | +RTE_BBDEV_FFT_TIMING_ERROR | +RTE_BBDEV_FFT_DEWINDOWING | + RTE_BBDEV_FFT_FREQ_RESAMPLING, .num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num = ACC_MAX_FFT_WIN,
@@ -3725,6 +3729,8 @@ vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)static inline void vrb2_fcw_fft_fill (struct rte_bbdev_fft_op *op,struct acc_fcw_fft_3 *fcw) { +uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size;
@@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft_3 *fcw) fcw->bypass =3 ; else fcw->bypass = 0; + + fcw->enable_dewin =check_bit (op->fft.op_flags,RTE_BBDEV_FFT_DEWINDOWING ); + fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op->fft.output_depadded_size; +for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } } static inline int
@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =rte_pktmbuf_iova_offset (win_input, *win_offset); + desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size *2 ; + desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address =rte_pktmbuf_iova_offset (input, *in_offset); desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *ACC_IQ_SIZE ;
drivers/baseband/acc/vrb2_vf_enum.h +2 -2
@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc =0x00000070 , + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc =0x00000068 , VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
Signature · 1 line
2.34.1
Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi Nicolas,
Quoted 98 lines · Nicolas Chautru
Supporting recent change in the device to
extend FFT capability processing in latest stepping. Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30 +++++++++++++++++++++++++---- drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)drivers/baseband/acc/acc_common.h +1
-1@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66/* N = 66 Zc for BG 1 */ drivers/baseband/acc/rte_vrb_pmd.c +26
-4@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev, struct rte_bbdev_driver_info *dev_info)RTE_BBDEV_FFT_FP16_INPUT |RTE_BBDEV_FFT_FP16_OUTPUT |RTE_BBDEV_FFT_POWER_MEAS | - RTE_BBDEV_FFT_WINDOWING_BYPASS, +RTE_BBDEV_FFT_WINDOWING_BYPASS | +RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS | +RTE_BBDEV_FFT_TIMING_ERROR | +RTE_BBDEV_FFT_DEWINDOWING | + RTE_BBDEV_FFT_FREQ_RESAMPLING, .num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num = ACC_MAX_FFT_WIN,@@ -3725,6 +3729,8 @@ vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)static inline void vrb2_fcw_fft_fill (struct rte_bbdev_fft_op *op,struct acc_fcw_fft_3 *fcw) { +uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size;@@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft_3 *fcw) fcw->bypass =3 ; else fcw->bypass = 0; + + fcw->enable_dewin =check_bit (op->fft.op_flags,RTE_BBDEV_FFT_DEWINDOWING ); + fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op->fft.output_depadded_size; +for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } } static inline int@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =rte_pktmbuf_iova_offset (win_input, *win_offset); + desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size *2 ; + desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address =rte_pktmbuf_iova_offset (input, *in_offset); desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *ACC_IQ_SIZE ;drivers/baseband/acc/vrb2_vf_enum.h +0
-0
drivers/baseband/acc/vrb2_vf_enum.h enum { · line 22
Quoted 7 lines
drivers/baseband/acc/vrb2_vf_enum.h +2
-2@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc = 0x00000070, + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc = 0x00000068,
The offset of the registers change, is that what you describe as cosmetic change?
Does it have an impact on older DPDK versions? i.e. should it be backported?
Thanks,
Maxime
Quoted 3 lines
drivers/baseband/acc/vrb2_vf_enum.h +0
-0VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
RE: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi Maxime,
Quoted 142 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, October 18, 2024 12:54 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ deviceHi Nicolas,
Quoted 8 lines · Nicolas Chautru
Supporting recent change in the device to extend FFT capability processing in latest stepping.
Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30 +++++++++++++++++++++++++----
drivers/baseband/acc/rte_vrb_pmd.c vrb_queue_setup(struct rte_bbdev *dev,
Quoted 23 lines
drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)drivers/baseband/acc/acc_common.h +1
-1@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66 /* N = 66 Zc for BG 1 */ diff --git
a/drivers/baseband/acc/rte_vrb_pmd.cb/drivers/baseband/acc/rte_vrb_pmd.c
index0455320c2a..5eb3e8dd48100644drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev,
uint16_tqueue_id,drivers/baseband/acc/rte_vrb_pmd.c vrb_dev_info_get(struct rte_bbdev *dev, struct
Quoted 9 lines
drivers/baseband/acc/rte_vrb_pmd.c +1
-1case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev, struct
rte_bbdev_driver_info*dev_info)drivers/baseband/acc/rte_vrb_pmd.c vrb_dev_info_get(struct rte_bbdev *dev, struct · line 1402
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +0
-0RTE_BBDEV_FFT_FP16_INPUT |
Quoted 1 line
RTE_BBDEV_FFT_FP16_OUTPUT |Quoted 1 line
RTE_BBDEV_FFT_POWER_MEAS|Quoted 1 line
-
RTE_BBDEV_FFT_WINDOWING_BYPASS,Quoted 1 line
+
RTE_BBDEV_FFT_WINDOWING_BYPASS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_ERROR|Quoted 1 line
+
RTE_BBDEV_FFT_DEWINDOWING|Quoted 1 line
+
RTE_BBDEV_FFT_FREQ_RESAMPLING,Quoted 3 lines
.num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num =
ACC_MAX_FFT_WIN,(quoted diff) +0
-0@@ -3725,6 +3729,8 @@ > vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)drivers/baseband/acc/rte_vrb_pmd.c vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)
Quoted 9 lines
static inline void vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft_3 *fcw) {drivers/baseband/acc/rte_vrb_pmd.c +3
-0+uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size; @@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct
acc_fcw_fft_3*fcw)drivers/baseband/acc/rte_vrb_pmd.c
Quoted 5 lines
fcw->bypass = 3; else fcw->bypass = 0;drivers/baseband/acc/rte_vrb_pmd.c +2
-0+ + fcw->enable_dewin = check_bit(op->fft.op_flags,
RTE_BBDEV_FFT_DEWINDOWING);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op
Quoted 13 lines
drivers/baseband/acc/rte_vrb_pmd.c +3
-0+ fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op-fft.output_depadded_size;
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } } static inline int@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op*op,
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-2/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =
rte_pktmbuf_iova_offset(win_input, *win_offset);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op · line 3803
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +1
-0+ desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size* 2;
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+ desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address = rte_pktmbuf_iova_offset(input,
*in_offset);Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +0
-0desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *
ACC_IQ_SIZE; diff --gita/drivers/baseband/acc/vrb2_vf_enum.hb/drivers/baseband/acc/vrb2_vf_enum.h
index9c6e451010..1cc6986c67100644drivers/baseband/acc/vrb2_vf_enum.h enum { · line 22
Quoted 7 lines
drivers/baseband/acc/vrb2_vf_enum.h +2
-2@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc = 0x00000070, + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc = 0x00000068,The offset of the registers change, is that what you describe as cosmetic change?
Quoted 1 line
Does it have an impact on older DPDK versions? i.e. should it be backported?
Hi Maxime, These registers are currently not used in the code so it really has no impact. It is more for documentation purpose and in case we need to use them in the future, basically not to carry such discrepancy with specs forward.
No actual impact and does not need to be back ported for the same reason. Thanks
Nic
Quoted 8 lines
Thanks,
MaximeQuoted 3 lines
drivers/baseband/acc/vrb2_vf_enum.h +0
-0VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi,
Quoted 144 lines · Nicolas
Hi Maxime,
Quoted 142 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, October 18, 2024 12:54 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ deviceHi Nicolas,
Quoted 8 lines · Nicolas Chautru
Supporting recent change in the device to extend FFT capability processing in latest stepping.
Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30 +++++++++++++++++++++++++----
drivers/baseband/acc/rte_vrb_pmd.c vrb_queue_setup(struct rte_bbdev *dev,
Quoted 23 lines
drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)drivers/baseband/acc/acc_common.h +1
-1@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66 /* N = 66 Zc for BG 1 */ diff --git
a/drivers/baseband/acc/rte_vrb_pmd.cb/drivers/baseband/acc/rte_vrb_pmd.c
index0455320c2a..5eb3e8dd48100644drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev,
uint16_tqueue_id,drivers/baseband/acc/rte_vrb_pmd.c vrb_dev_info_get(struct rte_bbdev *dev, struct
Quoted 9 lines
drivers/baseband/acc/rte_vrb_pmd.c +1
-1case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev, struct
rte_bbdev_driver_info*dev_info)drivers/baseband/acc/rte_vrb_pmd.c vrb_dev_info_get(struct rte_bbdev *dev, struct · line 1402
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +0
-0RTE_BBDEV_FFT_FP16_INPUT |
Quoted 1 line
RTE_BBDEV_FFT_FP16_OUTPUT |Quoted 1 line
RTE_BBDEV_FFT_POWER_MEAS|Quoted 1 line
-
RTE_BBDEV_FFT_WINDOWING_BYPASS,Quoted 1 line
+
RTE_BBDEV_FFT_WINDOWING_BYPASS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_ERROR|Quoted 1 line
+
RTE_BBDEV_FFT_DEWINDOWING|Quoted 1 line
+
RTE_BBDEV_FFT_FREQ_RESAMPLING,Quoted 3 lines
.num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num = ACC_MAX_FFT_WIN,(quoted diff) +0
-0@@ -3725,6 +3729,8 @@ > vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)drivers/baseband/acc/rte_vrb_pmd.c vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)
Quoted 9 lines
static inline void vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft_3 *fcw) {drivers/baseband/acc/rte_vrb_pmd.c +3
-0+uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size; @@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct
acc_fcw_fft_3*fcw)drivers/baseband/acc/rte_vrb_pmd.c
Quoted 5 lines
fcw->bypass = 3; else fcw->bypass = 0;drivers/baseband/acc/rte_vrb_pmd.c +2
-0+ + fcw->enable_dewin = check_bit(op->fft.op_flags,
RTE_BBDEV_FFT_DEWINDOWING);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op
Quoted 13 lines
drivers/baseband/acc/rte_vrb_pmd.c +3
-0+ fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op-fft.output_depadded_size;
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } } static inline int@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op*op,
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-2/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =
rte_pktmbuf_iova_offset(win_input, *win_offset);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op · line 3803
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +1
-0+ desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size* 2;
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+ desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address = rte_pktmbuf_iova_offset(input,
*in_offset);Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +0
-0desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *
ACC_IQ_SIZE; diff --gita/drivers/baseband/acc/vrb2_vf_enum.hb/drivers/baseband/acc/vrb2_vf_enum.h
index9c6e451010..1cc6986c67100644drivers/baseband/acc/vrb2_vf_enum.h enum { · line 22
Quoted 7 lines
drivers/baseband/acc/vrb2_vf_enum.h +2
-2@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc = 0x00000070, + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc = 0x00000068,The offset of the registers change, is that what you describe as cosmetic change?
Quoted 6 lines
Quoted 1 line
Does it have an impact on older DPDK versions? i.e. should it be backported?
Hi Maxime, These registers are currently not used in the code so it really has no impact. It is more for documentation purpose and in case we need to use them in the future, basically not to carry such discrepancy with specs forward.
No actual impact and does not need to be back ported for the same reason.
Ok, then I would suggest to just name things as they are in the commit message.
"Also, take the opportunity to fix some unsused VRB2 registers definitions".
Thanks,
Maxime
Quoted 12 lines
Thanks
NicQuoted 8 lines
Thanks,
MaximeQuoted 3 lines
drivers/baseband/acc/vrb2_vf_enum.h +0
-0VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
RE: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi Maxime,
Do you want me to send a v2 for this or you can change the comment before applying?
"Also, take the opportunity to fix some unused VRB2 registers definitions".
Quoted 189 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Monday, October 21, 2024 8:06 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ deviceHi,
Quoted 7 lines · Nicolas
Hi Maxime,
Quoted 5 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, October 18, 2024 12:54 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, HernanQuoted 68 lines
Quoted 68 lines
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi Nicolas,
Quoted 9 lines · Nicolas Chautru
Supporting recent change in the device to extend FFT capability processing in latest stepping.
Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30+++++++++++++++++++++++++-
---
drivers/baseband/acc/rte_vrb_pmd.c vrb_queue_setup(struct rte_bbdev *dev,
Quoted 23 lines
drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)drivers/baseband/acc/acc_common.h +1
-1@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66 /* N = 66 Zc for BG 1 */ diff --git
a/drivers/baseband/acc/rte_vrb_pmd.cb/drivers/baseband/acc/rte_vrb_pmd.c
index0455320c2a..5eb3e8dd48100644drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev,
uint16_tqueue_id,Quoted 10 lines
drivers/baseband/acc/rte_vrb_pmd.c +1
-1case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev,struct
rte_bbdev_driver_info*dev_info)Quoted 1 line
RTE_BBDEV_FFT_FP16_INPUT|
Quoted 1 line
RTE_BBDEV_FFT_FP16_OUTPUT |Quoted 1 line
RTE_BBDEV_FFT_POWER_MEAS|Quoted 1 line
-
RTE_BBDEV_FFT_WINDOWING_BYPASS,Quoted 1 line
+
RTE_BBDEV_FFT_WINDOWING_BYPASS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_ERROR|Quoted 1 line
+
RTE_BBDEV_FFT_DEWINDOWING|Quoted 1 line
+
Quoted 8 lines
Quoted 8 lines
RTE_BBDEV_FFT_FREQ_RESAMPLING,Quoted 3 lines
.num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num = ACC_MAX_FFT_WIN,(quoted diff) +0
-0@@ -3725,6 +3729,8 @@ > vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)Quoted 2 lines
static inline void
vrb2_fcw_fft_fill(structrte_bbdev_fft_op*op, structacc_fcw_fft_3*fcw)
Quoted 25 lines
Quoted 25 lines
drivers/baseband/acc/rte_vrb_pmd.c vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)
Quoted 7 lines
{drivers/baseband/acc/rte_vrb_pmd.c +3
-0+uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size; @@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct
acc_fcw_fft_3*fcw)drivers/baseband/acc/rte_vrb_pmd.c
Quoted 5 lines
fcw->bypass = 3; else fcw->bypass = 0;drivers/baseband/acc/rte_vrb_pmd.c +2
-0+ + fcw->enable_dewin = check_bit(op->fft.op_flags,
RTE_BBDEV_FFT_DEWINDOWING);Quoted 11 lines
drivers/baseband/acc/rte_vrb_pmd.c +3
-0+ fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op-fft.output_depadded_size;
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } }Quoted 2 lines
Quoted 2 lines
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct
Quoted 2 lines
static inline int
drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct
rte_bbdev_fft_opQuoted 37 lines
Quoted 37 lines
*op,
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-2/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =
rte_pktmbuf_iova_offset(win_input, *win_offset);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct · line 3803
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +1
-0+ desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size* 2;
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+ desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address = rte_pktmbuf_iova_offset(input,
*in_offset);Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +0
-0desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *
ACC_IQ_SIZE; diff --gita/drivers/baseband/acc/vrb2_vf_enum.hb/drivers/baseband/acc/vrb2_vf_enum.h
index9c6e451010..1cc6986c67100644drivers/baseband/acc/vrb2_vf_enum.h enum { · line 22
Quoted 7 lines
drivers/baseband/acc/vrb2_vf_enum.h +2
-2@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc = 0x00000070, + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc = 0x00000068,The offset of the registers change, is that what you describe as cosmetic change?
Quoted 1 line
Quoted 1 line
Does it have an impact on older DPDK versions? i.e. should it be
backported?
Quoted 2 lines
Hi Maxime, These registers are currently not used in the code so it really
has no impact.
Quoted 3 lines
It is more for documentation purpose and in case we need to use them in the future, basically not to carry such discrepancy with specs forward. No actual impact and does not need to be back ported for the same reason.
Ok, then I would suggest to just name things as they are in the commit message.
"Also, take the opportunity to fix some unsused VRB2 registers definitions".
Thanks,
MaximeQuoted 12 lines
Thanks
NicQuoted 8 lines
Thanks,
MaximeQuoted 3 lines
drivers/baseband/acc/vrb2_vf_enum.h +0
-0VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Quoted 5 lines · Nicolas
Hi Maxime,
Do you want me to send a v2 for this or you can change the comment before applying?
"Also, take the opportunity to fix some unused VRB2 registers definitions".
I can do it while applying.
Thanks,
Maxime
Quoted 191 lines
Quoted 190 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Monday, October 21, 2024 8:06 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, Hernan <[email protected]>
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ deviceHi,
Quoted 7 lines · Nicolas
Hi Maxime,
Quoted 5 lines
-----Original Message-----
From: Maxime Coquelin <[email protected]>
Sent: Friday, October 18, 2024 12:54 AM
To: Chautru, Nicolas <[email protected]>; [email protected]
Cc: [email protected]; Vargas, HernanQuoted 68 lines
Quoted 68 lines
Subject: Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
Hi Nicolas,
Quoted 9 lines · Nicolas Chautru
Supporting recent change in the device to extend FFT capability processing in latest stepping.
Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30+++++++++++++++++++++++++-
---
drivers/baseband/acc/rte_vrb_pmd.c vrb_queue_setup(struct rte_bbdev *dev,
Quoted 23 lines
drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)drivers/baseband/acc/acc_common.h +1
-1@@ -106,7 +106,7 @@#define ACC_MAX_FCW_SIZE 128#define ACC_IQ_SIZE 4 -#define ACC_FCW_FFT_BLEN_3 28 +#define ACC_FCW_FFT_BLEN_VRB2 128/* Constants from K0 computation from 3GPP 38.212 Table 5.4.2.1-2 */ #define ACC_N_ZC_1 66 /* N = 66 Zc for BG 1 */ diff --git
a/drivers/baseband/acc/rte_vrb_pmd.cb/drivers/baseband/acc/rte_vrb_pmd.c
index0455320c2a..5eb3e8dd48100644drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -1006,7 +1006,7 @@ vrb_queue_setup(struct rte_bbdev *dev,
uint16_tqueue_id,Quoted 10 lines
drivers/baseband/acc/rte_vrb_pmd.c +1
-1case RTE_BBDEV_OP_FFT : fcw_len =ACC_FCW_FFT_BLEN ;if (q->d->device_variant ==VRB2_VARIANT ) - fcw_len =ACC_FCW_FFT_BLEN_3 ; + fcw_len =ACC_FCW_FFT_BLEN_VRB2 ;break ;case RTE_BBDEV_OP_MLDTS : fcw_len =ACC_FCW_MLDTS_BLEN ;@@ -1402,7 +1402,11 @@ vrb_dev_info_get(struct rte_bbdev *dev,struct
rte_bbdev_driver_info*dev_info)Quoted 1 line
RTE_BBDEV_FFT_FP16_INPUT|
Quoted 1 line
RTE_BBDEV_FFT_FP16_OUTPUT |Quoted 1 line
RTE_BBDEV_FFT_POWER_MEAS|Quoted 1 line
-
RTE_BBDEV_FFT_WINDOWING_BYPASS,Quoted 1 line
+
RTE_BBDEV_FFT_WINDOWING_BYPASS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_OFFSET_PER_CS|Quoted 1 line
+
RTE_BBDEV_FFT_TIMING_ERROR|Quoted 1 line
+
RTE_BBDEV_FFT_DEWINDOWING|Quoted 1 line
+
Quoted 8 lines
Quoted 8 lines
RTE_BBDEV_FFT_FREQ_RESAMPLING,Quoted 3 lines
.num_buffers_src = 1, .num_buffers_dst = 1, .fft_windows_num = ACC_MAX_FFT_WIN,(quoted diff) +0
-0@@ -3725,6 +3729,8 @@ > vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)Quoted 2 lines
static inline void
vrb2_fcw_fft_fill(structrte_bbdev_fft_op*op, structacc_fcw_fft_3*fcw)
Quoted 25 lines
Quoted 25 lines
drivers/baseband/acc/rte_vrb_pmd.c vrb1_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct acc_fcw_fft *fcw)
Quoted 7 lines
{drivers/baseband/acc/rte_vrb_pmd.c +3
-0+uint8_t cs; + fcw->in_frame_size = op->fft.input_sequence_size; fcw->leading_pad_size = op->fft.input_leading_padding; fcw->out_frame_size = op->fft.output_sequence_size; @@ -3760,6 +3766,16 @@ vrb2_fcw_fft_fill(struct rte_bbdev_fft_op *op, struct
acc_fcw_fft_3*fcw)drivers/baseband/acc/rte_vrb_pmd.c
Quoted 5 lines
fcw->bypass = 3; else fcw->bypass = 0;drivers/baseband/acc/rte_vrb_pmd.c +2
-0+ + fcw->enable_dewin = check_bit(op->fft.op_flags,
RTE_BBDEV_FFT_DEWINDOWING);Quoted 11 lines
drivers/baseband/acc/rte_vrb_pmd.c +3
-0+ fcw->freq_resample_mode = op->fft.freq_resample_mode; + fcw->depad_output_size = fcw->freq_resample_mode ==0 ? + op->fft.output_sequence_size : op-fft.output_depadded_size;
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+for (cs =0 ; cs <RTE_BBDEV_MAX_CS ; cs++) { + fcw->cs_theta_0[cs] = op->fft.cs_theta_0[cs]; + fcw->cs_theta_d[cs] = op->fft.cs_theta_d[cs]; + fcw->cs_time_offset[cs] = op->fft.time_offset[cs]; + } }Quoted 2 lines
Quoted 2 lines
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct
Quoted 2 lines
static inline int
drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -3782,8 +3798,14 @@ vrb_dma_desc_fft_fill(struct
rte_bbdev_fft_opQuoted 37 lines
Quoted 37 lines
*op,
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-2/* FCW already done */ acc_header_init (desc); -RTE_SET_USED (win_input); -RTE_SET_USED (win_offset); +if (win_en && win_input) { + desc->data_ptrs[bd_idx].address =
rte_pktmbuf_iova_offset(win_input, *win_offset);drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct · line 3803
Quoted 1 line
drivers/baseband/acc/rte_vrb_pmd.c +1
-0+ desc->data_ptrs[bd_idx].blen = op->fft.output_depadded_size* 2;
drivers/baseband/acc/rte_vrb_pmd.c vrb_dma_desc_fft_fill(struct rte_bbdev_fft_op *op,
Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +5
-0+ desc->data_ptrs[bd_idx].blkid =ACC_DMA_BLKID_DEWIN_IN ; + desc->data_ptrs[bd_idx].last =0 ; + desc->data_ptrs[bd_idx].dma_ext =0 ; + bd_idx++; + } desc->data_ptrs[bd_idx].address = rte_pktmbuf_iova_offset(input,
*in_offset);Quoted 7 lines
drivers/baseband/acc/rte_vrb_pmd.c +0
-0desc->data_ptrs[bd_idx].blen = op->fft.input_sequence_size *
ACC_IQ_SIZE; diff --gita/drivers/baseband/acc/vrb2_vf_enum.hb/drivers/baseband/acc/vrb2_vf_enum.h
index9c6e451010..1cc6986c67100644drivers/baseband/acc/vrb2_vf_enum.h enum { · line 22
Quoted 7 lines
drivers/baseband/acc/vrb2_vf_enum.h +2
-2@@ -18,8 +18,8 @@ enum { VRB2_VfHiInfoRingIntWrEnVf =0x00000020 , VRB2_VfHiInfoRingPf2VfWrEnVf =0x00000024 , VRB2_VfHiMsixVectorMapperVf =0x00000060 , - VRB2_VfHiDeviceStatus =0x00000068 , - VRB2_VfHiInterruptSrc = 0x00000070, + VRB2_VfHiDeviceStatus =0x00000064 , + VRB2_VfHiInterruptSrc = 0x00000068,The offset of the registers change, is that what you describe as cosmetic change?
Quoted 1 line
Quoted 1 line
Does it have an impact on older DPDK versions? i.e. should it be
backported?
Quoted 2 lines
Hi Maxime, These registers are currently not used in the code so it really
has no impact.
Quoted 3 lines
It is more for documentation purpose and in case we need to use them in the future, basically not to carry such discrepancy with specs forward. No actual impact and does not need to be back ported for the same reason.
Ok, then I would suggest to just name things as they are in the commit message.
"Also, take the opportunity to fix some unsused VRB2 registers definitions".
Thanks,
MaximeQuoted 12 lines
Thanks
NicQuoted 8 lines
Thanks,
MaximeQuoted 3 lines
drivers/baseband/acc/vrb2_vf_enum.h +0
-0VRB2_VfDmaFec5GulDescBaseLoRegVf =0x00000120 , VRB2_VfDmaFec5GulDescBaseHiRegVf =0x00000124 , VRB2_VfDmaFec5GulRespPtrLoRegVf = 0x00000128,
Re: [PATCH v1 1/2] baseband/acc: FFT support in VRB2 PRQ device
In reply to Nicolas ChautruQuoted 11 lines · Nicolas Chautru
Supporting recent change in the device to
extend FFT capability processing in latest stepping. Also including cosmetic change to VRB2 register definition.Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 30 +++++++++++++++++++++++++---- drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 29 insertions(+), 7 deletions(-)
With suggested commit reword I'll do <while applying:
Thanks,
Maxime
PATCH 2/2 baseband/acc: saturate input to 6 bits for VRB decoder
In reply to Nicolas ChautruMaking the decoder more robust by forcing a default 6 bits LLR saturation to LDPC Decoder input.
--- drivers/baseband/acc/rte_vrb_pmd.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/baseband/acc/rte_vrb_pmd.c +3 -0
@@ -1799,6 +1799,9 @@ vrb_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, fcw->hcout_offset =0 ; } +/* Force saturation to 6 bits LLR. */ + fcw->saturate_input =1 ; + fcw->tb_crc_select =0 ;if (check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_CRC_TYPE_24A_CHECK )) fcw->tb_crc_select =2 ;
Signature · 1 line
2.34.1
Re: [PATCH v1 2/2] baseband/acc: saturate input to 6 bits for VRB decoder
Quoted 13 lines · Nicolas Chautru
Making the decoder more robust by forcing a default 6 bits LLR saturation to LDPC Decoder input.
Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/rte_vrb_pmd.c | 3 +++ 1 file changed, 3 insertions(+)drivers/baseband/acc/rte_vrb_pmd.c +0
-0
drivers/baseband/acc/rte_vrb_pmd.c vrb_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, · line 1807
Quoted 9 lines
drivers/baseband/acc/rte_vrb_pmd.c +3
-0@@ -1799,6 +1799,9 @@ vrb_fcw_ld_fill(struct rte_bbdev_dec_op *op, struct acc_fcw_ld *fcw, fcw->hcout_offset =0 ; } +/* Force saturation to 6 bits LLR. */ + fcw->saturate_input =1 ; + fcw->tb_crc_select =0 ;if (check_bit (op->ldpc_dec.op_flags,RTE_BBDEV_LDPC_CRC_TYPE_24A_CHECK )) fcw->tb_crc_select =2 ;
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 8 lines · Nicolas Chautru
Hi,
Additional and final series for the VRB2 PMD.
Now supporting latest FFT processing (available on final stepping of the device ) and generic improvement to decoder configuration.Thanks
Nic
Quoted 9 lines
Nicolas Chautru (2):
baseband/acc: FFT support in VRB2 PRQ device baseband/acc: saturate input to 6 bits for VRB decoderdrivers/baseband/acc/acc_common.h | 2 +- drivers/baseband/acc/rte_vrb_pmd.c | 33 +++++++++++++++++++++++++---- drivers/baseband/acc/vrb2_vf_enum.h | 4 ++-- 3 files changed, 32 insertions(+), 7 deletions(-)
Applied to next-baseband/for-main.
Thanks,
Maxime