On Mon, Apr 10, 2006 at 06:07:32AM +0200, Michael Buesch wrote: > On Monday 10 April 2006 06:01, you wrote: > > Since the driver already sets the correct dma_mask, there is no reason > > to bail there. In fact if you have an iommu, I think you can have a > > address above 1G which will be ok for the device (if it isn't true then > > the powerpc dma_alloc_coherent with iommu needs to be fixed because it > > doesn't respect the the dma_mask). > > > > Please comment or apply. > > NACK. Don't apply that patch. > I know it is odd, but people are actually hitting these messages. > Maybe benh can explain the issues. I don't know... > Yes, I know they hit the message, that's from a message in some forum that i got interested in the issue. It probably comes from an allocation from: http://www.linux-m32r.org/lxr/http/source/arch/powerpc/kernel/pci_direct_iommu.c#L32
Either the ppc code is wrong (it doesn't enforce dma_mask) either the driver still works without the check. Maybe ppc should do the same thing as i386: 47 if (dev == NULL || (dev->coherent_dma_mask < 0xffffffff)) 48 gfp |= GFP_DMA; thanks, Benoit -- powered by bash/screen/(urxvt/fvwm|linux-console)/gentoo/gnu/linux OS - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
