Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-17 Thread Tomasz Nowicki
On 17.05.2016 10:07, Tomasz Nowicki wrote: Hi Lorenzo, On 14.04.2016 19:25, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-17 Thread Tomasz Nowicki
On 17.05.2016 10:07, Tomasz Nowicki wrote: Hi Lorenzo, On 14.04.2016 19:25, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-17 Thread Tomasz Nowicki
Hi Lorenzo, On 14.04.2016 19:25, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is currently not possible to set-up DMA operations

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-17 Thread Tomasz Nowicki
Hi Lorenzo, On 14.04.2016 19:25, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is currently not possible to set-up DMA operations

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 16.05.2016 17:15, Tomasz Nowicki wrote: On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ +

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 16.05.2016 17:15, Tomasz Nowicki wrote: On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + +

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu =

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-05-16 Thread Tomasz Nowicki
On 18.04.2016 12:43, Robin Murphy wrote: On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu = iort_iommu_configure(dev); + +

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-22 Thread Lorenzo Pieralisi
Hi Andy, On Fri, Apr 22, 2016 at 01:45:38AM +0300, Andy Shevchenko wrote: > On Thu, Apr 14, 2016 at 8:25 PM, Lorenzo Pieralisi > wrote: > > On DT based systems, the of_dma_configure() API implements DMA configuration > > for a given device. On ACPI systems an API

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-22 Thread Lorenzo Pieralisi
Hi Andy, On Fri, Apr 22, 2016 at 01:45:38AM +0300, Andy Shevchenko wrote: > On Thu, Apr 14, 2016 at 8:25 PM, Lorenzo Pieralisi > wrote: > > On DT based systems, the of_dma_configure() API implements DMA configuration > > for a given device. On ACPI systems an API equivalent to of_dma_configure()

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-21 Thread Andy Shevchenko
On Thu, Apr 14, 2016 at 8:25 PM, Lorenzo Pieralisi wrote: > On DT based systems, the of_dma_configure() API implements DMA configuration > for a given device. On ACPI systems an API equivalent to of_dma_configure() > is missing which implies that it is currently not

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-21 Thread Andy Shevchenko
On Thu, Apr 14, 2016 at 8:25 PM, Lorenzo Pieralisi wrote: > On DT based systems, the of_dma_configure() API implements DMA configuration > for a given device. On ACPI systems an API equivalent to of_dma_configure() > is missing which implies that it is currently not possible to set-up DMA >

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Robin Murphy
On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu = iort_iommu_configure(dev); + + /* +

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Robin Murphy
On 15/04/16 19:29, Timur Tabi wrote: On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) +{ + struct iommu_ops *iommu; + + iommu = iort_iommu_configure(dev); + + /* +* Assume dma valid range

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Lorenzo Pieralisi
On Fri, Apr 15, 2016 at 01:29:14PM -0500, Timur Tabi wrote: > On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi > wrote: > > +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) > > +{ > > + struct iommu_ops *iommu; > > + > > + iommu =

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-18 Thread Lorenzo Pieralisi
On Fri, Apr 15, 2016 at 01:29:14PM -0500, Timur Tabi wrote: > On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi > wrote: > > +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) > > +{ > > + struct iommu_ops *iommu; > > + > > + iommu = iort_iommu_configure(dev); > >

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Timur Tabi
On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: > +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) > +{ > + struct iommu_ops *iommu; > + > + iommu = iort_iommu_configure(dev); > + > + /* > +* Assume dma valid

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Timur Tabi
On Thu, Apr 14, 2016 at 12:25 PM, Lorenzo Pieralisi wrote: > +void acpi_dma_configure(struct device *dev, enum dev_dma_attr attr) > +{ > + struct iommu_ops *iommu; > + > + iommu = iort_iommu_configure(dev); > + > + /* > +* Assume dma valid range starts at 0 and covers

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Robin Murphy
Hi Bjorn, On 15/04/16 17:14, Bjorn Helgaas wrote: On Thu, Apr 14, 2016 at 06:25:41PM +0100, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Robin Murphy
Hi Bjorn, On 15/04/16 17:14, Bjorn Helgaas wrote: On Thu, Apr 14, 2016 at 06:25:41PM +0100, Lorenzo Pieralisi wrote: On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Bjorn Helgaas
On Thu, Apr 14, 2016 at 06:25:41PM +0100, Lorenzo Pieralisi wrote: > On DT based systems, the of_dma_configure() API implements DMA configuration > for a given device. On ACPI systems an API equivalent to of_dma_configure() > is missing which implies that it is currently not possible to set-up DMA

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-15 Thread Bjorn Helgaas
On Thu, Apr 14, 2016 at 06:25:41PM +0100, Lorenzo Pieralisi wrote: > On DT based systems, the of_dma_configure() API implements DMA configuration > for a given device. On ACPI systems an API equivalent to of_dma_configure() > is missing which implies that it is currently not possible to set-up DMA

[RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-14 Thread Lorenzo Pieralisi
On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is currently not possible to set-up DMA operations for devices through the ACPI generic kernel layer. This

[RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-14 Thread Lorenzo Pieralisi
On DT based systems, the of_dma_configure() API implements DMA configuration for a given device. On ACPI systems an API equivalent to of_dma_configure() is missing which implies that it is currently not possible to set-up DMA operations for devices through the ACPI generic kernel layer. This