Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-15 Thread Russell King - ARM Linux
On Tue, Mar 15, 2011 at 06:34:42PM +0900, daeinki wrote: > Russell King - ARM Linux 쓴 글: >> On Tue, Mar 15, 2011 at 10:45:50AM +0900, InKi Dae wrote: >>> 2011/3/14 Russell King - ARM Linux : On Mon, Mar 14, 2011 at 09:37:51PM +0900, KyongHo Cho wrote: > I have also noticed that dma_map_sin

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-15 Thread daeinki
Russell King - ARM Linux 쓴 글: On Tue, Mar 15, 2011 at 10:45:50AM +0900, InKi Dae wrote: 2011/3/14 Russell King - ARM Linux : On Mon, Mar 14, 2011 at 09:37:51PM +0900, KyongHo Cho wrote: I have also noticed that dma_map_single/page/sg() can map physical memory into an arbitrary device address r

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-15 Thread Russell King - ARM Linux
On Tue, Mar 15, 2011 at 10:45:50AM +0900, InKi Dae wrote: > 2011/3/14 Russell King - ARM Linux : > > On Mon, Mar 14, 2011 at 09:37:51PM +0900, KyongHo Cho wrote: > >> I have also noticed that dma_map_single/page/sg() can map physical > >> memory into an arbitrary device address region. > >> But it

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-14 Thread InKi Dae
2011/3/14 Russell King - ARM Linux : > On Mon, Mar 14, 2011 at 09:37:51PM +0900, KyongHo Cho wrote: >> I have also noticed that dma_map_single/page/sg() can map physical >> memory into an arbitrary device address region. >> But it is not enough solution for various kinds of IOMMUs. >> As Kukjin Kim

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-14 Thread Arnd Bergmann
On Monday 14 March 2011, KyongHo Cho wrote: > I think we can consider another solution for the various requirements. > I think one of the most possible solutions is VCMM. > Or we can enhance include/linux/iommu.h with reference of VCMM. I think extending or changing the existing interface would be

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-14 Thread Russell King - ARM Linux
On Mon, Mar 14, 2011 at 09:37:51PM +0900, KyongHo Cho wrote: > I have also noticed that dma_map_single/page/sg() can map physical > memory into an arbitrary device address region. > But it is not enough solution for various kinds of IOMMUs. > As Kukjin Kim addressed, we need to support larger page

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-14 Thread KyongHo Cho
2011/3/12 Arnd Bergmann : > On Friday 11 March 2011, Marek Szyprowski wrote: >> > > > does not support IOMMUs, but that could be changed by wrapping it >> > > > using the include/asm-generic/dma-mapping-common.h infrastructure. >> > > >> > > ARM dma-mapping framework also requires some additional r

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Arnd Bergmann
On Friday 11 March 2011, Marek Szyprowski wrote: > > > > does not support IOMMUs, but that could be changed by wrapping it > > > > using the include/asm-generic/dma-mapping-common.h infrastructure. > > > > > > ARM dma-mapping framework also requires some additional research for > > > better DMA >

RE: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Marek Szyprowski
Hello, On Friday, March 11, 2011 4:15 PM Arnd Bergmann wrote: > On Friday 11 March 2011, Marek Szyprowski wrote: > > On Friday, March 11, 2011 3:08 PM Arnd Bergmann wrote: > > > > > On Friday 11 March 2011, Marek Szyprowski wrote: > > > > > The iommu API is not really meant to be KVM specific, it

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Arnd Bergmann
On Friday 11 March 2011, Marek Szyprowski wrote: > On Friday, March 11, 2011 3:08 PM Arnd Bergmann wrote: > > > On Friday 11 March 2011, Marek Szyprowski wrote: > > > > The iommu API is not really meant to be KVM specific, it's just that the > > > > in-tree users are basically limited to KVM at th

RE: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Marek Szyprowski
Hello, On Friday, March 11, 2011 3:08 PM Arnd Bergmann wrote: > On Friday 11 March 2011, Marek Szyprowski wrote: > > > The iommu API is not really meant to be KVM specific, it's just that the > > > in-tree users are basically limited to KVM at the moment. Another user > > > that > > > is coming

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Arnd Bergmann
On Friday 11 March 2011, Marek Szyprowski wrote: > > The iommu API is not really meant to be KVM specific, it's just that the > > in-tree users are basically limited to KVM at the moment. Another user that > > is coming up soon is the vmio device driver that can be used to > > transparently > > pa

RE: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Marek Szyprowski
Hello, On Friday, March 11, 2011 12:51 PM Arnd Bergmann wrote: > On Friday 11 March 2011, Marek Szyprowski wrote: > > > > We followed the style of iommu API for other mainline ARM platforms (both > > OMAP and MSM > > also have custom API for their iommu modules). I've briefly checked > > includ

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Arnd Bergmann
On Friday 11 March 2011, Marek Szyprowski wrote: > > We followed the style of iommu API for other mainline ARM platforms (both > OMAP and MSM > also have custom API for their iommu modules). I've briefly checked > include/linux/iommu.h > API and I've noticed that it has been designed mainly for

RE: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-11 Thread Marek Szyprowski
Hello, On Thursday, March 10, 2011 3:52 PM Arnd Bergmann wrote: > On Friday 04 March 2011, Marek Szyprowski wrote: > > From: Andrzej Pietrasiewicz > > > > This patch performs a complete rewrite of sysmmu driver for Samsung > > platform: > > - the new version introduces an api to construct devic

Re: [PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-10 Thread Arnd Bergmann
On Friday 04 March 2011, Marek Szyprowski wrote: > From: Andrzej Pietrasiewicz > > This patch performs a complete rewrite of sysmmu driver for Samsung platform: > - the new version introduces an api to construct device private page > tables and enables to use device private address space mode >

[PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-04 Thread Marek Szyprowski
From: Andrzej Pietrasiewicz This patch performs a complete rewrite of sysmmu driver for Samsung platform: - the new version introduces an api to construct device private page tables and enables to use device private address space mode - simplified the resource management: no more single platfor

[PATCH 3/7] ARM: Samsung: update/rewrite Samsung SYSMMU (IOMMU) driver

2011-03-04 Thread Marek Szyprowski
From: Andrzej Pietrasiewicz This patch performs a complete rewrite of sysmmu driver for Samsung platform: - the new version introduces an api to construct device private page tables and enables to use device private address space mode - simplified the resource management: no more single platfor