* Fix up dma_alloc_coherent with 64bit DMA masks on i386.
@ 2003-01-08 19:46 davej
0 siblings, 0 replies; only message in thread
From: davej @ 2003-01-08 19:46 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
Cset 1.808 in 2.4 never got propagated forward to 2.5
It's pretty much the same fix as below (s/!=/</), but with the following
changes
- This was a patch to pci_alloc_consistant(), which now seems to be
dma_alloc_coherent()
- Removal of the u32 cast
diff -urpN --exclude-from=/home/davej/.exclude bk-linus/arch/i386/kernel/pci-dma.c linux-2.5/arch/i386/kernel/pci-dma.c
--- bk-linus/arch/i386/kernel/pci-dma.c 2003-01-08 10:46:59.000000000 -0100
+++ linux-2.5/arch/i386/kernel/pci-dma.c 2003-01-08 11:02:50.000000000 -0100
@@ -19,7 +19,7 @@ void *dma_alloc_coherent(struct device *
void *ret;
int gfp = GFP_ATOMIC;
- if (dev == NULL || ((u32)*dev->dma_mask != 0xffffffff))
+ if (dev == NULL || (*dev->dma_mask < 0xffffffff))
gfp |= GFP_DMA;
ret = (void *)__get_free_pages(gfp, get_order(size));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-01-08 19:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08 19:46 Fix up dma_alloc_coherent with 64bit DMA masks on i386 davej
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®