Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757346AbYG3Wpi (ORCPT ); Wed, 30 Jul 2008 18:45:38 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752940AbYG3Wp3 (ORCPT ); Wed, 30 Jul 2008 18:45:29 -0400 Received: from gate.crashing.org ([63.228.1.57]:53759 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbYG3Wp2 (ORCPT ); Wed, 30 Jul 2008 18:45:28 -0400 Subject: Re: [PATCH] add iommu_num_pages helper function From: Benjamin Herrenschmidt Reply-To: benh@kernel.crashing.org To: David Miller Cc: joerg.roedel@amd.com, sfr@canb.auug.org.au, fujita.tomonori@lab.ntt.co.jp, mingo@elte.hu, mingo@redhat.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org, bhavna.sarathy@amd.com, robert.richter@amd.com, torvalds@linux-foundation.org, akpm@linux-foundation.org, jbarnes@virtuousgeek.org, linux-next@vger.kernel.org In-Reply-To: <20080729.031005.203132019.davem@davemloft.net> References: <20080728.222439.176200666.davem@davemloft.net> <20080729164523.bfd2d539.sfr@canb.auug.org.au> <20080729095027.GA4851@amd.com> <20080729.031005.203132019.davem@davemloft.net> Content-Type: text/plain Date: Thu, 31 Jul 2008 08:44:32 +1000 Message-Id: <1217457872.11188.350.camel@pasglop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 733 Lines: 20 On Tue, 2008-07-29 at 03:10 -0700, David Miller wrote: > From: Joerg Roedel > Date: Tue, 29 Jul 2008 11:50:27 +0200 > > > I think moving that function to x86-only code is the best solution for > > now. Before moving it back to generic code we need an architecture > > independent way to find out the IOMMU page size. > > My suggestion (again) is to pass it in as a "const unsigned long > io_page_size" argument and update the callers. Yeah. That's better Ben. -- 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/