]> git.baikalelectronics.ru Git - kernel.git/commit
cxl: Enable bus mastering for devices using CAPP DMA mode
authorIan Munsie <imunsie@au1.ibm.com>
Wed, 13 Jul 2016 21:17:02 +0000 (07:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Jul 2016 10:26:35 +0000 (20:26 +1000)
commitcc270b06aaffc28d30a7fab897accf432f20f240
tree315d6af3ce690bcace65d8ad10a84868f888e1f9
parent130b8252f5ceab1dbc042837a3f2077f6e08fce2
cxl: Enable bus mastering for devices using CAPP DMA mode

Devices that use CAPP DMA mode (such as the Mellanox CX4) require bus
master to be enabled in order for the CAPI traffic to flow. This should
be harmless to enable for other cxl devices, so unconditionally enable
it in the adapter init flow.

Signed-off-by: Ian Munsie <imunsie@au1.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: Frederic Barrat <fbarrat@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/misc/cxl/pci.c