linux/drivers/ntb
Logan Gunthorpe 2b0569b3b7 NTB: Add MSI interrupt support to ntb_transport
Introduce the module parameter 'use_msi' which, when set, uses
MSI interrupts instead of doorbells for each queue pair (QP). The
parameter is only available if NTB MSI support is configured into
the kernel. We also require there to be more than one memory window
(MW) so that an extra one is available to forward the APIC region.

To use MSIs, we request one interrupt per QP and forward the MSI address
and data to the peer using scratch pad registers (SPADS) above the MW
SPADS. (If there are not enough SPADS the MSI interrupt will not be used.)

Once registered, we simply use ntb_msi_peer_trigger and the receiving
ISR simply queues up the rxc_db_work for the queue.

This addition can significantly improve performance of ntb_transport.
In a simple, untuned, apples-to-apples comparision using ntb_netdev
and iperf with switchtec hardware, I see 3.88Gb/s without MSI
interrupts and 14.1Gb/s wit MSI, which is a more than 3x improvement.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Cc: Dave Jiang <dave.jiang@intel.com>
Cc: Allen Hubbe <allenbh@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2019-06-13 09:03:04 -04:00
..
hw ntb_hw_switchtec: Fix setup MW with failure bug 2019-06-13 08:59:31 -04:00
test NTB: Introduce NTB MSI Test Client 2019-06-13 09:02:51 -04:00
core.c NTB: Rename ntb.c to support multiple source files in the module 2019-06-13 09:02:02 -04:00
Kconfig NTB: Introduce MSI library 2019-06-13 09:02:33 -04:00
Makefile NTB: Introduce MSI library 2019-06-13 09:02:33 -04:00
msi.c NTB: Introduce MSI library 2019-06-13 09:02:33 -04:00
ntb_transport.c NTB: Add MSI interrupt support to ntb_transport 2019-06-13 09:03:04 -04:00