[15/15] common/cnxk: enable SDP channel backpressure to TL4
Checks
Commit Message
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
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
>
@@ -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;