DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: pbhagavatula@marvell.com
Cc: jerinj@marvell.com, Nithin Dabilpuram <ndabilpuram@marvell.com>,
	 Kiran Kumar K <kirankumark@marvell.com>,
	Sunil Kumar Kori <skori@marvell.com>,
	 Satha Rao <skoteshwar@marvell.com>,
	Harman Kalra <hkalra@marvell.com>,
	 Vamsi Attunuru <vattunuru@marvell.com>,
	dev@dpdk.org,  Amit Prakash Shukla <amitprakashs@marvell.com>
Subject: Re: [PATCH] dma/cnxk: add higher chunk size support
Date: Fri, 24 May 2024 18:46:51 +0530	[thread overview]
Message-ID: <CALBAE1N4XPnn1togOd1yqAw5i91YGrF1D=GfarWhgiDf+XSRjw@mail.gmail.com> (raw)
In-Reply-To: <20240522144520.1907-1-pbhagavatula@marvell.com>

On Wed, May 22, 2024 at 8:15 PM <pbhagavatula@marvell.com> wrote:
>
> From: Pavan Nikhilesh <pbhagavatula@marvell.com>
>
> Add support to configure higher chunk size by using the new
> OPEN_V2 mailbox, this improves performance as the number of
> mempool allocs are reduced.
>
> Signed-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
> Signed-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>
> ---
>  drivers/common/cnxk/roc_dpi.c      | 39 ++++++++++++++++++++++++++++++
>  drivers/common/cnxk/roc_dpi.h      |  2 ++
>  drivers/common/cnxk/roc_dpi_priv.h |  1 +
>  drivers/common/cnxk/version.map    |  1 +
>  drivers/dma/cnxk/cnxk_dmadev.c     | 31 ++++++++++++++++--------
>  drivers/dma/cnxk/cnxk_dmadev.h     |  1 +

New feature spotted, please update release note for PMD specific API.

>  6 files changed, 65 insertions(+), 10 deletions(-)

> +
> +int
> +roc_dpi_configure_v2(struct roc_dpi *roc_dpi, uint32_t chunk_sz, uint64_t aura, uint64_t chunk_base)
> +{
> +       struct plt_pci_device *pci_dev;
> +       dpi_mbox_msg_t mbox_msg;
> +       uint64_t reg;
> +       int rc;
> +
> +       if (!roc_dpi) {
> +               plt_err("roc_dpi is NULL");
> +               return -EINVAL;
> +       }
> +
> +       pci_dev = roc_dpi->pci_dev;
> +
> +       roc_dpi_disable(roc_dpi);
> +       reg = plt_read64(roc_dpi->rbase + DPI_VDMA_SADDR);
> +       while (!(reg & BIT_ULL(63)))
> +               reg = plt_read64(roc_dpi->rbase + DPI_VDMA_SADDR);

Is timeout needed?

  reply	other threads:[~2024-05-24 13:17 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-22 14:45 pbhagavatula
2024-05-24 13:16 ` Jerin Jacob [this message]
2024-05-27 12:24 ` [PATCH v2] " pbhagavatula
2024-05-28  8:45   ` Jerin Jacob

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='CALBAE1N4XPnn1togOd1yqAw5i91YGrF1D=GfarWhgiDf+XSRjw@mail.gmail.com' \
    --to=jerinjacobk@gmail.com \
    --cc=amitprakashs@marvell.com \
    --cc=dev@dpdk.org \
    --cc=hkalra@marvell.com \
    --cc=jerinj@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    --cc=pbhagavatula@marvell.com \
    --cc=skori@marvell.com \
    --cc=skoteshwar@marvell.com \
    --cc=vattunuru@marvell.com \
    /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).