[Top] [All Lists]


To: Atsushi Nemoto <>
Subject: Re: ZONE_DMA on MIPS
From: Ralf Baechle <>
Date: Mon, 19 Mar 2007 22:20:31 +0000
In-reply-to: <>
Original-recipient: rfc822;
References: <> <> <>
User-agent: Mutt/
On Tue, Mar 20, 2007 at 01:36:08AM +0900, Atsushi Nemoto wrote:

> On Mon, 19 Mar 2007 15:48:21 +0000, Ralf Baechle <> wrote:
> > > Are there any other platforms requires special DMA zone?
> > 
> > Qemu supports more or less the full PC braind^Wheritage, including the
> > good old too-old floppy controller.  IP22 supports Indigo 2 systems
> > which have EISA support, so we only want ZONE_DMA if EISA is enabled.
> > For a bunch of other systems ZONE_DMA may be required to support b0rked
> > PCI cards that only support like 31-bit DMA addresses or even less.
> Hmm... So do you think making ZONE_DMA customizable for each platform
> (or user configurable) would have some sense?

It's probably reasonable to do something like:

        select ZONE_DMA

I don't think we should expose such deep technical details to the Kconfig

> For these legacy(?) PCI cards, we can check if it works or not by
> pci_set_dma_mask(), at least.

The Linux approach to handling such broken cards is not very gentle.  A
card that can't live with normal allocations, will always use bounce
ZONE_NORMAL buffers.

Obviously the message to the designers of PCI cards is to get their stuff
done right and not rely on OS kludgery to fix hardware shortcomings.

And while at it, we may want to think about ZONE_DMA32.  At least the
BCM1250 needs it for configs with more than 1GB memory due to it's
sparse memory map.


<Prev in Thread] Current Thread [Next in Thread>