From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id 4DB3F67A79 for ; Fri, 2 Jun 2006 17:32:58 +1000 (EST) Subject: RE: [PATCH/2.6.17-rc4 1/10] Powerpc: Add general support for mpc7 448h pc2 (Taiga) platform From: Benjamin Herrenschmidt To: Zang Roy-r61911 In-Reply-To: <9FCDBA58F226D911B202000BDBAD4673066CF5BE@zch01exm40.ap.freescale.net> References: <9FCDBA58F226D911B202000BDBAD4673066CF5BE@zch01exm40.ap.freescale.net> Content-Type: text/plain Date: Fri, 02 Jun 2006 17:32:44 +1000 Message-Id: <1149233565.16202.62.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev list , Yang Xin-Xin-r48390 , Paul Mackerras , Alexandre.Bounine@tundra.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > If I really need to use bat0 or bat1( I see that the general mmu use bat2 and bat3, > where should I set up them? > > For tsi108 pci configuration access, I need to map 16Mbyte > physical address. If I do not use an extra bat, I can not get the correct > virtual address use ioremap. What do you mean ? An ioremap will work, it will give you any virtual address, you just have to store that in a global instead of hard coding it. Hard coded virtual addresses are bad. Especially for things like PCI config space that really isn't performance sensitive. Ben.