Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031349AbXFHWte (ORCPT ); Fri, 8 Jun 2007 18:49:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752936AbXFHWt1 (ORCPT ); Fri, 8 Jun 2007 18:49:27 -0400 Received: from mga09.intel.com ([134.134.136.24]:35959 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752738AbXFHWt1 (ORCPT ); Fri, 8 Jun 2007 18:49:27 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.16,401,1175497200"; d="scan'208";a="94947700" Date: Fri, 8 Jun 2007 15:45:40 -0700 From: "Keshavamurthy, Anil S" To: Christoph Lameter Cc: "Keshavamurthy, Anil S" , Andrew Morton , linux-kernel@vger.kernel.org, ak@suse.de, gregkh@suse.de, muli@il.ibm.com, asit.k.mallick@intel.com, suresh.b.siddha@intel.com, arjan@linux.intel.com, ashok.raj@intel.com, shaohua.li@intel.com, davem@davemloft.net Subject: Re: [Intel-IOMMU 02/10] Library routine for pre-allocat pool handling Message-ID: <20070608224539.GA9851@linux-os.sc.intel.com> Reply-To: "Keshavamurthy, Anil S" References: <20070606185658.138237000@askeshav-devel.jf.intel.com> <20070606190042.510643000@askeshav-devel.jf.intel.com> <20070607162726.2236a296.akpm@linux-foundation.org> <20070608182156.GA24865@linux-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1182 Lines: 25 On Fri, Jun 08, 2007 at 03:32:08PM -0700, Christoph Lameter wrote: > On Fri, 8 Jun 2007, Keshavamurthy, Anil S wrote: > > > In the IOMMU case, we need exactly opposite of what mempool provides, > > i.e we always want to look for the element in the pool and if the pool > > has no element then go to OS as a worst case. This resource pool > > library routines do the same. Again, this resource pools > > grows and shrinks automatically to maintain the minimum pool > > elements in the background. I am not sure whether this totally > > opposite functionality of mempools and resource pools can be > > merged. > > What functionality are you missing in the page allocator? It seems that is > does what you want? Humm..I basically want to allocate memory during interrupt context and expect not to fail. I know this is a hard requirement :) I want to be able to reserve certain amount of memory specifically for IOMMU purpose. -Anil - 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/