Update of the PF2VF comms between bbdev and pf_bb_config to make sure
all FFT windows can be read.
So far only the first window was actually used and functional.
No system impact. Affects VRB1 and VRB2.
Fixes: 0d39ed91c161 ("baseband/acc: add FFT window width in VRB")
Cc: [email protected]
Signed-off-by: Hernan Vargas <[email protected]>
---
drivers/baseband/acc/rte_vrb_pmd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/baseband/acc/rte_vrb_pmd.c
b/drivers/baseband/acc/rte_vrb_pmd.c
index 1f85e33462..b9ff027ce8 100644
--- a/drivers/baseband/acc/rte_vrb_pmd.c
+++ b/drivers/baseband/acc/rte_vrb_pmd.c
@@ -219,7 +219,7 @@ vrb_device_fft_win(struct rte_bbdev *dev)
/* Check from the device the first time. */
if (d->fft_window_width[0] == 0) {
for (win = 0; win < ACC_MAX_FFT_WIN; win++) {
- vrb_vf2pf(d, ACC_VF2PF_FFT_WIN_REQUEST | win);
+ vrb_vf2pf(d, ACC_VF2PF_FFT_WIN_REQUEST | (win << 8));
reg = acc_reg_read(d, d->reg_addr->pf2vf_doorbell);
while ((time_out < ACC_STATUS_TO) && (reg ==
RTE_BBDEV_DEV_NOSTATUS)) {
usleep(ACC_STATUS_WAIT); /* Wait or VF->PF->VF
Comms. */
--
2.34.1