diff options
author | Jorgen Hansen <jhansen@vmware.com> | 2022-02-07 13:27:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-08 14:15:59 +0300 |
commit | 22aa5c7f323022477b70e044eb00e6bfea9498e8 (patch) | |
tree | 9770b608576f2f8669badc76cfd21461548660de /include/linux/dma-heap.h | |
parent | 5ee109828e73bbe4213c373988608d8f33e03d78 (diff) | |
download | linux-22aa5c7f323022477b70e044eb00e6bfea9498e8.tar.xz |
VMCI: dma dg: add support for DMA datagrams sends
Use DMA based send operation from the transmit buffer instead of the
iowrite8_rep based datagram send when DMA datagrams are supported.
The outgoing datagram is sent as inline data in the VMCI transmit
buffer. Once the header has been configured, the send is initiated
by writing the lower 32 bit of the buffer base address to the
VMCI_DATA_OUT_LOW_ADDR register. Only then will the device process
the header and the datagram itself. Following that, the driver busy
waits (it isn't possible to sleep on the send path) for the header
busy flag to change - indicating that the send is complete.
Reviewed-by: Vishnu Dasa <vdasa@vmware.com>
Signed-off-by: Jorgen Hansen <jhansen@vmware.com>
Link: https://lore.kernel.org/r/20220207102725.2742-8-jhansen@vmware.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/dma-heap.h')
0 files changed, 0 insertions, 0 deletions