[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-04-18 Thread Mark yao
On 2016年02月19日 16:22, Marek Szyprowski wrote: > This patch replaces ARM-specific IOMMU-based DMA-mapping implementation > with generic IOMMU DMA-mapping code shared with ARM64 architecture. The > side-effect of this change is a switch from bitmap-based IO address space > management to tree-ba

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-03-15 Thread Magnus Damm
Hi Marek, On Fri, Feb 19, 2016 at 5:22 PM, Marek Szyprowski wrote: > This patch replaces ARM-specific IOMMU-based DMA-mapping implementation > with generic IOMMU DMA-mapping code shared with ARM64 architecture. The > side-effect of this change is a switch from bitmap-based IO address space > mana

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-03-15 Thread Marek Szyprowski
Hello, On 2016-03-15 12:18, Magnus Damm wrote: > Hi Marek, > > On Fri, Feb 19, 2016 at 5:22 PM, Marek Szyprowski > wrote: >> This patch replaces ARM-specific IOMMU-based DMA-mapping implementation >> with generic IOMMU DMA-mapping code shared with ARM64 architecture. The >> side-effect of this ch

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-03-15 Thread Robin Murphy
Hi Marek, Arnd, On 19/02/16 10:30, Arnd Bergmann wrote: > On Friday 19 February 2016 09:22:44 Marek Szyprowski wrote: >> This patch replaces ARM-specific IOMMU-based DMA-mapping implementation >> with generic IOMMU DMA-mapping code shared with ARM64 architecture. The >> side-effect of this change

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-03-15 Thread Robin Murphy
Hi Magnus, On 15/03/16 11:18, Magnus Damm wrote: > Hi Marek, > > On Fri, Feb 19, 2016 at 5:22 PM, Marek Szyprowski > wrote: >> This patch replaces ARM-specific IOMMU-based DMA-mapping implementation >> with generic IOMMU DMA-mapping code shared with ARM64 architecture. The >> side-effect of this

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-02-25 Thread Arnd Bergmann
On Thursday 25 February 2016 13:26:17 Marek Szyprowski wrote: > >> +} > >> + > >> +extern void *arch_alloc_from_atomic_pool(size_t size, struct page > >> **ret_page, > >> + gfp_t flags); > >> +extern bool arch_in_atomic_pool(void *start, size_t size); > >> +exte

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-02-25 Thread Marek Szyprowski
Hello, On 2016-02-19 11:30, Arnd Bergmann wrote: > On Friday 19 February 2016 09:22:44 Marek Szyprowski wrote: >> This patch replaces ARM-specific IOMMU-based DMA-mapping implementation >> with generic IOMMU DMA-mapping code shared with ARM64 architecture. The >> side-effect of this change is a sw

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-02-19 Thread Arnd Bergmann
On Friday 19 February 2016 09:22:44 Marek Szyprowski wrote: > This patch replaces ARM-specific IOMMU-based DMA-mapping implementation > with generic IOMMU DMA-mapping code shared with ARM64 architecture. The > side-effect of this change is a switch from bitmap-based IO address space > management to

[RFC 3/3] iommu: dma-iommu: use common implementation also on ARM architecture

2016-02-19 Thread Marek Szyprowski
This patch replaces ARM-specific IOMMU-based DMA-mapping implementation with generic IOMMU DMA-mapping code shared with ARM64 architecture. The side-effect of this change is a switch from bitmap-based IO address space management to tree-based code. There should be no functional changes for drivers,