]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Restore I/O MMU, s390 and powerpc support
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 7 Mar 2017 22:56:53 +0000 (22:56 +0000)
committerDoug Ledford <dledford@redhat.com>
Sat, 25 Mar 2017 01:51:16 +0000 (21:51 -0400)
commitc562555540ede2f15a1d7d1920cfd093caf2cf56
tree777b4b3dfda9bfc296a8c81f31c347213abf1345
parent3bf6ee8466597716e6beab8e724c22dbaa0dc469
IB/core: Restore I/O MMU, s390 and powerpc support

Avoid that the following error message is reported on the console
while loading an RDMA driver with I/O MMU support enabled:

DMAR: Allocating domain for mlx5_0 failed

Ensure that DMA mapping operations that use to_pci_dev() to
access to struct pci_dev see the correct PCI device. E.g. the s390
and powerpc DMA mapping operations use to_pci_dev() even with I/O
MMU support disabled.

This patch preserves the following changes of the DMA mapping updates
patch series:
- Introduction of dma_virt_ops.
- Removal of ib_device.dma_ops.
- Removal of struct ib_dma_mapping_ops.
- Removal of an if-statement from each ib_dma_*() operation.
- IB HW drivers no longer set dma_device directly.

Reported-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Reported-by: Parav Pandit <parav@mellanox.com>
Fixes: commit 10574d99d8e9 ("IB/core: Remove ib_device.dma_device")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: parav@mellanox.com
Tested-by: parav@mellanox.com
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h