Octeontx2-af: Fix NIX X2P calibration failures
authorHariprasad Kelam <hkelam@marvell.com>
Fri, 22 Aug 2025 10:58:05 +0000 (16:28 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Aug 2025 00:05:38 +0000 (17:05 -0700)
commitd280233fc86692f495d5e08092e5422bc2f583a8
tree26b5f32b8492c5763e1c3de18d700f539d73c036
parentec79003c5f9d2c7f9576fc69b8dbda80305cbe3a
Octeontx2-af: Fix NIX X2P calibration failures

Before configuring the NIX block, the AF driver initiates the
"NIX block X2P bus calibration" and verifies that NIX interfaces
such as CGX and LBK are active and functioning correctly.

On few silicon variants(CNF10KA and CNF10KB), X2P calibration failures
have been observed on some CGX blocks that are not mapped to the NIX block.

Since both NIX-mapped and non-NIX-mapped CGX blocks share the same
VENDOR,DEVICE,SUBSYS_DEVID, it's not possible to skip probe based on
these parameters.

This patch introuduces "is_cgx_mapped_to_nix" API to detect and skip
probe of non NIX mapped CGX blocks.

Fixes: aba53d5dbcea ("octeontx2-af: NIX block admin queue init")
Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Link: https://patch.msgid.link/20250822105805.2236528-1-hkelam@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
drivers/net/ethernet/marvell/octeontx2/af/rvu.h