Commit faf23006 authored by Geetha sowjanya's avatar Geetha sowjanya Committed by Paolo Abeni
Browse files

octeontx2-af: Fix NIX SQ mode and BP config



NIX SQ mode and link backpressure configuration is required for
all platforms. But in current driver this code is wrongly placed
under specific platform check. This patch fixes the issue by
moving the code out of platform check.

Fixes: 5d9b976d ("octeontx2-af: Support fixed transmit scheduler topology")
Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
Link: https://lore.kernel.org/r/20240408063643.26288-1-gakula@marvell.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent b46f4eaa
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -4819,6 +4819,7 @@ static int rvu_nix_block_init(struct rvu *rvu, struct nix_hw *nix_hw)
		 */
		rvu_write64(rvu, blkaddr, NIX_AF_CFG,
			    rvu_read64(rvu, blkaddr, NIX_AF_CFG) | 0x40ULL);
	}

	/* Set chan/link to backpressure TL3 instead of TL2 */
	rvu_write64(rvu, blkaddr, NIX_AF_PSE_CHANNEL_LEVEL, 0x01);
@@ -4830,7 +4831,6 @@ static int rvu_nix_block_init(struct rvu *rvu, struct nix_hw *nix_hw)
	cfg = rvu_read64(rvu, blkaddr, NIX_AF_SQM_DBG_CTL_STATUS);
	cfg &= ~BIT_ULL(15);
	rvu_write64(rvu, blkaddr, NIX_AF_SQM_DBG_CTL_STATUS, cfg);
	}

	ltdefs = rvu->kpu.lt_def;
	/* Calibrate X2P bus to check if CGX/LBK links are fine */