From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Deacon Subject: Re: [RFC PATCH] iommu: add ARM short descriptor page table allocator. Date: Tue, 5 May 2015 18:05:41 +0100 Message-ID: <20150505170541.GN1550@arm.com> References: <1430206881-18294-1-git-send-email-yong.wu@mediatek.com> <20150505161802.GA20611@8bytes.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150505161802.GA20611-zLv9SwRftAIdnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Joerg Roedel Cc: "srv_heupstream-NuS5LvNUpcJWk0Htik3J/w@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Tomasz Figa , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , Sascha Hauer , Matthias Brugger , Yong Wu , Lucas Stach List-Id: linux-mediatek@lists.infradead.org On Tue, May 05, 2015 at 05:18:02PM +0100, Joerg Roedel wrote: > On Tue, Apr 28, 2015 at 03:41:21PM +0800, Yong Wu wrote: > > This patch is for ARM Short Descriptor Format.It has 2-levels > > pagetable and the allocator supports 4K/64K/1M/16M. > > > > Signed-off-by: Yong Wu > > --- > > drivers/iommu/Kconfig | 7 + > > drivers/iommu/Makefile | 1 + > > drivers/iommu/io-pgtable-arm-short.c | 489 +++++++++++++++++++++++++++++++++++ > > drivers/iommu/io-pgtable.c | 4 + > > drivers/iommu/io-pgtable.h | 6 + > > 5 files changed, 507 insertions(+) > > create mode 100644 drivers/iommu/io-pgtable-arm-short.c > > What is the context of this, where will it be used? I think the MT8173 IOMMU [1] uses this format and, since it's part of the ARM architecture, the ARM SMMU can make use of it too if the implementation supports it. Will [1] http://lists.infradead.org/pipermail/linux-mediatek/2015-March/000058.html