Re: [PATCH] iommu/exynos: Remove driver

2014-03-09 Thread KyongHo Cho
PM, Kukjin Kim kgene@gmail.com wrote: Just adding KyongHo Cho. If he can fixup for this time, it would be best solution because he knows well than others, I think. It's not so much a matter of fixup for this time, it's a about having ownership of the driver, making sure it works

Re: [PATCH v6 05/12] iommu/exynos: support for device tree

2013-02-01 Thread KyongHo Cho
On Fri, Feb 1, 2013 at 10:51 PM, Joerg Roedel j...@8bytes.org wrote: Cho, On Wed, Jan 02, 2013 at 02:53:49PM +0900, KyongHo Cho wrote: On Tuesday, January 1, 2013, Sylwester Nawrocki sylvester.nawro...@gmail.com Cc: devicetree-disc...@lists.ozlabs.org Since patch 7 of this set

Re: [PATCH v6 00/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2013-01-16 Thread KyongHo Cho
On Wed, Jan 9, 2013 at 7:23 AM, Sylwester Nawrocki sylvester.nawro...@gmail.com wrote: On 01/07/2013 11:45 AM, KyongHo Cho wrote: The current exynos-iommu(System MMU) driver does not work autonomously since it is lack of support for power management of peripheral blocks. For example, MFC

Re: [RESEND][PATCH] ARM: Exynos4: fixed SYSMMU setup definition to mate parameter name

2012-08-27 Thread KyongHo Cho
On Mon, Aug 27, 2012 at 4:11 PM, Seung-Woo Kim sw0312@samsung.com wrote: This is trivial patch to mate parameter name between iommu api enabled case and disabled case. Signed-off-by: Seung-Woo Kim sw0312@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- Sorry

Re: [PATCH 0/2] Exynos: fix SYSMMU driver to work with power domains

2012-04-16 Thread KyongHo Cho
On Sun, Apr 15, 2012 at 12:51 AM, Kukjin Kim kgene@samsung.com wrote: On 04/12/12 01:19, KyongHo Cho wrote: On Wed, Apr 11, 2012 at 11:34 PM, Marek Szyprowski m.szyprow...@samsung.com  wrote: Hi! These two patches fixes operation of the SYSMMU driver (v12 version [1]) with the new

Re: [PATCH 2/2] ARM: Exynos4: update SYSMMU setup code for gen_pd power domain driver

2012-04-16 Thread KyongHo Cho
On Wed, Apr 11, 2012 at 11:34 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: SYSMMU platform devices must be registered before setting up power domains to let power domain driver to correctly register also SYSMMU controller devices. This patch also registers SYSMMU controller devices to

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

2012-03-28 Thread KyongHo Cho
On Thu, Mar 29, 2012 at 10:23 AM, Kukjin Kim kgene@samsung.com wrote: Joerg Roedel wrote: On Fri, Mar 16, 2012 at 01:47:50PM -0700, Kukjin Kim wrote: Anyway Joerg, how do you want to handle this? Do you want to pick up 1/2/3 all of them in your tree? If so, 2nd patch should be on top of

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

2012-03-20 Thread KyongHo Cho
On Tue, Mar 20, 2012 at 10:50 PM, Subash Patel subas...@gmail.com wrote: Sorry for digging this very late. But as part of integrating dma_map v7 sysmmu v12 on 3.3-rc5, I am facing below issue: a) By un-selecting IOMMU in menu config, I am able to allocate memory in vb2-dma-contig b) When I

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

2012-03-13 Thread KyongHo Cho
On Tue, Mar 13, 2012 at 7:00 PM, Joerg Roedel joerg.roe...@amd.com wrote: On Tue, Mar 13, 2012 at 05:50:16PM +0900, KyongHo Cho wrote: +struct sysmmu_drvdata { +     struct device *sysmmu; +     char *dbgname; +     int nsfrs; +     void __iomem **sfrbases; +     struct clk *clk[2

[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-

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

2012-03-06 Thread KyongHo Cho
becomes a child if its power domain device. - clkdev Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig| 11 +- arch/arm/mach-exynos/Makefile |2 +- arch/arm/mach-exynos/clock-exynos4.c| 79 ++-- arch/arm

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

2012-03-06 Thread KyongHo Cho
@samsung.com Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 21 + drivers/iommu/Makefile |1 + drivers/iommu/exynos-iommu.c | 1088 ++ 3 files changed, 1110 insertions(+), 0 deletions(-) create mode 100644

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 kyungmin.p...@samsung.com 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

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 kmp...@infradead.org wrote: On Tue, Mar 6, 2012 at 5:31 PM, KyongHo Cho pullip@samsung.com wrote: HAALgBjAGgAbwBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=;Tue,  06 Mar 2012 08:31:29 GMT

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 daei...@gmail.com 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

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

2012-03-02 Thread KyongHo Cho
On Thu, Mar 1, 2012 at 12:04 AM, Marek Szyprowski m.szyprow...@samsung.com wrote: +/** + * arm_iommu_map_sg - map a set of SG buffers for streaming mode DMA + * @dev: valid struct device pointer + * @sg: list of buffers + * @nents: number of buffers to map + * @dir: DMA transfer direction +

Re: [PATCH v9 0/2] iommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-03-01 Thread KyongHo Cho
On Tue, Feb 28, 2012 at 4:01 PM, Kyungmin Park kyungmin.p...@samsung.com wrote: Hi, Some comments. 1. It's not same patch series. since it has additional feature, exynos5 series support which don't covered at previous time. 2. It assumes that name conversion is based on exynos5 as default.

Re: [PATCH v9 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2012-02-28 Thread KyongHo Cho
On Tue, Feb 28, 2012 at 4:20 PM, Kyungmin Park kyungmin.p...@samsung.com wrote: Hi, On 2/28/12, KyongHo Cho pullip@samsung.com 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

Re: [PATCH v9 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2012-02-28 Thread KyongHo Cho
On Tue, Feb 28, 2012 at 4:53 PM, Kyungmin Park kyungmin.p...@samsung.com wrote: +void exynos_sysmmu_set_prefbuf(struct device *owner, +                             unsigned long base0, unsigned long size0, +                             unsigned long base1, unsigned long size1) +{ +     struct

Re: [PATCH v8 0/2] ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-02-27 Thread KyongHo Cho
On Tue, Feb 28, 2012 at 12:51 AM, Marek Szyprowski m.szyprow...@samsung.com wrote: The next patch will be submitted by 2/28. Ok, I will check it soon then. Thank you a lot. The next IOMMU driver defines just one platform device for a H/W device. Thus, it defines just one SYSMMU_MFC

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

2012-02-27 Thread KyongHo Cho
Changes since v8: - exynos_iommu_map/unmap() just works for the page sizes that System MMU supports. (Joerg's comment) - 1 platform device for 1 H/W though a multimedia accelerator with several System MMUs attached. This make controlling System MMU simpler. - Information between System

[PATCH v9 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2012-02-27 Thread KyongHo Cho
becomes a child if its power domain device. - clkdev Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig| 11 +- arch/arm/mach-exynos/Makefile |2 +- arch/arm/mach-exynos/clock-exynos4.c| 79 ++-- arch/arm/mach

[PATCH v9 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2012-02-27 Thread KyongHo Cho
-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p/Kconfig |8 - arch/arm/plat-s5p/Makefile |1 - arch/arm/plat-s5p/sysmmu.c | 324 arch/arm/plat-samsung/include/plat/sysmmu.h | 95 --- drivers/iommu/Kconfig

Re: [PATCH v8 0/2] ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-02-24 Thread KyongHo Cho
Hi Marek. On Fri, Feb 24, 2012 at 10:45 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: Hi, On Thursday, December 29, 2011 1:24 PM KyongHo Cho wrote: Changes since v7: - Rebased with the recent commits of the following git branches   * git.kernel.org/pub/scm/linux/kernel/git/joro

Re: [PATCH v8 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2012-01-30 Thread KyongHo Cho
On Fri, Jan 27, 2012 at 11:13 AM, Kukjin Kim kgene@samsung.com wrote: KyongHo Cho wrote: Hi, On Mon, Jan 23, 2012 at 11:27 PM, Joerg Roedel j...@8bytes.org wrote: Hi, please also get and inclue Acks from the Exynos maintainer for the next post. Since I have a compiling config

Re: [PATCH v8 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2012-01-24 Thread KyongHo Cho
pointed out below. Thanks for review! I will include the Acks in the next patchset. I will post the next patchset with corrections by the day after tomorrow. And sorry for late reply. I had holidays for the new year's day based on Lunar system. On Thu, Dec 29, 2011 at 09:26:08PM +0900, KyongHo

Re: [PATCH v8 0/2] ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-01-08 Thread KyongHo Cho
On Thu, Jan 5, 2012 at 8:47 PM, Joerg Roedel joerg.roe...@amd.com wrote: On Wed, Jan 04, 2012 at 09:26:20PM +, Russell King - ARM Linux wrote: On Wed, Jan 04, 2012 at 04:01:01PM +0100, Joerg Roedel wrote: On Tue, Jan 03, 2012 at 09:55:27AM +, Russell King - ARM Linux wrote: It comes

Re: [PATCH v8 0/2] ommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2012-01-02 Thread KyongHo Cho
Hi On Mon, Jan 2, 2012 at 10:42 PM, Joerg Roedel joerg.roe...@amd.com wrote: Hi, On Thu, Dec 29, 2011 at 09:24:18PM +0900, KyongHo Cho wrote: Changes since v7: - Rebased with the recent commits of the following git branches   * git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git/next

[PATCH v8 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2011-12-29 Thread KyongHo Cho
becomes a child if its power domain device. - clkdev Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig |5 + arch/arm/mach-exynos/clock-exynos4210.c | 16 ++ arch/arm/mach-exynos/clock-exynos4212.c |1 + arch/arm

RE: [PATCH] iommu: Initialize domain-handler in iommu_domain_alloc()

2011-12-16 Thread KyongHo Cho
On Thu, Dec 15, 2011 at 05:11:26PM +0100, Joerg Roedel wrote: On Tue, Dec 13, 2011 at 04:14:20PM +0900, KyongHo Cho wrote: Since it is not guaranteed that an iommu driver initializes in its domain_init() function, it must be initialized with NULL to prevent calling a function

[PATCH] iommu: Initialize domain-handler in iommu_domain_alloc()

2011-12-14 Thread KyongHo Cho
Since it is not guaranteed that an iommu driver initializes in its domain_init() function, it must be initialized with NULL to prevent calling a function in an arbitrary location when iommu fault occurred. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/iommu.c |1 + 1

Re: [PATCH v7 0/2] iommu/exynos: Add IOMMU/System MMU driver for Samsung Exynos

2011-12-06 Thread KyongHo Cho
On Tue, Dec 6, 2011 at 8:24 AM, Kyungmin Park kmp...@infradead.org wrote: On 12/6/11, Joerg Roedel joerg.roe...@amd.com wrote: On Fri, Nov 18, 2011 at 06:47:28PM +0900, KyongHo Cho wrote: Patch Summary: [PATCH v7 1/2] ARM: EXYNOS: Change System MMU platform device definitions [PATCH v7 2/2

Re: [PATCH v7 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-12-06 Thread KyongHo Cho
KyongHo Cho wrote: + +static int exynos_sysmmu_probe(struct platform_device *pdev) +{ +     struct resource *res, *ioarea; +     int ret; +     int irq; +     struct device *dev; +     void *sfr; +     struct sysmmu_drvdata *data; +     char *emsg; + +     dev = pdev-dev

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

2011-11-18 Thread KyongHo Cho
Changes since v6: - Totally rewrite exynos_iommu_map() and exynos_iommu_unmap() according to the change in iommu_map() and iommu_unmap(). - Change special slab for Lv2 page table to kmalloc(). Changes since v5: - Relation between device and a domain become n:1 (Joerg's comment) - Implements

[PATCH v7 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-11-18 Thread KyongHo Cho
: Russell King li...@arm.linux.org.uk Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p/Kconfig |8 - arch/arm/plat-s5p/Makefile |1 - arch/arm/plat-s5p/sysmmu.c | 312 - arch/arm/plat-samsung/include/plat/sysmmu.h

[PATCH v7 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2011-11-18 Thread KyongHo Cho
becomes a child if its power domain device. - clkdev Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig |2 + arch/arm/mach-exynos/clock-exynos4210.c | 16 ++ arch/arm/mach-exynos/clock.c | 55 ++-- arch

[PATCH v6 0/2] iommu/exynos: Add IOMMU and Enhance System MMU driver for Samsung Exynos

2011-11-14 Thread KyongHo Cho
Hi. Patch Summary: [PATCH v6 1/2] ARM: EXYNOS: Change System MMU platform device definitions [PATCH v6 2/2] iommu/exynos: Add iommu driver for Exynos Platforms The first patche enhances System MMU platform device definition: - Removed System MMU for MDMA0 in TOP block because it is not used.

[PATCH v6 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-11-14 Thread KyongHo Cho
: Russell King li...@arm.linux.org.uk Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p/Kconfig |8 - arch/arm/plat-s5p/Makefile |1 - arch/arm/plat-s5p/sysmmu.c | 312 arch/arm/plat-samsung/include/plat

[PATCH v6 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2011-11-14 Thread KyongHo Cho
becomes a child if its power domain device. - clkdev Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig |2 + arch/arm/mach-exynos/clock-exynos4210.c | 16 ++ arch/arm/mach-exynos/clock.c | 55 ++-- arch

Re: [PATCH v6 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2011-11-14 Thread KyongHo Cho
On Tue, Nov 15, 2011 at 2:37 PM, Kyungmin Park kmp...@infradead.org wrote: @@ -988,6 +989,21 @@ static struct platform_device *universal_devices[] __initdata = {       cam_i_core_fixed_reg_dev,       cam_s_if_fixed_reg_dev,       s5p_device_fimc_md, +     SYSMMU_PLATDEV(sss), +    

Re: [PATCH v6 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-11-14 Thread KyongHo Cho
On Tue, Nov 15, 2011 at 3:05 PM, Kyungmin Park kmp...@infradead.org wrote: +static bool set_sysmmu_active(struct sysmmu_drvdata *data) +{ +     /* return true if the System MMU was not active previously +        and it needs to be initialized */ +     data-activations++; +     return

Re: [PATCH v6 1/2] ARM: EXYNOS: Change System MMU platform device definitions

2011-11-14 Thread KyongHo Cho
On Tue, Nov 15, 2011 at 3:12 PM, KyongHo Cho pullip@samsung.com wrote: On Tue, Nov 15, 2011 at 2:37 PM, Kyungmin Park kmp...@infradead.org wrote: @@ -988,6 +989,21 @@ static struct platform_device *universal_devices[] __initdata = {       cam_i_core_fixed_reg_dev

Re: [PATCH v5 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-10-14 Thread KyongHo Cho
On Fri, Oct 14, 2011 at 11:17 PM, Roedel, Joerg joerg.roe...@amd.com wrote: On Thu, Oct 13, 2011 at 04:13:23AM -0400, KyongHo Cho wrote: +struct exynos_iommu_domain { +       struct device *dev; +       unsigned long *pgtable; +       spinlock_t lock; +       spinlock_t pgtablelock

[PATCH v4 0/2] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4

2011-10-12 Thread KyongHo Cho
Hi. This is the firth try of submitting patches about IOMMU/System MMU Patch Summary: [PATCH v4 1/2] ARM: EXYNOS4: Change System MMU device definition [PATCH v4 2/2] iommu/exynos: Add iommu driver for Exynos Platforms The first patche enhances System MMU platform device definition: - Removed

[PATCH v4 1/2] ARM: EXYNOS4: Change System MMU device definition

2011-10-12 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

Re: [PATCH v4 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-10-12 Thread KyongHo Cho
Hi Ohad, On Wed, Oct 12, 2011 at 5:22 PM, Ohad Ben-Cohen o...@wizery.com wrote: +static int exynos_iommu_unmap(struct iommu_domain *domain, unsigned long iova, +                          int gfp_order) +{ ... +       return 0; +} -unmap() should return the size of the unmapped region (in

[PATCH v5 0/2] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4

2011-10-12 Thread KyongHo Cho
Hi. This is the fifth try of submitting patches about IOMMU/System MMU Patch Summary: [PATCH v5 1/2] ARM: EXYNOS4: Change System MMU device definition [PATCH v5 2/2] iommu/exynos: Add iommu driver for Exynos Platforms The first patche enhances System MMU platform device definition: - Removed

[PATCH v5 1/2] ARM: EXYNOS4: Change System MMU device definition

2011-10-12 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

[PATCH v5 2/2] iommu/exynos: Add iommu driver for Exynos Platforms

2011-10-12 Thread KyongHo Cho
: Russell King li...@arm.linux.org.uk Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p/Kconfig |8 - arch/arm/plat-s5p/Makefile |1 - arch/arm/plat-s5p/sysmmu.c | 312 - arch/arm/plat-samsung/include/plat

Re: [PATCH v2 3/5] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-30 Thread KyongHo Cho
On Fri, Sep 30, 2011 at 9:06 PM, Roedel, Joerg joerg.roe...@amd.com wrote: First comment: Pleas remove the 'inline' annotations in this patch. It is better to let the compiler decide what to inline and what not. Ok. Thanks :) Hmm, may it make sense to store data directly in dev-arch.iommu?

Re: [PATCH v2 2/5] ARM: S5P: Remove system MMU driver from arm/plat-s5p

2011-09-30 Thread KyongHo Cho
On Fri, Sep 30, 2011 at 10:42 PM, Roedel, Joerg joerg.roe...@amd.com wrote: On Fri, Sep 30, 2011 at 03:30:57AM -0400, Kukjin Kim wrote: From: KyongHo Cho pullip@samsung.com Due to Ohad Ben-Cohen gathered IOMMU drivers in drivers/iommu directory, System MMU driver is moved to drivers/iommu

Re: [PATCH v2 5/5] iommu/exynos: Use bus_set_iommu instead of register_iommu

2011-09-30 Thread KyongHo Cho
On Fri, Sep 30, 2011 at 10:46 PM, Roedel, Joerg joerg.roe...@amd.com wrote: On Fri, Sep 30, 2011 at 03:31:49AM -0400, Kukjin Kim wrote: From: KyongHo Cho pullip@samsung.com This replaces register_iommu() with bus_set_iommu() according to the suggestion of Joerg Roedel. This should

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-27 Thread KyongHo Cho
On Tue, Sep 27, 2011 at 5:48 PM, Ohad Ben-Cohen o...@wizery.com wrote: diff --git a/include/linux/iommu.h b/include/linux/iommu.h index d084e87..2987199 100644 --- a/include/linux/iommu.h +++ b/include/linux/iommu.h @@ -98,11 +98,12 @@ extern void iommu_set_fault_handler(struct iommu_domain

[PATCH 0/3] iommu/exynos: Add iommu driver for Exynos4 SoCs

2011-09-27 Thread KyongHo Cho
Hi. This patch set enhances System MMU platform device definitions of Exynos SoC platforms, adds the implementation of IOMMU API as well as and moves Syste MMU driver to the drivers/iommu directory. The IOMMU driver also implements fault handler that Ohad Ben-Cohen has suggeested and iommu_ops

[PATCH 2/4] ARM: S5P: Remove system MMU driver from arm/plat-s5p

2011-09-27 Thread KyongHo Cho
Due to Ohad Ben-Cohen gathered IOMMU drivers in drivers/iommu directory, System MMU driver is moved to drivers/iommu directory and removed from arch/arm/plat-s5p directory. Please see https://lkml.org/lkml/2011/6/8/69 Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p

[PATCH 1/3] ARM: EXYNOS4: Change System MMU device definition

2011-09-27 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

[PATCH 2/3] ARM: S5P: Remove system MMU driver from arm/plat-s5p

2011-09-27 Thread KyongHo Cho
Due to Ohad Ben-Cohen gathered IOMMU drivers in drivers/iommu directory, System MMU driver is moved to drivers/iommu directory and removed from arch/arm/plat-s5p directory. Please see https://lkml.org/lkml/2011/6/8/69 Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p

[PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-27 Thread KyongHo Cho
This is the System MMU driver and IOMMU API implementation for Exynos4 SOC platforms. Exynos4 platforms has more than 10 System MMUs dedicated for each multimedia accellerators. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 14 + drivers/iommu/Makefile

[PATCH 1/4] ARM: EXYNOS4: Change System MMU device definition

2011-09-27 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

[PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu

2011-09-27 Thread KyongHo Cho
This replaces register_iommu() with bus_set_iommu() according to the suggestion of Joerg Roedel. Cc: Joerg Roedel joerg.roe...@amd.com Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos_iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4

2011-09-27 Thread KyongHo Cho
First 2 patches enhance System MMU platform device definition: - Removed System MMU for MDMA0 in LCD block because it is not used. Use MDMA2 in TOP block. - Removed System MMU ID. Instead a System MMU is bound to a device that the System MMU is dedicated during machin initialization. If a

[PATCH 0/4 v2] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4

2011-09-27 Thread KyongHo Cho
This is the second try of submitting patches about IOMMU/System MMU driver for Exynos4 SoCs with the fixes of the following probles pointed by Russell King.: - Missing unlocking a spinlock in exynos_iommu_attach_dev(). - atomic_t - int in sysmmu_drvdata.activations - sysmmu_platdata -

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

2011-09-27 Thread KyongHo Cho
This is the System MMU driver and IOMMU API implementation for Exynos4 SOC platforms. Exynos4 platforms has more than 10 System MMUs dedicated for each multimedia accellerators. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 14 + drivers/iommu/Makefile

[PATCH 2/4 v2] ARM: S5P: Remove system MMU driver from arm/plat-s5p

2011-09-27 Thread KyongHo Cho
Due to Ohad Ben-Cohen gathered IOMMU drivers in drivers/iommu directory, System MMU driver is moved to drivers/iommu directory and removed from arch/arm/plat-s5p directory. Please see https://lkml.org/lkml/2011/6/8/69 Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p

[PATCH 2/4] ARM: S5P: Remove system MMU driver from arm/plat-s5p

2011-09-27 Thread KyongHo Cho
Due to Ohad Ben-Cohen gathered IOMMU drivers in drivers/iommu directory, System MMU driver is moved to drivers/iommu directory and removed from arch/arm/plat-s5p directory. Please see https://lkml.org/lkml/2011/6/8/69 Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p

[PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu

2011-09-27 Thread KyongHo Cho
This replaces register_iommu() with bus_set_iommu() according to the suggestion of Joerg Roedel. Cc: Joerg Roedel joerg.roe...@amd.com Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos_iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU for Exynos4

2011-09-27 Thread KyongHo Cho
Hi, The first 2 patches are the revolutionary change to the device definition of System MMU for Exynos4 SoCs: - System MMU ID is removed and a device and its dedicated System MMU are bound during the machine initialization. - Only the System MMU platform devices that are bound to their

[PATCH 1/4] ARM: EXYNOS4: Change System MMU device definition

2011-09-27 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

[PATCH 4/4 v2] iommu/exynos: Use bus_set_iommu instead of register_iommu

2011-09-27 Thread KyongHo Cho
This replaces register_iommu() with bus_set_iommu() according to the suggestion of Joerg Roedel. Cc: Joerg Roedel joerg.roe...@amd.com Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos_iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH 1/4 v2] ARM: EXYNOS4: Change System MMU device definition

2011-09-27 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

[PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-27 Thread KyongHo Cho
This is the System MMU driver and IOMMU API implementation for Exynos4 SOC platforms. Exynos4 platforms has more than 10 System MMUs dedicated for each multimedia accellerators. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 14 + drivers/iommu/Makefile

[PATCH 0/4 v2] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4

2011-09-26 Thread KyongHo Cho
This is the second try of submitting patches about IOMMU/System MMU driver for Exynos4 SoCs with the fixes of the following problems pointed by Russell King.: - Missing unlocking a spinlock in exynos_iommu_attach_dev(). - atomic_t - int in sysmmu_drvdata.activations - sysmmu_platdata -

[PATCH 1/4 v2] ARM: EXYNOS4: Change System MMU device definition

2011-09-26 Thread KyongHo Cho
that is included in LCD0 block because it is not used anymore. Use MDMA in TOP block. 3. Changed System MMU definitions of platform device. It is not an array anymore. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/Kconfig |2 - arch/arm/mach

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-26 Thread KyongHo Cho
On Mon, Sep 26, 2011 at 6:36 PM, Ohad Ben-Cohen o...@wizery.com wrote: It seems your default behavior just prints an error message with the details of the fault (addresses, flags, etc..). We can probably have this unified. In case you want to print exonys-specific info when the fault is not

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-26 Thread KyongHo Cho
On Tue, Sep 27, 2011 at 12:59 AM, Ohad Ben-Cohen o...@wizery.com wrote: On Mon, Sep 26, 2011 at 5:48 PM, KyongHo Cho pullip@samsung.com wrote: I am sorry but I still think that installing default fault handler is quite simple and straightforward. ... and abusing the IOMMU API. Please

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-25 Thread KyongHo Cho
Hi. On Sat, Sep 24, 2011 at 6:38 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Sat, Sep 24, 2011 at 07:35:45AM +, 조경호 wrote: +# EXYNOS IOMMU support +config EXYNOS_IOMMU + bool Exynos IOMMU Support + depends on ARCH_EXYNOS4 + select IOMMU_API + select EXYNOS4_DEV_SYSMMU

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-25 Thread KyongHo Cho
Thanks. I will try. Regards, Cho KyongHo. On Mon, Sep 26, 2011 at 11:17 AM, Wanlong Gao gaowanl...@cn.fujitsu.com wrote: On 09/26/2011 08:44 AM, KyongHo Cho wrote: Hi. On Sat, Sep 24, 2011 at 6:38 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Sat, Sep 24, 2011 at 07:35

Re: [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms

2011-09-24 Thread KyongHo Cho
platforms has more than 10 System MMUs dedicated for each multimedia accellerators. Signed-off-by: KyongHo Cho --- drivers/iommu/Kconfig| 14 + drivers/iommu/Makefile |1 + drivers/iommu/exynos_iommu.c | 859 ++ 3 files changed, 874

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

2011-09-06 Thread KyongHo Cho
Hi. On Fri, Sep 2, 2011 at 10:56 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: + * + * iova must be aligned on a 4kB, 64kB, 1MB and 16MB boundaries, respectively. + */ Actually, iova is just needed to be aligned by 4KiB because it is minimum requirement. I think IOMMU driver is

[PATCH] ARM: S5P: Remove sysmmu driver from arch tree

2011-07-15 Thread KyongHo Cho
will not cause any problem. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/plat-s5p/Kconfig |8 - arch/arm/plat-s5p/Makefile |1 - arch/arm/plat-s5p/include/plat/sysmmu.h | 95 -- arch/arm/plat-s5p/sysmmu.c | 312

Re: [PATCH 0/6+1] ARM: EXYNOS4: SYSMMU: Improvements on SYSMMU driver

2011-07-04 Thread KyongHo Cho
Hi. On Mon, Jul 4, 2011 at 3:47 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: Hello, I really don't get why do You persist in creating one monster platform device with resources for ALL SYSMMU/IOMMU controllers that are available on Exynos4 CPU. We (SPRC, see Andrzej's SYSMMU patches)

[PATCH 5/6] ARM: EXYNOS4: SYSMMU: Add SYSMMU_NONE

2011-07-03 Thread KyongHo Cho
Added new value 'SYSMMU_NONE' to sysmmu_ips. This value represents invalid System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/include/mach/sysmmu.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/include/mach

[PATCH 2/6] ARM: EXYNOS4: SYSMMU: Enable clock gating for System MMU of SSS

2011-07-03 Thread KyongHo Cho
clock gating of SYSMMU_SSS that was missing is added. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/clock.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos4/clock.c b/arch/arm/mach-exynos4/clock.c index 256b46b

[PATCH 3/6] ARM: EXYNOS4: SYSMMU: Enhancement on device definition

2011-07-03 Thread KyongHo Cho
definition. Cc: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/dev-sysmmu.c | 216 ++-- 1 files changed, 59 insertions(+), 157 deletions(-) diff --git a/arch/arm/mach-exynos4/dev-sysmmu.c b/arch

[PATCH] ARM: EXYNOS4: iommu: Add IOMMU API and moved to drivers/iommu

2011-07-03 Thread KyongHo Cho
, I've used linked list to manage the relation between domain and device. Marek is trying to add domain and dma_map_ops fields into dev_archdata. This way of relation management will be changed after the Marek's work is merged into the mainline. Signed-off-by: KyongHo Cho pullip@samsung.com

Re: [PATCH 0/2] ARM: EXYNOS4: Enhancement of System MMU

2011-03-14 Thread KyongHo Cho
2011/3/8 Marek Szyprowski m.szyprow...@samsung.com: Hello, On Monday, March 07, 2011 2:19 AM KyongHo Cho wrote: This patch includes the following enhancements for System MMU: - Enhanced readability - Removal of unused data structures or their members - Simplified function definitions

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

2011-03-14 Thread KyongHo Cho
2011/3/12 Arnd Bergmann a...@arndb.de: 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

Re: [PATCH 0/2] ARM: EXYNOS4: Enhancement of System MMU

2011-03-14 Thread KyongHo Cho
Hi, 2011/3/14 Marek Szyprowski m.szyprow...@samsung.com: Hello, On Monday, March 14, 2011 10:54 AM KyongHo Cho wrote: 2011/3/8 Marek Szyprowski m.szyprow...@samsung.com: Hello, On Monday, March 07, 2011 2:19 AM KyongHo Cho wrote: This patch includes the following enhancements

[PATCH 0/2] ARM: EXYNOS4: Enhancement of System MMU

2011-03-06 Thread KyongHo Cho
This patch includes the following enhancements for System MMU: - Enhanced readability - Removal of unused data structures or their members - Simplified function definitions - Corrections of some logical errors - Full compliance with Linux coding style - Simpler way of registering callback

[PATCH 1/2] ARM: EXYNOS4: Enhancement of System MMU driver

2011-03-06 Thread KyongHo Cho
functions of System MMU faults Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/dev-sysmmu.c | 23 ++- arch/arm/mach-exynos4/include/mach/regs-sysmmu.h |4 + arch/arm/mach-exynos4/include/mach/sysmmu.h | 88 +- arch/arm/plat-s5p/include/plat

[PATCH 2/2] ARM: EXYNOS4: Implement Clock gating for System MMU

2011-03-06 Thread KyongHo Cho
. Therefore, clock gating on System MMUs are still invisible to the outside of the System MMU driver. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos4/clock.c | 83 ++- arch/arm/mach-exynos4/dev-sysmmu.c | 22

Re: [PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-24 Thread KyongHo Cho
On Tue, Jan 25, 2011 at 2:58 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Mon, Jan 24, 2011 at 08:52:17AM -0800, Dave Hansen wrote: On Sun, 2011-01-23 at 18:05 +, Russell King - ARM Linux wrote: On Thu, Jan 20, 2011 at 10:11:27AM -0800, Dave Hansen wrote: On Thu,

Re: [PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-21 Thread KyongHo Cho
On Fri, Jan 21, 2011 at 7:38 PM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Fri, Jan 21, 2011 at 11:12:27AM +0900, KyongHo Cho wrote: Since the size of section is 256 mib and NR_BANKS is defined as 8, no ARM system can have more RAM than 2GiB in the current implementation

[PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-20 Thread KyongHo Cho
that simple increasing the pointer to page descriptors does not exceed the boundary of a section. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mm/init.c | 74 +++ 1 files changed, 51 insertions(+), 23 deletions(-) diff --git a/arch

Re: [PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-20 Thread KyongHo Cho
On Fri, Jan 21, 2011 at 2:20 AM, Dave Hansen d...@linux.vnet.ibm.com wrote: On Thu, 2011-01-20 at 18:45 +0900, KyongHo Cho wrote: Sparsemem allows that a bank of memory spans over several adjacent sections if the start address and the end address of the bank belong to different sections. When

Re: [PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-20 Thread KyongHo Cho
On Fri, Jan 21, 2011 at 2:44 AM, Minchan Kim minchan@gmail.com wrote: Fix linux-arm-kernel address. Thank you! Too late in the night:) On Fri, Jan 21, 2011 at 2:43 AM, Minchan Kim minchan@gmail.com wrote: Restore Cced. On Fri, Jan 21, 2011 at 2:24 AM, KyongHo Cho pullip.li

Re: [PATCH] ARM: mm: Regarding section when dealing with meminfo

2011-01-20 Thread KyongHo Cho
On Fri, Jan 21, 2011 at 3:01 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Thu, Jan 20, 2011 at 09:20:47AM -0800, Dave Hansen wrote: This problem actually exists without sparsemem, too.  Discontigmem (at least) does it as well. We don't expect banks to cross sparsemem

[RFCv2,0/8] mm: vcm: The Virtual Memory Manager for multiple IOMMUs

2010-12-16 Thread KyongHo Cho
Hello, The VCM is a framework to deal with multiple IOMMUs in a system with intuitive and abstract objects These patches are the bugfix and enhanced version of previous RFC by Michal Nazarewicz. (https://patchwork.kernel.org/patch/157451/) It is introduced by Zach Pfeffer and implemented by

[RFCv2,7/8] mm: vcm: vcm-cma: VCM CMA driver added

2010-12-16 Thread KyongHo Cho
From: Michal Nazarewicz m.nazarew...@samsung.com This commit adds a VCM driver that instead of using real hardware MMU emulates one and uses CMA for allocating contiguous memory chunks. Signed-off-by: Michal Nazarewicz m.nazarew...@samsung.com Signed-off-by: Kyungmin Park

[RFCv2,4/8] mm: vcm: VCM VMM driver added

2010-12-16 Thread KyongHo Cho
From: Michal Nazarewicz m.nazarew...@samsung.com This commit adds a VCM VMM driver that handles kernl virtual address space mappings. The VCM context is available as a static object vcm_vmm. It is mostly just a wrapper around vmap() function. Signed-off-by: Michal Nazarewicz

  1   2   >