Skip to content

Commit

Permalink
baseband/acc: fix ring memory allocation
Browse files Browse the repository at this point in the history
Allowing ring memory allocation whose end address is aligned with 64 MB.
Previous logic was off by one.

Fixes: 060e767 ("baseband/acc100: add queue configuration")
Cc: stable@dpdk.org

Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
  • Loading branch information
nicolas-chautru authored and mcoquelin committed Nov 8, 2024
1 parent 9235155 commit 0c57098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/baseband/acc/acc_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ alloc_sw_rings_min_mem(struct rte_bbdev *dev, struct acc_device *d,
sw_rings_base, ACC_SIZE_64MBYTE);
next_64mb_align_addr_iova = sw_rings_base_iova +
next_64mb_align_offset;
sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size;
sw_ring_iova_end_addr = sw_rings_base_iova + dev_sw_ring_size - 1;

/* Check if the end of the sw ring memory block is before the
* start of next 64MB aligned mem address
Expand Down

0 comments on commit 0c57098

Please sign in to comment.