Re: ZONE_DMA on MIPS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Mar 20, 2007 at 01:36:08AM +0900, Atsushi Nemoto wrote:

> On Mon, 19 Mar 2007 15:48:21 +0000, Ralf Baechle <ralf@xxxxxxxxxxxxxx> 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:

config GENERIC_ISA_DMA
	bool
	select ZONE_DMA

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

> 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.

  Ralf


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux