MLK-20886-5 imx8qm/qxp: Implement VService function and buffer pagetable
authorYe Li <ye.li@nxp.com>
Thu, 31 Jan 2019 06:09:23 +0000 (22:09 -0800)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 11:28:16 +0000 (04:28 -0700)
commit8c407ea63ad7c7cf59eb6d8b96766cd163026d82
tree69fe1373aa5f042722cc5ed52b0de579b95eb1ea
parent3624faca59ed1dda7cd5f9c688598ea4941cac61
MLK-20886-5 imx8qm/qxp: Implement VService function and buffer pagetable

Override the board_imx_vservice_find_mu for finding MU device for
virtual devices. The matching logic is if the M4_0 partition ownes
the resource of the device, we select MU8 for this Vservice channel.
Otherwise, if the M4_1 partition ownes the resource, we select MU9.

We reuse the kernel RPMSG Vring buffer for VService buffer, because it is
shared between OS partition and M4 partition. The pagetable is needed for
this region, since it is not in memregs of OS partition.

board_imx_vservice_get_buffer is also overriden is this patch to divide
VService buffer for MU8 and MU9.

Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit 4358b4cdfc4752822066d480dd1c10086c211be7)
arch/arm/mach-imx/imx8/cpu.c