bus/fslmc: fix to use correct physical core for logical core
authorHemant Agrawal <hemant.agrawal@nxp.com>
Fri, 11 Jan 2019 12:24:12 +0000 (12:24 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit69a63c17fe79190b5caf6f91b02592106b96ce63
treefc0ba6ae1fb8c9431916c4d0b905cefbb27d844e
parent2557cf8f9e5b187622d8a863e0f452773f5e0082
bus/fslmc: fix to use correct physical core for logical core

Existing code is using the lcore id as the physical core
id. Add code to get the right physical id.

Also, dpaa2 can not support one lcore mapping to multiple cpus,
print err on such cases.

Fixes: ce9efbf5bb09 ("bus/fslmc: support dynamic logging")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c