[15/15] common/cnxk: enable SDP channel backpressure to TL4

Message ID 20230303081013.589868-15-ndabilpuram@marvell.com (mailing list archive)
State Accepted, archived
Delegated to: Jerin Jacob
Headers
Series [01/15] net/cnxk: resolve sefgault caused during transmit completion |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail Compilation issues
ci/github-robot: build success github build: passed
ci/loongarch-compilation fail ninja build failure

Commit Message

Nithin Dabilpuram March 3, 2023, 8:10 a.m. UTC
  From: Veerasenareddy Burru <vburru@marvell.com>

Configure TL4 to respond to SDP channel backpressure.

Signed-off-by: Veerasenareddy Burru <vburru@marvell.com>
---
 drivers/common/cnxk/roc_nix_tm_utils.c | 4 ++++
 1 file changed, 4 insertions(+)
  

Comments

Jerin Jacob March 6, 2023, 9:55 a.m. UTC | #1
On Fri, Mar 3, 2023 at 1:42 PM Nithin Dabilpuram
<ndabilpuram@marvell.com> wrote:
>
> From: Veerasenareddy Burru <vburru@marvell.com>
>
> Configure TL4 to respond to SDP channel backpressure.
>
> Signed-off-by: Veerasenareddy Burru <vburru@marvell.com>

Changed git commit logs and added Fixes: as needed.

Series applied to dpdk-next-net-mrvl/for-next-net. Thanks


> ---
>  drivers/common/cnxk/roc_nix_tm_utils.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/common/cnxk/roc_nix_tm_utils.c b/drivers/common/cnxk/roc_nix_tm_utils.c
> index a7ba2bf027..5864833109 100644
> --- a/drivers/common/cnxk/roc_nix_tm_utils.c
> +++ b/drivers/common/cnxk/roc_nix_tm_utils.c
> @@ -582,8 +582,12 @@ nix_tm_topology_reg_prep(struct nix *nix, struct nix_tm_node *node,
>
>                 /* Configure TL4 to send to SDP channel instead of CGX/LBK */
>                 if (nix->sdp_link) {
> +                       plt_tm_dbg("relchan=%u schq=%u tx_chan_cnt=%u\n", relchan, schq,
> +                                  nix->tx_chan_cnt);
>                         reg[k] = NIX_AF_TL4X_SDP_LINK_CFG(schq);
>                         regval[k] = BIT_ULL(12);
> +                       regval[k] |= BIT_ULL(13);
> +                       regval[k] |= relchan;
>                         k++;
>                 }
>                 break;
> --
> 2.25.1
>
  

Patch

diff --git a/drivers/common/cnxk/roc_nix_tm_utils.c b/drivers/common/cnxk/roc_nix_tm_utils.c
index a7ba2bf027..5864833109 100644
--- a/drivers/common/cnxk/roc_nix_tm_utils.c
+++ b/drivers/common/cnxk/roc_nix_tm_utils.c
@@ -582,8 +582,12 @@  nix_tm_topology_reg_prep(struct nix *nix, struct nix_tm_node *node,
 
 		/* Configure TL4 to send to SDP channel instead of CGX/LBK */
 		if (nix->sdp_link) {
+			plt_tm_dbg("relchan=%u schq=%u tx_chan_cnt=%u\n", relchan, schq,
+				   nix->tx_chan_cnt);
 			reg[k] = NIX_AF_TL4X_SDP_LINK_CFG(schq);
 			regval[k] = BIT_ULL(12);
+			regval[k] |= BIT_ULL(13);
+			regval[k] |= relchan;
 			k++;
 		}
 		break;