bus/fslmc: run secondary debug app without restriction
authorRohit Raj <rohit.raj@nxp.com>
Thu, 24 Sep 2020 04:02:05 +0000 (09:32 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 12:43:40 +0000 (14:43 +0200)
commit7807a4fd386532d39aabfd94c08cf098f2eec3f0
treee169c3c1d4b6c0c6fb4d017d9fcb274ff70af741
parent8bd11d45d53d66da5e2adb7faf2ea64b36120f60
bus/fslmc: run secondary debug app without restriction

dpaa2 hw impose limits on some HW access devices like DPMCP(Management
control Port) and DPIO (HW portal). This causes issue in their shared
usages in case of multi-process applications. It can overcome by using
whitelist/blacklist in primary and secondary applications.
However it imposes restrictions on standard debugging apps like
dpdk-procinfo, which can be used to debug any existing application.

This patch introduces reserving extra DPMCP and DPIO to be used by
secondary process if devices are not blocked previously in primary
application.
This leaves the last DPMCP and DPIO for the secondary process usages.

Signed-off-by: Rohit Raj <rohit.raj@nxp.com>
Signed-off-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
doc/guides/nics/dpaa2.rst
drivers/bus/fslmc/fslmc_vfio.c