linux_dsm_epyc7002/drivers/soc/fsl/qbman
Laurentiu Tudor 5d1d046e28 soc: fsl: qbman_portals: add APIs to retrieve the probing status
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>
2019-05-20 14:28:16 -05:00
..
bman_ccsr.c soc: fsl: qbman: add APIs to retrieve the probing status 2018-09-27 15:43:35 -05:00
bman_portal.c soc: fsl: qbman_portals: add APIs to retrieve the probing status 2019-05-20 14:28:16 -05:00
bman_priv.h soc/fsl/qbman: Rework portal mapping calls for ARM/PPC 2017-09-22 13:33:07 -05:00
bman_test_api.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.c soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman_test.h soc/bman: Add self-test for BMan driver 2016-09-25 02:38:59 -05:00
bman.c soc: fsl: qbman: Check if CPU is offline when initializing portals 2018-10-05 14:01:46 -05:00
dpaa_sys.c cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
dpaa_sys.h soc: fsl: qbman: Check if CPU is offline when initializing portals 2018-10-05 14:01:46 -05:00
Kconfig soc: fsl: qbman: Add 64 bit DMA addressing requirement to QBMan 2018-10-05 14:01:46 -05:00
Makefile ARM: SoC driver updates for v4.15 2017-11-16 16:05:01 -08:00
qman_ccsr.c soc: fsl: qman: fixup liodns only on ppc targets 2019-05-20 14:28:16 -05:00
qman_portal.c soc: fsl: qbman_portals: add APIs to retrieve the probing status 2019-05-20 14:28:16 -05:00
qman_priv.h soc: fsl: qman: fixup liodns only on ppc targets 2019-05-20 14:28:16 -05:00
qman_test_api.c soc/qman: Handle endianness of h/w descriptors 2016-11-23 21:01:25 -06:00
qman_test_stash.c soc/fsl/qman: test: use DEFINE_SPINLOCK() 2016-12-09 23:08:52 -06:00
qman_test.c soc/qman: Add self-test for QMan driver 2016-09-25 02:39:00 -05:00
qman_test.h soc/fsl/qbman: Use shared-dma-pool for QMan private memory allocations 2017-09-22 13:33:07 -05:00
qman.c soc: fsl: qbman: avoid race in clearing QMan interrupt 2019-01-18 16:48:35 -06:00