linux/include/misc
Frederic Barrat 2cb3d64b26 powerpc/powernv: Capture actag information for the device
In the opencapi protocol, host memory contexts are referenced by a
'actag'. During setup, a driver must tell the device how many actags
it can used, and what values are acceptable.

On POWER9, the NPU can handle 64 actags per link, so they must be
shared between all the PCI functions of the link. To get a global
picture of how many actags are used by each AFU of every function, we
capture some data at the end of PCI enumeration, so that actags can be
shared fairly if needed.

This is not powernv specific per say, but rather a consequence of the
opencapi configuration specification being quite general. The number
of available actags on POWER9 makes it more likely to be hit. This is
somewhat mitigated by the fact that existing AFUs are coded by
requesting a reasonable count of actags and existing devices carry
only one AFU.

Signed-off-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-01-24 11:42:57 +11:00
..
altera.h [media] altera-stapl: it is time to move out from staging 2011-09-23 15:00:57 -03:00
charlcd.h auxdisplay: charlcd: Add support for 4-bit interfaces 2017-03-17 15:10:49 +09:00
cxl-base.h cxl: Add support for interrupts on the Mellanox CX4 2016-07-14 20:27:08 +10:00
cxl.h cxl: Add cxl_check_and_switch_mode() API to switch bi-modal cards 2016-07-14 20:28:11 +10:00
cxllib.h cxl: Export library to support IBM XSL 2017-07-03 23:07:03 +10:00
ocxl-config.h powerpc/powernv: Capture actag information for the device 2018-01-24 11:42:57 +11:00