Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757932Ab1FFUJ4 (ORCPT ); Mon, 6 Jun 2011 16:09:56 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:53041 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757213Ab1FFUJy (ORCPT ); Mon, 6 Jun 2011 16:09:54 -0400 MIME-Version: 1.0 X-Originating-IP: [109.186.65.238] In-Reply-To: <20110606192030.GA4356@amd.com> References: <1307053663-24572-1-git-send-email-ohad@wizery.com> <20110606100950.GC30762@amd.com> <20110606153557.GE1953@amd.com> <20110606192030.GA4356@amd.com> From: Ohad Ben-Cohen Date: Mon, 6 Jun 2011 23:09:33 +0300 Message-ID: Subject: Re: [RFC 0/6] iommu: generic api migration and grouping To: "Roedel, Joerg" Cc: "linux-media@vger.kernel.org" , "linux-omap@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "laurent.pinchart@ideasonboard.com" , "Hiroshi.DOYU@nokia.com" , "arnd@arndb.de" , "davidb@codeaurora.org" , Omar Ramirez Luna Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 25 On Mon, Jun 6, 2011 at 10:20 PM, Roedel, Joerg wrote: > Well, it certainly makes sense to have a single implementation for this. > But I want to hide this complexity to the user of the IOMMU-API. The > best choice is to put this into the layer between the IOMMU-API and the > backend implementation. I agree. The IOMMU API should take physically contiguous regions from the user, split them up according to page-sizes (/alignment requirements) supported by the hardware, and then tell the underlying implementation what to map where. > That interface is not put into stone. There were other complains about > the ->unmap part recently, so there is certainly room for improvement > there. Once the supported page sizes are exposed to the framework, the current ->unmap API should probably be enough. 'va' + 'order' sounds like all the information an implementation needs to unmap a page. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/