From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Nicolas Chautru <nicolas.chautru@intel.com>, dev@dpdk.org
Cc: hemant.agrawal@nxp.com, hernan.vargas@intel.com, stable@dpdk.org
Subject: Re: [PATCH v2 1/1] baseband/acc: fix ring memory allocation logic
Date: Fri, 8 Nov 2024 10:00:32 +0100 [thread overview]
Message-ID: <0e6b5b47-f323-41d6-a191-e5c2fedb11b2@redhat.com> (raw)
In-Reply-To: <20241108003238.1921588-2-nicolas.chautru@intel.com>
On 11/8/24 01:32, Nicolas Chautru wrote:
> Allowing ring memory allocation whose end address is aligned with 64 MB.
> Previous logic was off by one.
>
> Fixes: 060e76729302 ("baseband/acc100: add queue configuration")
> Cc: stable@dpdk.org
>
> Signed-off-by: Nicolas Chautru <nicolas.chautru@intel.com>
> ---
> drivers/baseband/acc/acc_common.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/baseband/acc/acc_common.h b/drivers/baseband/acc/acc_common.h
> index 4c60b7896b..bf218332be 100644
> --- a/drivers/baseband/acc/acc_common.h
> +++ b/drivers/baseband/acc/acc_common.h
> @@ -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
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
next prev parent reply other threads:[~2024-11-08 9:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20241108003238.1921588-1-nicolas.chautru@intel.com>
2024-11-08 0:32 ` Nicolas Chautru
2024-11-08 9:00 ` Maxime Coquelin [this message]
2024-11-08 10:32 ` Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0e6b5b47-f323-41d6-a191-e5c2fedb11b2@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=dev@dpdk.org \
--cc=hemant.agrawal@nxp.com \
--cc=hernan.vargas@intel.com \
--cc=nicolas.chautru@intel.com \
--cc=stable@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).