Re: [PATCH v2 1/3] mm: alloc_contig_range: allow to specify GFP mask

2017-01-28 Thread Vlastimil Babka
On 01/27/2017 06:23 PM, Lucas Stach wrote: Currently alloc_contig_range assumes that the compaction should be done with the default GFP_KERNEL flags. This is probably right for all current uses of this interface, but may change as CMA is used in more use-cases (including being the default DMA mem

Re: [PATCH v2 2/2] arm64: Add support for DMA_ATTR_FORCE_CONTIGUOUS to IOMMU

2017-01-28 Thread Laurent Pinchart
Hi Geert, Thank you for the patch. On Friday 27 Jan 2017 16:34:19 Geert Uytterhoeven wrote: > Add support for allocation physically contiguous DMA buffers on arm64 > systems with an IOMMU, by dispatching DMA buffer allocations with the > DMA_ATTR_FORCE_CONTIGUOUS attribute to the appropriate IOMM

Re: [PATCH V7 07/11] iommu: of: Handle IOMMU lookup failure with deferred probing or error

2017-01-28 Thread Bjorn Helgaas
On Mon, Jan 23, 2017 at 09:48:09PM +0530, Sricharan R wrote: > From: Laurent Pinchart > > Failures to look up an IOMMU when parsing the DT iommus property need to > be handled separately from the .of_xlate() failures to support deferred > probing. > > The lack of a registered IOMMU can be caused

Re: [PATCH V7 09/11] arm64: dma-mapping: Remove the notifier trick to handle early setting of dma_ops

2017-01-28 Thread Bjorn Helgaas
On Mon, Jan 23, 2017 at 09:48:11PM +0530, Sricharan R wrote: > With arch_setup_dma_ops now being called late during device's probe after > the device's iommu is probed, the notifier trick required to handle the > early setup of dma_ops before the iommu group gets created is not > required. So remov

Re: [PATCH V7 10/11] iommu/arm-smmu: Clean up early-probing workarounds

2017-01-28 Thread Bjorn Helgaas
On Mon, Jan 23, 2017 at 09:48:12PM +0530, Sricharan R wrote: > From: Robin Murphy > > Now that the appropriate ordering is enforced via profe-deferral of s/profe-deferral/probe-deferral/ > masters in core code, rip it all out and bask in the simplicity. > > Acked-by: Will Deacon > Signed-off-

Re: [PATCH V7 06/11] of/acpi: Configure dma operations at probe time for platform/amba/pci bus devices

2017-01-28 Thread Bjorn Helgaas
On Mon, Jan 23, 2017 at 09:48:08PM +0530, Sricharan R wrote: > Configuring DMA ops at probe time will allow deferring device probe when > the IOMMU isn't available yet. The dma_configure for the device is > now called from the generic device_attach callback just before the > bus/driver probe is cal

Re: [PATCH V7 00/11] IOMMU probe deferral support

2017-01-28 Thread Bjorn Helgaas
On Mon, Jan 23, 2017 at 09:48:02PM +0530, Sricharan R wrote: > This series calls the dma ops configuration for the devices > at a generic place so that it works for all busses. > The dma_configure_ops for a device is now called during > the device_attach callback just before the probe of the > bus/