From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org ([63.228.1.57]:50903 "EHLO gate.crashing.org") by vger.kernel.org with ESMTP id S268149AbUIKH25 (ORCPT ); Sat, 11 Sep 2004 03:28:57 -0400 Subject: Re: RFC: being more anal about iospace accesses.. From: Benjamin Herrenschmidt In-Reply-To: <20040911064205.GE6005@krispykreme> References: <20040911064205.GE6005@krispykreme> Content-Type: text/plain Message-Id: <1094887577.2543.175.camel@gaston> Mime-Version: 1.0 Date: Sat, 11 Sep 2004 17:26:18 +1000 Content-Transfer-Encoding: 7bit To: Anton Blanchard Cc: Linus Torvalds , Al Viro , Andrew Morton , Linux Arch list , Alan Cox , "David S. Miller" , Jeff Garzik List-ID: > > The problem comes when we have to remove a host bridge from a partition > and must have all IO and memory resources unmapped. Memory resources > take care of themselves since drivers iounmap those resources. IO > resources do not. I've been thinking about changing that to normal ioremap's like ppc32, relying on normal pointer arithmetic to get us the right address, but that would only work if all drivers properly stored their IO port "base" in a long, not an int, which might not be the case... As I wrote earlier, I also want to get rid of the imalloc stuff .... Ben.