bus/dpaa: optimize physical to virtual address search
authorShreyansh Jain <shreyansh.jain@nxp.com>
Fri, 27 Apr 2018 17:20:58 +0000 (22:50 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 27 Apr 2018 19:41:33 +0000 (21:41 +0200)
With Hotplugging memory support, the order of memseg has been changed
from physically contiguous to virtual contiguous. DPAA bus and drivers
depend on PA to VA address conversion for I/O.

This patch creates a list of blocks requested to be pinned to the
DPAA mempool. For searching physical addresses, it is expected that
it would belong to this list (from hardware pool) and hence it is
less expensive than memseg walks. Though, there is a marginal drop
in performance vis-a-vis the legacy mode with physically contiguous
memsegs.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>

No differences found