[PATCH 3/4] ARM: EXYNOS: add System MMU definition to DT

2012-11-14 Thread Cho KyongHo
This commit adds System MMU nodes to DT of Exynos SoCs. Signed-off-by: KyongHo Cho pullip@samsung.com --- .../devicetree/bindings/arm/samsung/system-mmu.txt | 42 ++ arch/arm/boot/dts/exynos4210.dtsi | 96 ++ arch/arm/boot/dts/exynos4x12.dtsi

[PATCH 0/4] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2012-11-14 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH 2/4] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU

2012-11-14 Thread Cho KyongHo
Touching some System MMU needs its master devices' clock to be enabled before. This commit adds clk_ops.set_parent of gating clocks of System MMU to ensure gating clocks of System MMU's mater devices are enabled when enabling gating clocks of System MMU. Signed-off-by: KyongHo Cho

[PATCH 4/4] iommu/exynos: enhancements of System MMU driver with DT

2012-11-14 Thread Cho KyongHo
This commit enhances power management of System MMU and its client devices with the following changes: - Each System MMU device becomes the parent device of its client device while probe(). Thus, exynos-iommu driver must be initialized before client devices. - System MMU driver does not

[PATCH 1/4] ARM: EXYNOS: remove system mmu initialization from arch/arm/ tree

2012-11-14 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile |

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

2012-11-29 Thread Cho KyongHo
-Original Message- From: Cho KyongHo [mailto:pullip@samsung.com] Sent: Monday, November 26, 2012 10:54 AM -Original Message- From: Cho KyongHo [mailto:pullip@samsung.com] Sent: Monday, November 26, 2012 10:28 AM -Original Message- From: Kukjin Kim

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

2012-12-11 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH v5 01/14] iommu/exynos: add missing cache flush for removed pagetable entries

2012-12-11 Thread Cho KyongHo
This commit adds cache flush for removed small page and large page entries in exynos_iommu_unmap(). Missing cache flush of removed page table entries can cause missing page fault interrupt when a master IP accesses an unmapped area. Signed-off-by: KyongHo Cho pullip@samsung.com ---

[PATCH v5 02/14] iommu/exynos: always use iommu fault handler

2012-12-11 Thread Cho KyongHo
This commit removes fault handler definition only for exynos-iommu driver. Instead, always call iommu fault handler when a fault is generated by a System MMU. Every new iommu_domain will have a default fault handler and it can be overridden with iommu_set_fault_handler(). The default fault handler

[PATCH v5 03/14] iommu/exynos: allocate lv2 page table from own slab

2012-12-11 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 24 1 file

[PATCH v5 04/14] iommu/exynos: change rwlock to spinlock

2012-12-11 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 28 ++-- 1 file changed, 14 insertions(+), 14

[PATCH v5 05/14] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU

2012-12-11 Thread Cho KyongHo
Touching some System MMU needs its master devices' clock to be enabled before. This commit adds clk_ops.set_parent of gating clocks of System MMU to ensure gating clocks of System MMU's mater devices are enabled when enabling gating clocks of System MMU. Signed-off-by: KyongHo Cho

[PATCH v5 06/14] ARM: EXYNOS: add System MMU definition to DT

2012-12-11 Thread Cho KyongHo
This commit adds System MMU nodes to DT of Exynos SoCs. Signed-off-by: KyongHo Cho pullip@samsung.com --- .../devicetree/bindings/arm/exynos/system-mmu.txt | 86 arch/arm/boot/dts/exynos4210.dtsi | 96 ++ arch/arm/boot/dts/exynos4x12.dtsi

[PATCH v5 07/14] iommu/exynos: support for device tree

2012-12-11 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 282 ++- 2 files changed, 174 insertions(+), 110 deletions(-) diff --git

[PATCH v5 08/14] iommu/exynos: set System MMU as the parent of client device

2012-12-11 Thread Cho KyongHo
This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier. Runtime suspend/resume on the device is also propagated to the System MMU. If a

[PATCH v5 09/14] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-12-11 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile |

[PATCH v5 10/14] iommu/exynos: add support for runtime pm and suspend/resume

2012-12-11 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 176

[PATCH v5 11/14] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-12-11 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information

[PATCH v5 12/14] iommu/exynos: pass version information from DT

2012-12-11 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v5 13/14] iommu/exynos: add literal name of System MMU for debugging

2012-12-11 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 72 1 file changed, 59 insertions(+), 13 deletions(-) diff

[PATCH v5 14/14] iommu/exynos: add debugfs entries for System MMU

2012-12-11 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198 insertions(+), 6 deletions(-) diff --git

[PATCH v2 0/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT

2012-11-19 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH v2 01/12] ARM: EXYNOS: remove system mmu initialization from arch/arm/ tree

2012-11-19 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile |

[PATCH v2 03/12] ARM: EXYNOS: add System MMU definition to DT

2012-11-19 Thread Cho KyongHo
This commit adds System MMU nodes to DT of Exynos SoCs. Signed-off-by: KyongHo Cho pullip@samsung.com --- .../devicetree/bindings/arm/exynos/system-mmu.txt | 86 arch/arm/boot/dts/exynos4210.dtsi | 96 ++ arch/arm/boot/dts/exynos4x12.dtsi

[PATCH v2 05/12] iommu/exynos: pass version information from DT

2012-11-19 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v2 07/12] iommu/exynos: change rwlock to spinlock

2012-11-19 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 32 1 file changed, 16 insertions(+),

[PATCH v2 11/12] iommu/exynos: add literal name of System MMU for debugging

2012-11-19 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 100 --- 1 file changed, 76 insertions(+), 24 deletions(-) diff

[PATCH v2 12/12] iommu/exynos: add debugfs entries for System MMU

2012-11-19 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198 insertions(+), 6 deletions(-) diff --git

[PATCH v2 08/12] iommu/exynos: set System MMU as the parent of client device

2012-11-19 Thread Cho KyongHo
This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier. Runtime suspend/resume on the device is also propagated to the System MMU. If a

[PATCH v6 06/12] iommu/exynos: allocate lv2 page table from own slab

2012-11-19 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 24 1 file

[PATCH v2 09/12] iommu/exynos: add supoort for runtime pm and suspend/resume

2012-11-19 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 175

[PATCH v2 10/12] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-11-19 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information

[PATCH v2 04/12] iommu/exynos: support for device tree

2012-11-19 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 286 ++- 2 files changed, 177 insertions(+), 111 deletions(-) diff --git

[PATCH v2 02/12] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU

2012-11-19 Thread Cho KyongHo
Touching some System MMU needs its master devices' clock to be enabled before. This commit adds clk_ops.set_parent of gating clocks of System MMU to ensure gating clocks of System MMU's mater devices are enabled when enabling gating clocks of System MMU. Signed-off-by: KyongHo Cho

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

2012-11-20 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH v3 01/12] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-11-20 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Change-Id: Ie29f587c01c645f28fc0e0b94eb3631a0170ebf5 Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig

[PATCH v3 02/12] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU

2012-11-20 Thread Cho KyongHo
Touching some System MMU needs its master devices' clock to be enabled before. This commit adds clk_ops.set_parent of gating clocks of System MMU to ensure gating clocks of System MMU's mater devices are enabled when enabling gating clocks of System MMU. Change-Id:

[PATCH v3 03/12] ARM: EXYNOS: add System MMU definition to DT

2012-11-20 Thread Cho KyongHo
This commit adds System MMU nodes to DT of Exynos SoCs. Change-Id: I30ea7adcc9c0ded876618f372ed1a5c5e935ee20 Signed-off-by: KyongHo Cho pullip@samsung.com --- .../devicetree/bindings/arm/exynos/system-mmu.txt | 86 arch/arm/boot/dts/exynos4210.dtsi | 96

[PATCH v3 04/12] iommu/exynos: support for device tree

2012-11-20 Thread Cho KyongHo
This commit adds device tree support for System MMU. Change-Id: If695448af4bd7829ad1543814281dfa8ce1e7aae Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 289 ++- 2 files changed,

[PATCH v3 05/12] iommu/exynos: pass version information from DT

2012-11-20 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v3 06/12] iommu/exynos: allocate lv2 page table from own slab

2012-11-20 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Change-Id: Ia25642c7c0143d2c50a8ed5a3d0dd9067f324c4e Signed-off-by: KyongHo Cho pullip@samsung.com ---

[PATCH v3 07/12] iommu/exynos: change rwlock to spinlock

2012-11-20 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Change-Id: Ia3365ccec0744e735b71f0389e5c56a0243bcd2c Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 32

[PATCH v3 08/12] iommu/exynos: set System MMU as the parent of client device

2012-11-20 Thread Cho KyongHo
This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier. Runtime suspend/resume on the device is also propagated to the System MMU. If a

[PATCH v3 09/12] iommu/exynos: add supoort for runtime pm and suspend/resume

2012-11-20 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Change-Id: Ic04c8f259d8b8af2846175dd7b98dbc4e463c96e Signed-off-by: KyongHo Cho

[PATCH v3 10/12] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-11-20 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information

[PATCH v3 11/12] iommu/exynos: add literal name of System MMU for debugging

2012-11-20 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Change-Id: If6720b69609880873ebaf160188f1e726a67b806 Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 100 --- 1

[PATCH v3 12/12] iommu/exynos: add debugfs entries for System MMU

2012-11-20 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Change-Id: I4afcdd925609d381e7329ec118ffe52e38dc340e Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198

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

2012-11-22 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH v4 01/12] ARM: EXYNOS: Add clk_ops for gating clocks of System MMU

2012-11-22 Thread Cho KyongHo
Touching some System MMU needs its master devices' clock to be enabled before. This commit adds clk_ops.set_parent of gating clocks of System MMU to ensure gating clocks of System MMU's mater devices are enabled when enabling gating clocks of System MMU. Signed-off-by: KyongHo Cho

[PATCH v4 06/12] iommu/exynos: allocate lv2 page table from own slab

2012-11-22 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 24 1 file

[PATCH v4 04/12] iommu/exynos: support for device tree

2012-11-22 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 289 ++- 2 files changed, 177 insertions(+), 114 deletions(-) diff --git

[PATCH v4 05/12] iommu/exynos: pass version information from DT

2012-11-22 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v4 08/12] iommu/exynos: set System MMU as the parent of client device

2012-11-22 Thread Cho KyongHo
[PATCH v4 08/12] iommu/exynos: set System MMU as the parent of client device This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier.

[PATCH v4 07/12] iommu/exynos: change rwlock to spinlock

2012-11-22 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 32 1 file changed, 16 insertions(+),

[PATCH v4 11/12] iommu/exynos: add literal name of System MMU for debugging

2012-11-22 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 100 --- 1 file changed, 76 insertions(+), 24 deletions(-) diff

[PATCH v4 12/12] iommu/exynos: add debugfs entries for System MMU

2012-11-22 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198 insertions(+), 6 deletions(-) diff --git

[PATCH v4 02/12] ARM: EXYNOS: add System MMU definition to DT

2012-11-22 Thread Cho KyongHo
This commit adds System MMU nodes to DT of Exynos SoCs. Signed-off-by: KyongHo Cho pullip@samsung.com --- .../devicetree/bindings/arm/exynos/system-mmu.txt | 86 arch/arm/boot/dts/exynos4210.dtsi | 96 ++ arch/arm/boot/dts/exynos4x12.dtsi

[PATCH v4 03/12] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-11-22 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile |

[PATCH v4 10/12] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-11-22 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information

[PATCH v4 09/12] iommu/exynos: add support for runtime pm and suspend/resume

2012-11-22 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 175

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

2012-11-25 Thread Cho KyongHo
-Original Message- From: Kukjin Kim [mailto:kgene@samsung.com] Sent: Friday, November 23, 2012 5:08 PM Subject: RE: [PATCH v4 00/12] iommu/exynos: Fixes and Enhancements of System MMU driver with DT Cho KyongHo wrote: The current exynos-iommu(System MMU) driver does

RE: [PATCH v4 03/12] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-11-25 Thread Cho KyongHo
-Original Message- From: Cho KyongHo [mailto:pullip@samsung.com] Sent: Thursday, November 22, 2012 8:33 PM diff --git a/arch/arm/mach-exynos/clock-exynos5.c b/arch/arm/mach-exynos/clock-exynos5.c index a86e88e..13d0ed6 100644 --- a/arch/arm/mach-exynos/clock-exynos5.c +++ b

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

2012-11-25 Thread Cho KyongHo
-Original Message- From: Cho KyongHo [mailto:pullip@samsung.com] Sent: Monday, November 26, 2012 10:28 AM -Original Message- From: Kukjin Kim [mailto:kgene@samsung.com] Sent: Friday, November 23, 2012 5:08 PM Subject: RE: [PATCH v4 00/12] iommu/exynos: Fixes

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

2012-12-25 Thread Cho KyongHo
notice: v6 patch-set is rebased on next/iommu-exynos branch of linux-samsung.git. This patch-set does not include 2 patches (05 and 06 patches in v5 patch-se) because they alread exist already in the branch. The current exynos-iommu(System MMU) driver does not work autonomously since it is lack

[PATCH v6 01/12] iommu/exynos: add missing cache flush for removed pagetable entries

2012-12-25 Thread Cho KyongHo
This commit adds cache flush for removed small page and large page entries in exynos_iommu_unmap(). Missing cache flush of removed page table entries can cause missing page fault interrupt when a master IP accesses an unmapped area. Signed-off-by: KyongHo Cho pullip@samsung.com ---

[PATCH v6 02/12] iommu/exynos: always use iommu fault handler

2012-12-25 Thread Cho KyongHo
This commit removes fault handler definition only for exynos-iommu driver. Instead, always call iommu fault handler when a fault is generated by a System MMU. Every new iommu_domain will have a default fault handler and it can be overridden with iommu_set_fault_handler(). The default fault handler

[PATCH v6 03/12] iommu/exynos: allocate lv2 page table from own slab

2012-12-25 Thread Cho KyongHo
Since kmalloc() does not guarantee the alignment of 1KB when it allocates 1KB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KB. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 24 1 file

[PATCH v6 04/12] iommu/exynos: change rwlock to spinlock

2012-12-25 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 28 ++-- 1 file changed, 14 insertions(+), 14

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

2012-12-25 Thread Cho KyongHo
This commit adds device tree support for System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/Kconfig| 2 +- drivers/iommu/exynos-iommu.c | 282 ++- 2 files changed, 174 insertions(+), 110 deletions(-) diff --git

[PATCH v6 06/12] iommu/exynos: set System MMU as the parent of client device

2012-12-25 Thread Cho KyongHo
This commit sets System MM as the parent of the client device for power management. If System MMU is the parent of a device, it is guaranteed that System MMU is suspended later than the device and resumed earlier. Runtime suspend/resume on the device is also propagated to the System MMU. If a

[PATCH v6 08/12] iommu/exynos: add support for runtime pm and suspend/resume

2012-12-25 Thread Cho KyongHo
This change enables the client device drivers not to care about the state of System MMU since the internal state of System MMU is controlled by the runtime PM and suspend/resume callback functions. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 176

[PATCH v6 09/12] iommu/exynos: add support for System MMU 3.2 and 3.3

2012-12-25 Thread Cho KyongHo
Since System MMU 3.2 and 3.3 have more prefetch buffers than 2, the existing function to set prefetch buffers, exynos_sysmmu_set_prefbuf() is not able to support them. This commit removes exynos_sysmmu_set_prefbuf() and introduces new interface, exynos_sysmmu_set_pbuf() that can pass information

[PATCH v6 11/12] iommu/exynos: add literal name of System MMU for debugging

2012-12-25 Thread Cho KyongHo
This commit adds System MMU name to the driver data of each System MMU. It is used by fault information. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 72 1 file changed, 59 insertions(+), 13 deletions(-) diff

[PATCH v6 12/12] iommu/exynos: add debugfs entries for System MMU

2012-12-25 Thread Cho KyongHo
This commit adds debugfs directory and nodes for inspecting internal state of System MMU. Signed-off-by: KyongHo Cho pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 204 +-- 1 file changed, 198 insertions(+), 6 deletions(-) diff --git

[PATCH v6 10/12] iommu/exynos: pass version information from DT

2012-12-25 Thread Cho KyongHo
System MMUs in some implementation of Exynos core does not include correct version information in the System MMU. If the version information is not correct, exynos-iommu driver cannot take advantages of feature of higher versions of System MMu like prefetching page table entries prior to TLB miss.

[PATCH v6 07/12] ARM: EXYNOS: remove system mmu initialization from exynos tree

2012-12-25 Thread Cho KyongHo
This removes System MMU initialization from arch/arm/mach-exynos/ to move them to DT and the exynos-iommu driver except gating clock definitions. Signed-off-by: KyongHo Cho pullip@samsung.com --- arch/arm/mach-exynos/Kconfig | 5 - arch/arm/mach-exynos/Makefile |

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-08-05 Thread Cho KyongHo
-Original Message- From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com] Sent: Saturday, August 03, 2013 2:14 AM Hi, On Friday, July 26, 2013 08:28:19 PM Cho KyongHo wrote: Signed-off-by: Cho KyongHo pullip@samsung.com --- .../bindings/iommu/samsung

RE: [PATCH v8 10/12] iommu/exynos: add bus notifier for registering System MMU

2013-08-05 Thread Cho KyongHo
-Original Message- From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com] Sent: Saturday, August 03, 2013 2:32 AM Hi, On Friday, July 26, 2013 08:30:17 PM Cho KyongHo wrote: When a device driver is registered, all constructs to handle System MMU is prepared by bus

RE: [PATCH] iommu/exynos: remove dead code (set_prefbuf)

2013-08-06 Thread Cho KyongHo
: exynos_sysmmu_set_prefbuf() is not called any where. Signed-off-by: Grant Grundler grund...@chromium.org Reviewed-by: Cho KyongHo pullip@samsung.com Thank you. KyongHo. --- drivers/iommu/exynos-iommu.c | 44 1 file changed, 44 deletions

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-08-06 Thread Cho KyongHo
-Original Message- From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com] Sent: Monday, August 05, 2013 10:10 PM On Monday, August 05, 2013 08:16:40 PM Cho KyongHo wrote: -Original Message- From: Bartlomiej Zolnierkiewicz [mailto:b.zolnier...@samsung.com

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-08-07 Thread Cho KyongHo
-Original Message- From: grund...@google.com [mailto:grund...@google.com] On Behalf Of Grant Grundler Sent: Wednesday, August 07, 2013 1:07 AM To: Marek Szyprowski Hi Marek, On Tue, Aug 6, 2013 at 6:17 AM, Marek Szyprowski m.szyprow...@samsung.com wrote: ... IMHO it is much

RE: [PATCH 2/2] iommu/exynos: Follow kernel coding style for __sysmmu_enable return type

2013-07-26 Thread Cho KyongHo
-Original Message- From: Antonios Motakis [mailto:a.mota...@virtualopensystems.com] Sent: Friday, July 26, 2013 12:35 AM On success, the __sysmmu_enable returns 1 instead of 0, which does not respect the convention described in Chapter 16 of the Linux kernel coding style. In

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

2013-07-26 Thread Cho KyongHo
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 device driver must ensure that its System MMU is disabled before MFC block is power-down not to invalidate IOTLB in the System MMU when I/O

[PATCH v8 01/12] iommu/exynos: do not include removed header

2013-07-26 Thread Cho KyongHo
This commit remove mach/sysmmu.h which is removed. Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c |3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 3f32d64..233f382

[PATCH v8 02/12] iommu/exynos: add missing cache flush for removed page table entries

2013-07-26 Thread Cho KyongHo
This commit adds cache flush for removed small and large page entries in exynos_iommu_unmap(). Missing cache flush of removed page table entries can cause missing page fault interrupt when a master IP accesses an unmapped area. Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu

[PATCH v8 03/12] iommu/exynos: fix page table maintenance

2013-07-26 Thread Cho KyongHo
This prevents allocating lv2 page table for the lv1 page table entry that already has 1MB page mapping. In addition some BUG_ON() is changed to WARN_ON(). Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 52 + 1 files

[PATCH v8 04/12] iommu/exynos: allocate lv2 page table from own slab

2013-07-26 Thread Cho KyongHo
Since kmalloc() does not guarantee that the allignment of 1KiB when it allocates 1KiB, it is required to allocate lv2 page table from own slab that guarantees alignment of 1KiB Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 24 1

[PATCH v8 05/12] clk: exynos5250: add gate clock descriptions of System MMU

2013-07-26 Thread Cho KyongHo
This adds gate clocks of all System MMUs and their master IPs that are not apeared in clk-exynos5250.c Signed-off-by: Cho KyongHo pullip@samsung.com --- .../devicetree/bindings/clock/exynos5250-clock.txt | 28 +- drivers/clk/samsung/clk-exynos5250.c | 57

[PATCH v8 07/12] iommu/exynos: support for device tree

2013-07-26 Thread Cho KyongHo
a single clock descriptor to make a device descriptor for a group of System MMUs. * removed dbgname member from sysmmu_drvdata structure. debugging kernel message for a System MMU is distinguisheable with the name of device descroptors. Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers

[PATCH v8 09/12] iommu/exynos: remove custom fault handler

2013-07-26 Thread Cho KyongHo
This commit removes custom fault handler. The device drivers that need to register fault handler can register with iommu_set_fault_handler(). Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 71 ++ 1 files changed, 17

[PATCH v8 08/12] iommu/exynos: remove prefetch buffer setting when enabling System MMU

2013-07-26 Thread Cho KyongHo
Prefetch buffer must be handled accurately, exact range of a buffer, frame by frame manually. Otherwise, it may causes page fault or deadlock in System MMU. Thus this patch removes prefetch buffer setting when System MMU is initialized(enabled). Signed-off-by: Cho KyongHo pullip@samsung.com

[PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-07-26 Thread Cho KyongHo
Signed-off-by: Cho KyongHo pullip@samsung.com --- .../bindings/iommu/samsung,exynos4210-sysmmu.txt | 103 +++ arch/arm/boot/dts/exynos4.dtsi | 122 arch/arm/boot/dts/exynos4210.dtsi | 25 ++ arch/arm/boot/dts/exynos4x12.dtsi

[PATCH v8 10/12] iommu/exynos: add bus notifier for registering System MMU

2013-07-26 Thread Cho KyongHo
When a device driver is registered, all constructs to handle System MMU is prepared by bus notifier call. Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 708 - 1 files changed, 552 insertions(+), 156 deletions

[PATCH v8 11/12] iommu/exynos: change rwlock to spinlock

2013-07-26 Thread Cho KyongHo
Since acquiring read_lock is not more frequent than write_lock, it is not beneficial to use rwlock, this commit changes rwlock to spinlock. Signed-off-by: Cho KyongHo pullip@samsung.com --- drivers/iommu/exynos-iommu.c | 36 ++-- 1 files changed, 18

[PATCH v8 12/12] iommu/exynos: return 0 if iommu_attach_device() successes

2013-07-26 Thread Cho KyongHo
the convention of the return value of success of common API is zero, this patch makes iommu_attach_device() call against exynos-iommu always return zero if the given device is successfully attached to the given iommu_domain even though it is already attached to the same iommu_domain. Signed-off-by: Cho

RE: [PATCH v8 05/12] clk: exynos5250: add gate clock descriptions of System MMU

2013-07-27 Thread Cho KyongHo
-Original Message- From: Mike Turquette [mailto:mturque...@linaro.org] Sent: Saturday, July 27, 2013 5:01 AM Quoting Cho KyongHo (2013-07-26 04:27:54) This adds gate clocks of all System MMUs and their master IPs that are not apeared in clk-exynos5250.c Signed-off-by: Cho

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-07-27 Thread Cho KyongHo
-Original Message- From: grund...@google.com [mailto:grund...@google.com] On Behalf Of Grant Grundler Sent: Saturday, July 27, 2013 2:58 AM On Fri, Jul 26, 2013 at 4:28 AM, Cho KyongHo pullip@samsung.com wrote: Signed-off-by: Cho KyongHo pullip@samsung.com

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-07-29 Thread Cho KyongHo
-Original Message- From: Sachin Kamat [mailto:sachin.ka...@linaro.org] Sent: Monday, July 29, 2013 3:38 PM Hi KyongHo, On 26 July 2013 16:58, Cho KyongHo pullip@samsung.com wrote: Signed-off-by: Cho KyongHo pullip@samsung.com --- .../bindings/iommu/samsung

RE: [PATCH v8 08/12] iommu/exynos: remove prefetch buffer setting when enabling System MMU

2013-07-29 Thread Cho KyongHo
-Original Message- From: grund...@google.com [mailto:grund...@google.com] On Behalf Of Grant Grundler Sent: Saturday, July 27, 2013 2:36 AM On Fri, Jul 26, 2013 at 4:28 AM, Cho KyongHo pullip@samsung.com wrote: Prefetch buffer must be handled accurately, exact range

RE: [PATCH v8 06/12] ARM: dts: Add description of System MMU of Exynos SoCs

2013-07-29 Thread Cho KyongHo
-Original Message- From: Cho KyongHo [mailto:pullip@samsung.com] Sent: Monday, July 29, 2013 4:20 PM -Original Message- From: Sachin Kamat [mailto:sachin.ka...@linaro.org] Sent: Monday, July 29, 2013 3:38 PM Hi KyongHo, On 26 July 2013 16:58, Cho KyongHo

  1   2   3   4   5   6   >