octeontx2-pf: cn10k: Use runtime allocated LMTLINE region
The current driver uses static LMTST region allocated by firmware. This memory gets populated as PF/VF BAR2. RVU PF/VF driver ioremap the memory as device memory for NIX/NPA operation. Since the memory is mapped as device memory we see performance degration. To address this issue this patch implements runtime memory allocation. RVU PF/VF allocates memory during device probe and share the base address with RVU AF. RVU AF then configure the LMT MAP table accordingly. Signed-off-by:Geetha sowjanya <gakula@marvell.com> Signed-off-by:
Sunil Kovvuri Goutham <sgoutham@marvell.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.c 35 additions, 52 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/cn10k.c
- drivers/net/ethernet/marvell/octeontx2/nic/cn10k.h 1 addition, 2 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/cn10k.h
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h 4 additions, 3 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c 8 additions, 9 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h 1 addition, 0 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.h
- drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c 5 additions, 7 deletionsdrivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c
Loading
Please register or sign in to comment