[PATCH] DMA 4GB boundary protection

Olof Johansson olof at lixom.net
Fri Mar 30 00:52:52 EST 2007


On Thu, Mar 29, 2007 at 08:44:02AM -0500, Jake Moilanen wrote:
> On Thu, 2007-03-29 at 09:23 +1000, Benjamin Herrenschmidt wrote:
> > On Wed, 2007-03-28 at 13:17 -0500, Jake Moilanen wrote:
> > 
> > > One more try.
> > 
> > And patch is still mangled....
> 
> Hrm....I should just go back to Sylpheed.  
> 
> Unmangled version:
> 
> 
> There are many adapters which can not handle DMAing acrosss any 4 GB
> boundary.  For instance the latest Emulex adapters.  
> 
> This normally is not an issue as firmware gives dma-windows under
> 4gigs.  However, some of the new System-P boxes have dma-windows above
> 4gigs, and this present a problem.
> 
> During initialization of the IOMMU tables, the last entry at each 4GB
> boundary is marked as used.  Thus no mappings can cross the boundary.
> If a table ends at a 4GB boundary, the entry is not marked as used.
> 
> A boot option to remove this 4GB protection is given w/ protect4gb=off.
> This exposes the potential issue for driver and hardware development
> purposes.
> 
> Signed-off-by: Jake Moilanen <moilanen at austin.ibm.com>

Acked-by: Olof Johansson <olof at lixom.net>


-Olof



More information about the Linuxppc-dev mailing list