Skip to contentSkip to conversation

baseband/acc: fix queue setup failure clean up

PATCH Applied Nicolas Chautru 3 participants 5 messages Mar 5, 2025 – Mar 12, 2025

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

PATCH 1/1 baseband/acc: fix queue setup failure clean up

Incomplete clean up for vrb2 variant when queue setup fails to complete successfully.

Fixes fc65d3dcabe01 ("baseband/acc: refactor queue allocation")
---
 drivers/baseband/acc/rte_vrb_pmd.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/baseband/acc/rte_vrb_pmd.c +2 -0
index 27620ccc10..2c10ef2c94 100644
@@ -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
#2 lore raw

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.

Reviewed-by on v1 1/1
#3 lore raw
In reply to Nicolas Chautru
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")
---
  drivers/baseband/acc/rte_vrb_pmd.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/baseband/acc/rte_vrb_pmd.c +0 -0
index 27620ccc10..2c10ef2c94 100644

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

#4 lore raw
Quoted 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")

---
  drivers/baseband/acc/rte_vrb_pmd.c | 2 ++

  1 file changed, 2 insertions(+)
drivers/baseband/acc/rte_vrb_pmd.c +0 -0
index 27620ccc10..2c10ef2c94 100644
@@ -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;
  }

Quoted 3 lines

Thanks,
Maxime

Applied to next-baseband.

Thanks,
Maxime