common/dpaax: fallback to check separate memory node for VM
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 5 Nov 2019 14:23:15 +0000 (19:53 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 6 Nov 2019 00:13:21 +0000 (01:13 +0100)
commitc9d9825bea486d4490a02ce2c5672c5a16891fab
treed1a3b5a5045aacc13217e0be3fda50daa8a77291
parent59267d7b12f8eae11140f6fcf5ebe3f5989c4dfa
common/dpaax: fallback to check separate memory node for VM

In Virtual Machine the memory node in the device tree is at
'/proc/device-tree/memory/reg' which is separate from the memory
node path on the host. This patch enables check on both the paths.

Fixes: 2f3d633aa593 ("common/dpaax: add library for PA/VA translation table")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/common/dpaax/dpaax_iova_table.c
drivers/common/dpaax/dpaax_iova_table.h