lkml.org 
[lkml]   [2006]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC 0/8] Optional ZONE_DMA
Date

> > On x86_64 systems also usually we do not need ZONE_DMA since there
> > are barely any ISA DMA devices around (or are you still using a floppy?).
> > So for most cases the zone can be dropped. Also if the x86_64 systems
> > has less than 4G RAM or DMA controllers that actually can do 64 bit
> > then we also do not need ZONE_DMA32. My x86_64 system has 1G of
> > memory therefore I can run with a single zone.
>
> Keep in mind that:

Yes we can't really make it optional. There are reasons to use GFP_DMA
even without ISA. Also on x86-64 CONFIG_ISA is never set so it would
completely eliminate GFP_DMA, which we can't do.

That said however nearly users of GFP_DMA outside arch/* are wrong.
They should be all audited and convered to use the PCI DMA API instead.

> -LPC devices like the floppy controller, maybe enhanced parallel, etc.
> may have 24-bit DMA restrictions even if there is no physical ISA bus.
>
> -Even in totally ISA and LPC-free systems, some PCI devices (like those
> that were a quick hack of an ISA device onto PCI) still have 24-bit
> address restrictions. There are other devices that have sub-32-bit DMA
> capabilities, like Broadcom wireless chips that only address 31 bits
> (although I think they are fixing this in the driver). Without the DMA
> zone there is no way to ensure that these requests can be satisfied.

There are also devices with 31 or 30 bits that also fall back to GFP_DMA
and a couple of other cases.


-Andi
-
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/

\
 
 \ /
  Last update: 2006-07-10 02:07    [W:0.069 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site