]> asedeno.scripts.mit.edu Git - linux.git/commit
bus: mc-bus: Add support for mapping shareable portals
authorRoy Pledge <roy.pledge@nxp.com>
Fri, 5 Apr 2019 14:41:11 +0000 (14:41 +0000)
committerLi Yang <leoyang.li@nxp.com>
Mon, 20 May 2019 19:28:16 +0000 (14:28 -0500)
commitdde2137d62b2d707c1b80f3c1f3182c3558dfa88
treeba1411ceefcadcc02d05ca48222ce086e9735c09
parentd31beda2bcea55461289ebe73fb7fe11658b1c45
bus: mc-bus: Add support for mapping shareable portals

Starting with v5 of NXP QBMan devices the hardware supports using
regular cacheable/shareable memory as the backing store for the
portals.

This patch adds support for the new portal mode by switching to
use the DPRC get object region v2 command which returns both
a base address and offset for the portal memory. The new portal
region is identified as shareable through the addition of a new
flag.

Signed-off-by: Roy Pledge <roy.pledge@nxp.com>
Reviewed-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
drivers/bus/fsl-mc/dprc.c
drivers/bus/fsl-mc/fsl-mc-bus.c
drivers/bus/fsl-mc/fsl-mc-private.h