DPDK patches and discussions
 help / color / mirror / Atom feed
From: Jerin Jacob <jerinjacobk@gmail.com>
To: Nithin Dabilpuram <nithind1988@gmail.com>
Cc: Jerin Jacob <jerinj@marvell.com>,
	Nithin Dabilpuram <ndabilpuram@marvell.com>,
	 Kiran Kumar K <kirankumark@marvell.com>, dpdk-dev <dev@dpdk.org>,
	 Vamsi Attunuru <vattunuru@marvell.com>,
	dpdk stable <stable@dpdk.org>
Subject: Re: [dpdk-dev] [PATCH] net/octeontx2: fix unnecessary error interrupts
Date: Tue, 14 Apr 2020 21:01:11 +0530	[thread overview]
Message-ID: <CALBAE1Min1fB96xgT0Wi8ytDrqnemiemSpmEPofuEnmRXx7Wow@mail.gmail.com> (raw)
In-Reply-To: <20200413134540.10992-1-nithind1988@gmail.com>

On Mon, Apr 13, 2020 at 7:15 PM Nithin Dabilpuram <nithind1988@gmail.com> wrote:
>
> From: Nithin Dabilpuram <ndabilpuram@marvell.com>
>
> Disable CQ_DISABLED error interrupt in NIX_LF_ERR_INT
> to fix spurious interrupts in event dev mode. Also skip
> configuring RSS when RQ count is '0' because
> RSS table initialization is done incorrectly due to
> divide-by-zero error and it is leading to RQ_OOR error
> in NIX_LF_ERR_INT.
>
> Fixes: 83ce2880e22e ("net/octeontx2: support RSS")
> Cc: vattunuru@marvell.com
> Cc: stable@dpdk.org
>
> Signed-off-by: Nithin Dabilpuram <ndabilpuram@marvell.com>

Acked-by: Jerin Jacob <jerinj@marvell.com>
Applied to dpdk-next-net-mrvl/master. Thanks


> ---
>  drivers/net/octeontx2/otx2_ethdev_irq.c | 7 +++++--
>  drivers/net/octeontx2/otx2_rss.c        | 2 +-
>  2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/octeontx2/otx2_ethdev_irq.c b/drivers/net/octeontx2/otx2_ethdev_irq.c
> index 96b848a..b121488 100644
> --- a/drivers/net/octeontx2/otx2_ethdev_irq.c
> +++ b/drivers/net/octeontx2/otx2_ethdev_irq.c
> @@ -472,9 +472,12 @@ otx2_nix_err_intr_enb_dis(struct rte_eth_dev *eth_dev, bool enb)
>  {
>         struct otx2_eth_dev *dev = otx2_eth_pmd_priv(eth_dev);
>
> -       /* Enable all nix lf error interrupts except for RQ_DISABLED */
> +       /* Enable all nix lf error interrupts except
> +        * RQ_DISABLED and CQ_DISABLED.
> +        */
>         if (enb)
> -               otx2_write64(~BIT_ULL(11), dev->base + NIX_LF_ERR_INT_ENA_W1S);
> +               otx2_write64(~(BIT_ULL(11) | BIT_ULL(24)),
> +                            dev->base + NIX_LF_ERR_INT_ENA_W1S);
>         else
>                 otx2_write64(~0ull, dev->base + NIX_LF_ERR_INT_ENA_W1C);
>  }
> diff --git a/drivers/net/octeontx2/otx2_rss.c b/drivers/net/octeontx2/otx2_rss.c
> index a29441e..5e3f866 100644
> --- a/drivers/net/octeontx2/otx2_rss.c
> +++ b/drivers/net/octeontx2/otx2_rss.c
> @@ -358,7 +358,7 @@ otx2_nix_rss_config(struct rte_eth_dev *eth_dev)
>         int rc;
>
>         /* Skip further configuration if selected mode is not RSS */
> -       if (eth_dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_RSS)
> +       if (eth_dev->data->dev_conf.rxmode.mq_mode != ETH_MQ_RX_RSS || !qcnt)
>                 return 0;
>
>         /* Update default RSS key and cfg */
> --
> 2.8.4
>

      reply	other threads:[~2020-04-14 15:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-13 13:45 Nithin Dabilpuram
2020-04-14 15:31 ` Jerin Jacob [this message]

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=CALBAE1Min1fB96xgT0Wi8ytDrqnemiemSpmEPofuEnmRXx7Wow@mail.gmail.com \
    --to=jerinjacobk@gmail.com \
    --cc=dev@dpdk.org \
    --cc=jerinj@marvell.com \
    --cc=kirankumark@marvell.com \
    --cc=ndabilpuram@marvell.com \
    --cc=nithind1988@gmail.com \
    --cc=stable@dpdk.org \
    --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).