Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-06 Thread Hiroshi Doyu
From: Hiroshi DOYU Subject: Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper Date: Wed, 07 Mar 2012 08:37:06 +0200 (EET) Message-ID: <20120307.083706.2087121294965856946.hd...@nvidia.com> > From: Hiroshi DOYU > Subject: Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU ma

Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-06 Thread Hiroshi Doyu
From: Hiroshi DOYU Subject: Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper Date: Wed, 07 Mar 2012 08:09:52 +0200 (EET) Message-ID: <20120307.080952.2152478004740487196.hd...@nvidia.com> > From: Krishna Reddy > Subject: RE: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU m

Re: [PATCH v10 3/3] iommu/exynos: Add iommu driver for Exynos Platforms

2012-03-06 Thread KyongHo Cho
On Wed, Mar 7, 2012 at 2:28 PM, InKi Dae wrote: >> +static irqreturn_t exynos_sysmmu_irq(int irq, void *dev_id) >> +{ >> +       /* SYSMMU is in blocked when interrupt occurred. */ >> +       struct sysmmu_drvdata *data = dev_id; >> +       struct resource *irqres; >> +       struct platform_devic

Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-06 Thread Hiroshi Doyu
From: Krishna Reddy Subject: RE: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper Date: Tue, 6 Mar 2012 23:48:42 +0100 Message-ID: <401e54ce964cd94bae1eb4a729c7087e3797011...@hqmail04.nvidia.com> > > > +struct dma_iommu_mapping * > > > +arm_iommu_create_mapping(struct bus_type *bus, d

Re: [PATCH v10 3/3] iommu/exynos: Add iommu driver for Exynos Platforms

2012-03-06 Thread KyongHo Cho
On Tue, Mar 6, 2012 at 10:13 PM, Kyungmin Park wrote: > On Tue, Mar 6, 2012 at 5:31 PM, KyongHo Cho wrote: >> HAALgBjAGgAbwBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=;Tue, >>  06 Mar 2012 08:31:29 >> GMT;WwBQAEEAVABDAEgAIAB2ADEAMAAgADMALwAzAF0AIABpAG8AbQBtAHUALwBlAHgAeQBuAG8AcwA6ACAAQQBkAGQAIABpAG8AbQBtA

Re: [PATCH v10 2/3] ARM: EXYNOS: Change System MMU platform device definitions

2012-03-06 Thread KyongHo Cho
On Tue, Mar 6, 2012 at 7:03 PM, Kyungmin Park wrote: >> >> -#define S5P_SYSMMU_TOTAL_IPNUM               EXYNOS4_SYSMMU_TOTAL_IPNUM >> +#define SYSMMU_DEVNAME_BASE "exynos-sysmmu" >> + >> +#define SYSMMU_CLOCK_NAME "sysmmu" >> +#define SYSMMU_CLOCK_NAME2 "sysmmu_mc" > What's the meaning of "mc"? I

Re: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-06 Thread Russell King - ARM Linux
On Wed, Feb 29, 2012 at 04:04:22PM +0100, Marek Szyprowski wrote: > +static int arm_iommu_mmap_attrs(struct device *dev, struct vm_area_struct > *vma, > + void *cpu_addr, dma_addr_t dma_addr, size_t size, > + struct dma_attrs *attrs) > +{ > + struct arm_vmregion

Re: [PATCH v10 3/3] iommu/exynos: Add iommu driver for Exynos Platforms

2012-03-06 Thread Kyungmin Park
Hi, some not critical comments. Thank you, Kyungmin Park On Tue, Mar 6, 2012 at 5:31 PM, KyongHo Cho wrote: > HAALgBjAGgAbwBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=;Tue, >  06 Mar 2012 08:31:29 > GMT;WwBQAEEAVABDAEgAIAB2ADEAMAAgADMALwAzAF0AIABpAG8AbQBtAHUALwBlAHgAeQBuAG8AcwA6ACAAQQBkAGQAIABpAG8AbQBtA

Re: [PATCH v10 2/3] ARM: EXYNOS: Change System MMU platform device definitions

2012-03-06 Thread Kyungmin Park
Hi, On 3/6/12, KyongHo Cho wrote: > Handling System MMUs with an identifier is not flexible to manage > System MMU platform devices because of the following reasons: > 1. A device driver which needs to handle System MMU must know the ID. > 2. A System MMU may not present in some implementations o

[PATCH v10 3/3] iommu/exynos: Add iommu driver for Exynos Platforms

2012-03-06 Thread KyongHo Cho
HAALgBjAGgAbwBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=;Tue, 06 Mar 2012 08:31:29 GMT;WwBQAEEAVABDAEgAIAB2ADEAMAAgADMALwAzAF0AIABpAG8AbQBtAHUALwBlAHgAeQBuAG8AcwA6ACAAQQBkAGQAIABpAG8AbQBtAHUAIABkAHIAaQB2AGUAcgAgAGYAbwByACAARQB4AHkAbgBvAHMAIABQAGwAYQB0AGYAbwByAG0AcwA= x-cr-puzzleid: {CF0AAF04-8639-4D69-B4E

[PATCH v10 2/3] ARM: EXYNOS: Change System MMU platform device definitions

2012-03-06 Thread KyongHo Cho
Handling System MMUs with an identifier is not flexible to manage System MMU platform devices because of the following reasons: 1. A device driver which needs to handle System MMU must know the ID. 2. A System MMU may not present in some implementations of Exynos family. 3. Handling System MMU with

[PATCH v10 1/3] S5P: SYSMMU: Remove System MMU device driver

2012-03-06 Thread KyongHo Cho
This patch removes System MMU device driver from arm/plat-s5p tree for transition to implement IOMMU driver. Although controlling System MMU in this removing driver is similar to the new IOMMU driver in the following patch, the new one is almost rewrite of this driver and there is no benefit to mov

[PATCH v10 0/3] iommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-03-06 Thread KyongHo Cho
These patches are successfully compiled in linux-samsung.git/for-next branch You can find the git repo. In http://git.kernel.org/?p=linux/kernel/git/kgene/linux-samsung.git;a=summary Changes since v9: - Split the first patch into 2 patches. One removes System MMU driver from arch/arm/plat- tre