linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4
@ 2011-09-24  2:02 KyongHo Cho
  2011-09-24  2:02 ` [PATCH 1/4] ARM: EXYNOS4: Change System MMU device definition KyongHo Cho
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: KyongHo Cho @ 2011-09-24  2:02 UTC (permalink / raw)
  To: linux-arm-kernel

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 device
   driver wants to handle System MMU, it must bind its device with System
   MMU with sysmmu_set_owner().
 - clkdev
 - System MMU device driver is removed from arch/arm/plat-s5p to move it
   to driver/iommu directory.

Last 2 patches implements IOMMU API:
 - Implements IOMMU API and System MMU driver that is moved from
   arch/arm/plat-s5p.
 - Implements fault handling that is suggested by Ohad.
 - Used bus_set_iommu instead of register_iommu that is suggested by Joerg.

Diffstats:

arch/arm/mach-exynos4/Kconfig               |    2 -
arch/arm/mach-exynos4/clock.c               |   43 +-
arch/arm/mach-exynos4/dev-sysmmu.c          |  281 +++-------
arch/arm/mach-exynos4/include/mach/irqs.h   |    1 -
arch/arm/mach-exynos4/include/mach/map.h    |    1 -
arch/arm/mach-exynos4/include/mach/sysmmu.h |   96 ++--
arch/arm/mach-exynos4/mach-armlex4210.c     |   24 +-
arch/arm/mach-exynos4/mach-smdkv310.c       |   28 +-
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 ----------
drivers/iommu/Kconfig                       |   14 +
drivers/iommu/Makefile                      |    1 +
drivers/iommu/exynos_iommu.c                |  859 +++++++++++++++++++++++++++
15 files changed, 1084 insertions(+), 682 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu
@ 2011-09-24  7:36 조경호
  0 siblings, 0 replies; 8+ messages in thread
From: 조경호 @ 2011-09-24  7:36 UTC (permalink / raw)
  To: linux-arm-kernel

This replaces register_iommu() with bus_set_iommu() according to the
suggestion of Joerg Roedel.

Cc: Joerg Roedel 
Signed-off-by: KyongHo Cho 
---
drivers/iommu/exynos_iommu.c |    2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/iommu/exynos_iommu.c b/drivers/iommu/exynos_iommu.c
index fe5b5d8..148e238 100644
--- a/drivers/iommu/exynos_iommu.c
+++ b/drivers/iommu/exynos_iommu.c
@@ -852,7 +852,7 @@ static int __init exynos_iommu_init(void)
if (!l2table_cachep)
return -ENOMEM;

- register_iommu(&exynos_iommu_ops);
+ bus_set_iommu(&platform_bus_type, &omap_iommu_ops);

return 0;
}
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu
@ 2011-09-24  7:31 조경호
  0 siblings, 0 replies; 8+ messages in thread
From: 조경호 @ 2011-09-24  7:31 UTC (permalink / raw)
  To: linux-arm-kernel

This replaces register_iommu() with bus_set_iommu() according to the
suggestion of Joerg Roedel.

Cc: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: KyongHo Cho <pullip.cho@samsung.com>
---
 drivers/iommu/exynos_iommu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/iommu/exynos_iommu.c b/drivers/iommu/exynos_iommu.c
index fe5b5d8..148e238 100644
--- a/drivers/iommu/exynos_iommu.c
+++ b/drivers/iommu/exynos_iommu.c
@@ -852,7 +852,7 @@ static int __init exynos_iommu_init(void)
 	if (!l2table_cachep)
 		return -ENOMEM;
 
-	register_iommu(&exynos_iommu_ops);
+	bus_set_iommu(&platform_bus_type, &omap_iommu_ops);
 
 	return 0;
 }
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU for Exynos4
@ 2011-09-24  0:38 KyongHo Cho
  2011-09-24  0:38 ` [PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu KyongHo Cho
  0 siblings, 1 reply; 8+ messages in thread
From: KyongHo Cho @ 2011-09-24  0:38 UTC (permalink / raw)
  To: linux-arm-kernel

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 master
   devices are initialized. If a System MMU is not initialized, it is no
   longer available.
 - Clock gating of System MMU with clkdev.
 - Moved System MMU driver to the IOMMU's dedicated directory,
   drivers/iommu.

The last 2 patches introduce new IOMMU API implementation for Exynos4
System MMU. They implements all IOMMU API including Ohad's latest
suggestion about MMU fault handling and Joerg's suggestion about
bus_type.

Diffstat:

arch/arm/mach-exynos4/Kconfig               |    2 -
arch/arm/mach-exynos4/clock.c               |   43 +-
arch/arm/mach-exynos4/dev-sysmmu.c          |  281 +++-------
arch/arm/mach-exynos4/include/mach/irqs.h   |    1 -
arch/arm/mach-exynos4/include/mach/map.h    |    1 -
arch/arm/mach-exynos4/include/mach/sysmmu.h |   96 ++--
arch/arm/mach-exynos4/mach-armlex4210.c     |   24 +-
arch/arm/mach-exynos4/mach-smdkv310.c       |   28 +-
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 ----------
drivers/iommu/Kconfig                       |   14 +
drivers/iommu/Makefile                      |    1 +
drivers/iommu/exynos_iommu.c                |  859 +++++++++++++++++++++++++++
15 files changed, 1084 insertions(+), 682 deletions(-)

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-09-24  7:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24  2:02 [PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU driver for Exynos4 KyongHo Cho
2011-09-24  2:02 ` [PATCH 1/4] ARM: EXYNOS4: Change System MMU device definition KyongHo Cho
2011-09-24  2:02 ` [PATCH 2/4] ARM: S5P: Remove system MMU driver from arm/plat-s5p KyongHo Cho
2011-09-24  2:02 ` [PATCH 3/4] iommu/exynos: Add iommu driver for Exynos4 Platforms KyongHo Cho
2011-09-24  2:02 ` [PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu KyongHo Cho
  -- strict thread matches above, loose matches on Subject: below --
2011-09-24  7:36 조경호
2011-09-24  7:31 조경호
2011-09-24  0:38 [PATCH 0/4] iommu/exynos: Add IOMMU and Enhance System MMU for Exynos4 KyongHo Cho
2011-09-24  0:38 ` [PATCH 4/4] iommu/exynos: Use bus_set_iommu instead of register_iommu KyongHo Cho

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).