OSDN Git Service

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)
commit893ae97214c385be02f8ec097298cc48c7f0d905
treeb1ebaa2ca7ca3f5020c004e17a78f01450bd88e9
parent873a1e3d207ae587a7a1cc1d84545146b449ea5d
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