Re: [PATCH] NTB: Set dma mask and dma coherent mask to NTB devices

2017-11-30 Thread Logan Gunthorpe
On 30/11/17 02:39 PM, Serge Semin wrote: diff --git a/drivers/ntb/hw/amd/ntb_hw_amd.c b/drivers/ntb/hw/amd/ntb_hw_amd.c index f0788aae05c9..3cfa46876239 100644 --- a/drivers/ntb/hw/amd/ntb_hw_amd.c +++ b/drivers/ntb/hw/amd/ntb_hw_amd.c @@ -1020,6 +1020,10 @@ static int amd_ntb_init_pci(struct a

[PATCH] NTB: Set dma mask and dma coherent mask to NTB devices

2017-11-30 Thread Serge Semin
The dma_mask and dma_coherent_mask fields of the NTB struct device weren't initialized in hardware drivers. In fact it should be done instead of PCIe interface usage, since NTB clients are supposed to use NTB API and left unaware of real hardware implementation. In addition to that ntb_device_regis