Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-16 Thread Bjorn Helgaas
On Fri, Oct 13, 2017 at 06:09:04PM +0200, Niklas Cassel wrote: > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_t

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-16 Thread Niklas Cassel
On 10/13/2017 06:47 PM, Jingoo Han wrote: > On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: >> >> Since it is a PCIe endpoint device, rather than the CPU, that is supposed >> to write to this location, the proper way to get the address to this this >> location is really to use the DMA AP

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-16 Thread Niklas Cassel
On 10/13/2017 06:43 PM, Jingoo Han wrote: > On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: >> >> Since it is a PCIe endpoint device, rather than the CPU, that is supposed >> to write to this location, the proper way to get the address to this this >> location is really to use the DMA AP

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-16 Thread Niklas Cassel
On 10/13/2017 06:42 PM, David Laight wrote: > From: Behalf Of Niklas Cassel >> Sent: 13 October 2017 17:09 >> Since it is a PCIe endpoint device, rather than the CPU, that is supposed >> to write to this location, the proper way to get the address to this this >> location is really to use the DMA A

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread Jingoo Han
On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: > > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to

Re: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread Jingoo Han
On Friday, October 13, 2017 12:09 PM, Niklas Cassel wrote: > > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to

RE: [PATCH 01/10] PCI: dwc: use DMA-API for allocating MSI data

2017-10-13 Thread David Laight
From: Behalf Of Niklas Cassel > Sent: 13 October 2017 17:09 > Since it is a PCIe endpoint device, rather than the CPU, that is supposed > to write to this location, the proper way to get the address to this this > location is really to use the DMA API, rather than virt_to_phys. > > Using virt_to_p