diff options
| author | Ratheesh Kannoth <rkannoth@marvell.com> | 2026-09-04 14:21:13 +0530 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2026-09-10 08:02:06 -0700 |
| commit | 4f4b743c2d2bbc336cb164d9d3d2ed6956ad8437 (patch) | |
| tree | 7234cccade054ae2d9331ff8f8d2adeef5b05526 /scripts/basic | |
| parent | 985a663bf00799c1daf1c5789efa6406958780c8 (diff) | |
| download | linux-4f4b743c2d2bbc336cb164d9d3d2ed6956ad8437.tar.gz linux-4f4b743c2d2bbc336cb164d9d3d2ed6956ad8437.zip | |
octeontx2-af: fix PF/CGX debugfs PCI bus lookup
rvu_dbg_rvu_pf_cgx_map_display() locates each RVU PF PCI device via
pci_get_domain_bus_and_slot() when printing the PF-to-CGX map. It
assumed PF0 always sits on PCI bus 1 and derived other PF bus numbers
as pf + 1, but the AF device can be enumerated on a different bus.
Use rvu->pdev->bus->number as the base bus instead, so each PF lookup
uses pf + start on systems where RVU functions are on contiguous buses
but do not start at bus 1.
Fixes: e2fb373038654 ("octeontx2-af: Display CGX, NIX and PF map in debugfs.")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: Ratheesh Kannoth <rkannoth@marvell.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260904085114.3385530-1-rkannoth@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
