Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 13:44, Tomasz Figa wrote: > On Tue, Jun 27, 2017 at 9:26 PM, Robin Murphy wrote: >> On 27/06/17 12:17, Tomasz Figa wrote: >>> On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: On 27/06/17 08:28, Tomasz Figa wrote: > Current

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 13:44, Tomasz Figa wrote: > On Tue, Jun 27, 2017 at 9:26 PM, Robin Murphy wrote: >> On 27/06/17 12:17, Tomasz Figa wrote: >>> On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: On 27/06/17 08:28, Tomasz Figa wrote: > Current implementation of __iommu_dma_alloc_pages()

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
On Tue, Jun 27, 2017 at 9:26 PM, Robin Murphy wrote: > On 27/06/17 12:17, Tomasz Figa wrote: >> On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: >>> On 27/06/17 08:28, Tomasz Figa wrote: Current implementation of __iommu_dma_alloc_pages()

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
On Tue, Jun 27, 2017 at 9:26 PM, Robin Murphy wrote: > On 27/06/17 12:17, Tomasz Figa wrote: >> On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: >>> On 27/06/17 08:28, Tomasz Figa wrote: Current implementation of __iommu_dma_alloc_pages() keeps adding __GFP_HIGHMEM to GFP flags

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 12:17, Tomasz Figa wrote: > On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: >> On 27/06/17 08:28, Tomasz Figa wrote: >>> Current implementation of __iommu_dma_alloc_pages() keeps adding >>> __GFP_HIGHMEM to GFP flags regardless of whether other zone flags

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 12:17, Tomasz Figa wrote: > On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: >> On 27/06/17 08:28, Tomasz Figa wrote: >>> Current implementation of __iommu_dma_alloc_pages() keeps adding >>> __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are >>> already included

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: > On 27/06/17 08:28, Tomasz Figa wrote: >> Current implementation of __iommu_dma_alloc_pages() keeps adding >> __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are >> already included in the incoming

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
On Tue, Jun 27, 2017 at 8:01 PM, Robin Murphy wrote: > On 27/06/17 08:28, Tomasz Figa wrote: >> Current implementation of __iommu_dma_alloc_pages() keeps adding >> __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are >> already included in the incoming flags. If __GFP_DMA or

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 08:28, Tomasz Figa wrote: > Current implementation of __iommu_dma_alloc_pages() keeps adding > __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are > already included in the incoming flags. If __GFP_DMA or __GFP_DMA32 is > set at the same time as __GFP_HIGHMEM, the

Re: [PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Robin Murphy
On 27/06/17 08:28, Tomasz Figa wrote: > Current implementation of __iommu_dma_alloc_pages() keeps adding > __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are > already included in the incoming flags. If __GFP_DMA or __GFP_DMA32 is > set at the same time as __GFP_HIGHMEM, the

[PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
Current implementation of __iommu_dma_alloc_pages() keeps adding __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are already included in the incoming flags. If __GFP_DMA or __GFP_DMA32 is set at the same time as __GFP_HIGHMEM, the allocation fails due to invalid zone flag

[PATCH 1/2] iommu/dma: Respect __GFP_DMA and __GFP_DMA32 in incoming GFP flags

2017-06-27 Thread Tomasz Figa
Current implementation of __iommu_dma_alloc_pages() keeps adding __GFP_HIGHMEM to GFP flags regardless of whether other zone flags are already included in the incoming flags. If __GFP_DMA or __GFP_DMA32 is set at the same time as __GFP_HIGHMEM, the allocation fails due to invalid zone flag