From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH v12 2/3] ARM: EXYNOS: Change System MMU platform device definitions Date: Thu, 15 Mar 2012 12:12:27 +0100 Message-ID: <20120315111227.GA2384@amd.com> References: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Return-path: Content-Disposition: inline In-Reply-To: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org To: Cho KyongHo Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, 'Kukjin Kim' , 'Subash Patel' , 'Younglak Kim' , 'Kyungmin Park' , 'Sanghyun Lee' List-Id: iommu@lists.linux-foundation.org On Thu, Mar 15, 2012 at 05:32:39PM +0900, Cho KyongHo 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 of Exynos family. > 3. Handling System MMU with IOMMU API does not require an ID. > > This patch is the result of removing ID of System MMUs. > Instead, a device driver that needs to handle its System MMU must > use IOMMU API while its descriptor of platform device is given. > > This patch also includes the following enhancements: > - A System MMU device becomes a child if its power domain device. > - clkdev > > Cc: Kukjin Kim > Signed-off-by: KyongHo Cho > --- > arch/arm/mach-exynos/Kconfig | 10 +- > arch/arm/mach-exynos/Makefile | 2 +- > arch/arm/mach-exynos/clock-exynos4.c | 79 ++-- > arch/arm/mach-exynos/clock-exynos4.h | 2 + > arch/arm/mach-exynos/clock-exynos4210.c | 11 + > arch/arm/mach-exynos/clock-exynos4212.c | 28 ++- > arch/arm/mach-exynos/clock-exynos5.c | 90 +++++ > arch/arm/mach-exynos/dev-sysmmu.c | 457 ++++++++++++---------- > arch/arm/mach-exynos/include/mach/irqs.h | 25 +- > arch/arm/mach-exynos/include/mach/map.h | 38 ++ > arch/arm/mach-exynos/include/mach/regs-clock.h | 5 + > arch/arm/mach-exynos/include/mach/regs-sysmmu.h | 28 -- > arch/arm/mach-exynos/include/mach/sysmmu.h | 88 +++-- > arch/arm/mach-exynos/mach-armlex4210.c | 1 - > arch/arm/mach-exynos/mach-smdkv310.c | 1 - > 15 files changed, 529 insertions(+), 336 deletions(-) > delete mode 100644 arch/arm/mach-exynos/include/mach/regs-sysmmu.h This patch doesn't apply cleanly against upstream Linux (v3.3-rcX). Please rebase to upstream and resend. The other 2 patches apply fine. Joerg -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632 From mboxrd@z Thu Jan 1 00:00:00 1970 From: joerg.roedel@amd.com (Joerg Roedel) Date: Thu, 15 Mar 2012 12:12:27 +0100 Subject: [PATCH v12 2/3] ARM: EXYNOS: Change System MMU platform device definitions In-Reply-To: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> References: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> Message-ID: <20120315111227.GA2384@amd.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Mar 15, 2012 at 05:32:39PM +0900, Cho KyongHo 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 of Exynos family. > 3. Handling System MMU with IOMMU API does not require an ID. > > This patch is the result of removing ID of System MMUs. > Instead, a device driver that needs to handle its System MMU must > use IOMMU API while its descriptor of platform device is given. > > This patch also includes the following enhancements: > - A System MMU device becomes a child if its power domain device. > - clkdev > > Cc: Kukjin Kim > Signed-off-by: KyongHo Cho > --- > arch/arm/mach-exynos/Kconfig | 10 +- > arch/arm/mach-exynos/Makefile | 2 +- > arch/arm/mach-exynos/clock-exynos4.c | 79 ++-- > arch/arm/mach-exynos/clock-exynos4.h | 2 + > arch/arm/mach-exynos/clock-exynos4210.c | 11 + > arch/arm/mach-exynos/clock-exynos4212.c | 28 ++- > arch/arm/mach-exynos/clock-exynos5.c | 90 +++++ > arch/arm/mach-exynos/dev-sysmmu.c | 457 ++++++++++++---------- > arch/arm/mach-exynos/include/mach/irqs.h | 25 +- > arch/arm/mach-exynos/include/mach/map.h | 38 ++ > arch/arm/mach-exynos/include/mach/regs-clock.h | 5 + > arch/arm/mach-exynos/include/mach/regs-sysmmu.h | 28 -- > arch/arm/mach-exynos/include/mach/sysmmu.h | 88 +++-- > arch/arm/mach-exynos/mach-armlex4210.c | 1 - > arch/arm/mach-exynos/mach-smdkv310.c | 1 - > 15 files changed, 529 insertions(+), 336 deletions(-) > delete mode 100644 arch/arm/mach-exynos/include/mach/regs-sysmmu.h This patch doesn't apply cleanly against upstream Linux (v3.3-rcX). Please rebase to upstream and resend. The other 2 patches apply fine. Joerg -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760489Ab2COLMn (ORCPT ); Thu, 15 Mar 2012 07:12:43 -0400 Received: from tx2ehsobe003.messaging.microsoft.com ([65.55.88.13]:17777 "EHLO tx2outboundpool.messaging.microsoft.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751535Ab2COLMi (ORCPT ); Thu, 15 Mar 2012 07:12:38 -0400 X-SpamScore: -19 X-BigFish: VPS-19(zz1432N98dKzz1202hzz15d4R8275bhz2dh668h839h944hd25h) X-Forefront-Antispam-Report: CIP:163.181.249.109;KIP:(null);UIP:(null);IPV:NLI;H:ausb3twp02.amd.com;RD:none;EFVD:NLI X-WSS-ID: 0M0XB4S-02-366-02 X-M-MSG: Date: Thu, 15 Mar 2012 12:12:27 +0100 From: Joerg Roedel To: Cho KyongHo CC: , , , , "'Kukjin Kim'" , "'Subash Patel'" , "'Younglak Kim'" , "'Kyungmin Park'" , "'Sanghyun Lee'" Subject: Re: [PATCH v12 2/3] ARM: EXYNOS: Change System MMU platform device definitions Message-ID: <20120315111227.GA2384@amd.com> References: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <000201cd0286$2e6fbb40$8b4f31c0$%cho@samsung.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-OriginatorOrg: amd.com Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2012 at 05:32:39PM +0900, Cho KyongHo 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 of Exynos family. > 3. Handling System MMU with IOMMU API does not require an ID. > > This patch is the result of removing ID of System MMUs. > Instead, a device driver that needs to handle its System MMU must > use IOMMU API while its descriptor of platform device is given. > > This patch also includes the following enhancements: > - A System MMU device becomes a child if its power domain device. > - clkdev > > Cc: Kukjin Kim > Signed-off-by: KyongHo Cho > --- > arch/arm/mach-exynos/Kconfig | 10 +- > arch/arm/mach-exynos/Makefile | 2 +- > arch/arm/mach-exynos/clock-exynos4.c | 79 ++-- > arch/arm/mach-exynos/clock-exynos4.h | 2 + > arch/arm/mach-exynos/clock-exynos4210.c | 11 + > arch/arm/mach-exynos/clock-exynos4212.c | 28 ++- > arch/arm/mach-exynos/clock-exynos5.c | 90 +++++ > arch/arm/mach-exynos/dev-sysmmu.c | 457 ++++++++++++---------- > arch/arm/mach-exynos/include/mach/irqs.h | 25 +- > arch/arm/mach-exynos/include/mach/map.h | 38 ++ > arch/arm/mach-exynos/include/mach/regs-clock.h | 5 + > arch/arm/mach-exynos/include/mach/regs-sysmmu.h | 28 -- > arch/arm/mach-exynos/include/mach/sysmmu.h | 88 +++-- > arch/arm/mach-exynos/mach-armlex4210.c | 1 - > arch/arm/mach-exynos/mach-smdkv310.c | 1 - > 15 files changed, 529 insertions(+), 336 deletions(-) > delete mode 100644 arch/arm/mach-exynos/include/mach/regs-sysmmu.h This patch doesn't apply cleanly against upstream Linux (v3.3-rcX). Please rebase to upstream and resend. The other 2 patches apply fine. Joerg -- AMD Operating System Research Center Advanced Micro Devices GmbH Einsteinring 24 85609 Dornach General Managers: Alberto Bozzo Registration: Dornach, Landkr. Muenchen; Registerger. Muenchen, HRB Nr. 43632