baseband/acc: fix queue setup failure clean up
cover baseband/acc: fix queue setup failure clean up
Hi Maxime,
This is the fix for the regression issue mentioned off list. This could notably hit when running with bbdev-test over more than 64 threads.
Thanks
Nic
Nicolas Chautru (1):
baseband/acc: fix queue setup failure clean up
drivers/baseband/acc/rte_vrb_pmd.c | 2 ++ 1 file changed, 2 insertions(+)
Signature · 1 line
2.34.1
PATCH 1/1 baseband/acc: fix queue setup failure clean up
Incomplete clean up for vrb2 variant when queue setup fails to complete successfully.
--- drivers/baseband/acc/rte_vrb_pmd.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/baseband/acc/rte_vrb_pmd.c +2 -0
@@ -1156,6 +1156,8 @@ vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, free_q:rte_free (q); q =NULL ; +if (d->device_variant ==VRB2_VARIANT ) + d->queue_index[conf->op_type]--;return ret; }
Signature · 1 line
2.34.1
Recheck-request: iol-intel-Performance
There was an infra failure with the Arm Grace server about 12 hours ago which caused this failure - sending a retest request.
Quoted 16 lines · Nicolas Chautru
Incomplete clean up for vrb2 variant when queue setup fails to complete successfully.
Fixes fc65d3dcabe01 ("baseband/acc: refactor queue allocation")Signed-off-by Nicolas Chautru <[email protected]>--- drivers/baseband/acc/rte_vrb_pmd.c | 2 ++ 1 file changed, 2 insertions(+)drivers/baseband/acc/rte_vrb_pmd.c +0
-0
drivers/baseband/acc/rte_vrb_pmd.c vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, · line 1163
Quoted 8 lines
drivers/baseband/acc/rte_vrb_pmd.c +2
-0@@ -1156,6 +1156,8 @@ vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id, free_q:rte_free (q); q =NULL ; +if (d->device_variant ==VRB2_VARIANT ) + d->queue_index[conf->op_type]--;return ret; }
Thanks,
Maxime
Maxime Coquelin
AppliedQuoted 30 lines · Maxime Coquelin
Quoted 17 lines · Nicolas Chautru
Incomplete clean up for vrb2 variant when queue setup fails to complete successfully.
Fixes fc65d3dcabe01 ("baseband/acc: refactor queue allocation")Signed-off-by Nicolas Chautru <[email protected]>---
drivers/baseband/acc/rte_vrb_pmd.c| 2 ++1 file changed, 2 insertions(+)drivers/baseband/acc/rte_vrb_pmd.c +0
-0@@ -1156,6 +1156,8 @@ vrb_queue_setup(struct rte_bbdev *dev, uint16_t queue_id,Quoted 7 lines
free_q:
rte_free(q);
q = NULL;
+ if (d->device_variant==VRB2_VARIANT)
+ d->queue_index[conf->op_type]--;
return ret;
}Reviewed-by Maxime Coquelin <[email protected]>
Quoted 3 lines
Thanks,
Maxime
Applied to next-baseband.
Thanks,
Maxime