[BK PATCH] dma_declare_coherent_memory

From: James Bottomley
Date: Sat Aug 14 2004 - 18:29:14 EST


This patch has been refined in mm for quite a while and now seems stable
enough for mainline.

I've added one extra bugfix over mm (Ian Molton spotted an error
calculating the index bits for the bitmaps).

The patch is available at:

bk://linux-voyager.bkbits.net/dma-declare-coherent-memory-2.6

The short changelog is:

Andrew Morton:
o Fix sparc compile error in dma-mapping.h

James Bottomley:
o lib/bitmap.c: fix incorrect use of BITS_TO_LONGS()
o dma_alloc_coherent() still needs to support a NULL device
o Fix region sizing problem in dma_mark_declared_memory_occupied()
o Fix bug in __get_vm_area() alignment code
o Fix incorrect prototype in the dma_declare_coherent_memory API
o Convert NCR_Q720 to use dma_declare_coherent_memory
o Add x86 implementation of dma_declare_coherent_memory
o Add vmalloc alignment constraints
o Add memory region bitmap implementations
o Add dma_declare_coherent_memory() API

And the diffstat:

Documentation/DMA-API.txt | 79 +++++++++++++++++++++++++++++
arch/i386/kernel/pci-dma.c | 111 ++++++++++++++++++++++++++++++++++++++++-
drivers/scsi/NCR_Q720.c | 21 ++++++-
include/asm-i386/dma-mapping.h | 12 ++++
include/linux/bitmap.h | 3 +
include/linux/device.h | 3 +
include/linux/dma-mapping.h | 29 ++++++++++
lib/bitmap.c | 82 ++++++++++++++++++++++++++++++
mm/vmalloc.c | 25 ++++++++-

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/