]> git.baikalelectronics.ru Git - kernel.git/commit
octeontx2-af: cn10k: Support configurable LMTST regions
authorGeetha sowjanya <gakula@marvell.com>
Tue, 29 Jun 2021 17:00:05 +0000 (22:30 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Jul 2021 18:27:57 +0000 (11:27 -0700)
commitb652166fbf09596eb5d3e08523b702dc7f7ad557
treeb1ebaa2ca7ca3f5020c004e17a78f01450bd88e9
parent52fc683d60e2f7c04e2d3d222f43d98992703034
octeontx2-af: cn10k: Support configurable LMTST regions

This patch extends the lmtst_tbl_setup_req mbox to support run time
LMTST configuration.
RVU PF/VF and DPDK/ODP allocates a LMT region, creates a translation
entry for a device via VFIO IOCTLs.
This IOVA is shared with AF through above mbox. AF then uses
RVU_SMMU transulation Widget and gets PA for the IOVA and updates
the LMTtable entry for that device.

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>
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
drivers/net/ethernet/marvell/octeontx2/af/rvu_cn10k.c
drivers/net/ethernet/marvell/octeontx2/af/rvu_reg.h