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)
commit06d5038a472f07385f58c82eba6aadb162a5b4f1
tree125c968aabad55252b6dd970387011009220cf70
parent365fb925d3b39e10b781e0662c2b57e8303b2147
bus/dpaa: optimize physical to virtual address search

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>
drivers/bus/dpaa/rte_dpaa_bus.h
drivers/mempool/dpaa/dpaa_mempool.c
drivers/mempool/dpaa/rte_mempool_dpaa_version.map