1
0
Fork 0
alistair23-linux/drivers/ntb
Logan Gunthorpe 2b97e354e5 NTB: Revert the change to use the NTB device dev for DMA allocations
[ Upstream commit 40da7d9a93 ]

Commit 417cf39cfe ("NTB: Set dma mask and dma coherent mask to NTB
devices") started using the NTB device for DMA allocations which was
turns out was wrong. If the IOMMU is enabled, such alloctanions will
always fail with messages such as:

  DMAR: Allocating domain for 0000:02:00.1 failed

This is because the IOMMU has not setup the device for such use.

Change the tools back to using the PCI device for allocations seeing
it doesn't make sense to add an IOMMU group for the non-physical NTB
device. Also remove the code that sets the DMA mask as it no longer
makes sense to do this.

Fixes: 7f46c8b3a5 ("NTB: ntb_tool: Add full multi-port NTB API support")
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Tested-by: Alexander Fomichev <fomichev.ru@gmail.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:40 +02:00
..
hw NTB: fix IDT Kconfig typos/spellos 2019-09-23 17:20:40 -04:00
test NTB: ntb_tool: reading the link file should not end in a NULL byte 2020-06-24 17:50:40 +02:00
Kconfig New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
Makefile New feature to add support for NTB virtual MSI interrupts, the ability 2019-07-21 09:46:59 -07:00
core.c NTB: Revert the change to use the NTB device dev for DMA allocations 2020-06-24 17:50:40 +02:00
msi.c NTB/msi: remove incorrect MODULE defines 2019-08-05 15:42:27 -04:00
ntb_transport.c NTB: ntb_transport: remove redundant assignment to rc 2019-09-23 17:20:40 -04:00