mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 19:55:28 +07:00
5d1d046e28
Add a couple of new APIs to check the probing status of the required cpu bound qman and bman portals: 'int bman_portals_probed()' and 'int qman_portals_probed()'. They return the following values. * 1 if qman/bman portals were all probed correctly * 0 if qman/bman portals were not yet probed * -1 if probing of qman/bman portals failed Portals are considered successful probed if no error occurred during the probing of any of the portals and if enough portals were probed to have one available for each cpu. The error handling paths were slightly rearranged in order to fit this new functionality without being too intrusive. Drivers that use qman/bman portal driver services are required to use these APIs before calling any functions exported by these drivers or otherwise they will crash the kernel. First user will be the dpaa1 ethernet driver, coming in a subsequent patch. Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com> Signed-off-by: Li Yang <leoyang.li@nxp.com> |
||
---|---|---|
.. | ||
bman_ccsr.c | ||
bman_portal.c | ||
bman_priv.h | ||
bman_test_api.c | ||
bman_test.c | ||
bman_test.h | ||
bman.c | ||
dpaa_sys.c | ||
dpaa_sys.h | ||
Kconfig | ||
Makefile | ||
qman_ccsr.c | ||
qman_portal.c | ||
qman_priv.h | ||
qman_test_api.c | ||
qman_test_stash.c | ||
qman_test.c | ||
qman_test.h | ||
qman.c |