common/cnxk: allocate LMT region in userspace
authorHarman Kalra <hkalra@marvell.com>
Wed, 23 Jun 2021 04:46:05 +0000 (10:16 +0530)
committerJerin Jacob <jerinj@marvell.com>
Tue, 29 Jun 2021 18:43:26 +0000 (20:43 +0200)
commit9854e5db5d973e0b59330022cd1bfbb0ff3df3c8
tree85fab1cc4e72d2ca5f1660224c4f8eb0f2a1a126
parent0c22452d475e28e76bafefa6dcd97868a4c772d4
common/cnxk: allocate LMT region in userspace

As per the new LMTST design, userspace shall allocate LMT region,
setup the DMA translation and share the IOVA with kernel via MBOX.
Kernel will convert this IOVA to physical memory and update the
LMT table entry with the same.
With this new design also shared mode (i.e. all pci funcs sharing
the LMT region allocated by primary/base pci func) is intact.

Signed-off-by: Harman Kalra <hkalra@marvell.com>
Reviewed-by: Jerin Jacob <jerinj@marvell.com>
drivers/common/cnxk/roc_api.h
drivers/common/cnxk/roc_dev.c
drivers/common/cnxk/roc_dev_priv.h
drivers/common/cnxk/roc_mbox.h
drivers/common/cnxk/roc_platform.h