* [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode
@ 2024-03-26 5:27 Hariprasad Kelam
2024-03-27 14:26 ` Simon Horman
2024-03-28 11:00 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Hariprasad Kelam @ 2024-03-26 5:27 UTC (permalink / raw)
To: netdev, linux-kernel
Cc: kuba, davem, sgoutham, gakula, jerinj, lcherian, sbhatta, hkelam,
naveenm, edumazet, pabeni
The Octeontx2 MAC block (CGX) has separate data paths (SMU and GMP) for
different speeds, allowing for efficient data transfer.
The previous patch which added pause frame configuration has a bug due
to which pause frame feature is not working in GMP mode.
This patch fixes the issue by configurating appropriate registers.
Fixes: f7e086e754fe ("octeontx2-af: Pause frame configuration at cgx")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/af/cgx.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c
index 3c0f55b3e48e..b86f3224f0b7 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/cgx.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/cgx.c
@@ -808,6 +808,11 @@ static int cgx_lmac_enadis_pause_frm(void *cgxd, int lmac_id,
if (!is_lmac_valid(cgx, lmac_id))
return -ENODEV;
+ cfg = cgx_read(cgx, lmac_id, CGXX_GMP_GMI_RXX_FRM_CTL);
+ cfg &= ~CGX_GMP_GMI_RXX_FRM_CTL_CTL_BCK;
+ cfg |= rx_pause ? CGX_GMP_GMI_RXX_FRM_CTL_CTL_BCK : 0x0;
+ cgx_write(cgx, lmac_id, CGXX_GMP_GMI_RXX_FRM_CTL, cfg);
+
cfg = cgx_read(cgx, lmac_id, CGXX_SMUX_RX_FRM_CTL);
cfg &= ~CGX_SMUX_RX_FRM_CTL_CTL_BCK;
cfg |= rx_pause ? CGX_SMUX_RX_FRM_CTL_CTL_BCK : 0x0;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode
2024-03-26 5:27 [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode Hariprasad Kelam
@ 2024-03-27 14:26 ` Simon Horman
2024-03-28 11:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2024-03-27 14:26 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: netdev, linux-kernel, kuba, davem, sgoutham, gakula, jerinj,
lcherian, sbhatta, naveenm, edumazet, pabeni
On Tue, Mar 26, 2024 at 10:57:20AM +0530, Hariprasad Kelam wrote:
> The Octeontx2 MAC block (CGX) has separate data paths (SMU and GMP) for
> different speeds, allowing for efficient data transfer.
>
> The previous patch which added pause frame configuration has a bug due
> to which pause frame feature is not working in GMP mode.
>
> This patch fixes the issue by configurating appropriate registers.
>
> Fixes: f7e086e754fe ("octeontx2-af: Pause frame configuration at cgx")
> Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
nit: For consistency with git history,
octeontx2-af should be all lowercase in the subject
Reviewed-by: Simon Horman <horms@kernel.org>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode
2024-03-26 5:27 [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode Hariprasad Kelam
2024-03-27 14:26 ` Simon Horman
@ 2024-03-28 11:00 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-03-28 11:00 UTC (permalink / raw)
To: Hariprasad Kelam
Cc: netdev, linux-kernel, kuba, davem, sgoutham, gakula, jerinj,
lcherian, sbhatta, naveenm, edumazet, pabeni
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:
On Tue, 26 Mar 2024 10:57:20 +0530 you wrote:
> The Octeontx2 MAC block (CGX) has separate data paths (SMU and GMP) for
> different speeds, allowing for efficient data transfer.
>
> The previous patch which added pause frame configuration has a bug due
> to which pause frame feature is not working in GMP mode.
>
> This patch fixes the issue by configurating appropriate registers.
>
> [...]
Here is the summary with links:
- [net] Octeontx2-af: fix pause frame configuration in GMP mode
https://git.kernel.org/netdev/net/c/40d4b4807cad
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-03-28 11:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-26 5:27 [net PATCH] Octeontx2-af: fix pause frame configuration in GMP mode Hariprasad Kelam
2024-03-27 14:26 ` Simon Horman
2024-03-28 11:00 ` patchwork-bot+netdevbpf
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).