Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932528AbbG1Kl4 (ORCPT ); Tue, 28 Jul 2015 06:41:56 -0400 Received: from eu-smtp-delivery-143.mimecast.com ([207.82.80.143]:64296 "EHLO eu-smtp-delivery-143.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754834AbbG1Klz convert rfc822-to-8bit (ORCPT ); Tue, 28 Jul 2015 06:41:55 -0400 Message-ID: <55B75C69.30200@arm.com> Date: Tue, 28 Jul 2015 11:41:45 +0100 From: Robin Murphy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Ashutosh Dixit CC: Joerg Roedel , Greg Kroah-Hartman , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , Andrew Morton , "David S. Miller" , Sudeep Dutt , Nikhil Rao , Anil S Keshavamurthy , Harish Chegondi , "sakari.ailus@linux.intel.com" Subject: Re: [PATCH char-misc-next 10/19] lib: convert iova.c into a library References: <8131ebc8ecb5ef13ef0aa4c49dabe9694f0e410f.1438040669.git.ashutosh.dixit@intel.com> <20150728100340.GR10969@8bytes.org> In-Reply-To: <20150728100340.GR10969@8bytes.org> X-OriginalArrivalTime: 28 Jul 2015 10:41:46.0410 (UTC) FILETIME=[004160A0:01D0C922] X-MC-Unique: onbMdg2PRlOTpljvSIiNTQ-1 Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1353 Lines: 34 On 28/07/15 11:03, Joerg Roedel wrote: > On Mon, Jul 27, 2015 at 04:57:32PM -0700, Ashutosh Dixit wrote: >> From: Harish Chegondi >> >> This patch converts iova.c into a library, moving it from >> drivers/iommu/ to lib/, and exports its virtual address allocation and >> management functions so that other modules can reuse them. >> >> Cc: Joerg Roedel >> Reviewed-by: Anil S Keshavamurthy >> Reviewed-by: Sudeep Dutt >> Signed-off-by: Harish Chegondi > > Where is this going to be used outside of the IOMMU world? > ...and how does it relate to the patches from Sakari (+CC) doing much the same thing[1]? Having gone and fished out the main LKML thread ([2], to help anyone else missing it), I don't see any obvious dependency on the Intel IOMMU driver - what happens here if that is compiled out and hasn't called iommu_iova_cache_init() first? Robin. [1]:http://thread.gmane.org/gmane.linux.kernel.iommu/10142 [2]:http://thread.gmane.org/gmane.linux.kernel/2005895 -- 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/