mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Reviewed-by: Andrew Donnellan <[email protected]> Reviewed-by: Frederic Barrat <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
This commit is contained in:
parent
4e56f858bd
commit
48b3adf334
1 changed files with 3 additions and 0 deletions
|
|
@ -1264,6 +1264,9 @@ static int cxl_configure_adapter(struct cxl *adapter, struct pci_dev *dev)
|
|||
if ((rc = adapter->native->sl_ops->adapter_regs_init(adapter, dev)))
|
||||
goto err;
|
||||
|
||||
/* Required for devices using CAPP DMA mode, harmless for others */
|
||||
pci_set_master(dev);
|
||||
|
||||
if ((rc = pnv_phb_to_cxl_mode(dev, adapter->native->sl_ops->capi_mode)))
|
||||
goto err;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue