Merge branch 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze
* 'for-linus' of git://git.monstr.eu/linux-2.6-microblaze: microblaze: Fix sg_dma_len() regression microblaze: Define ARCH_SLAB_MINALIGN to fix slab crash
This commit is contained in:
commit
e411f2dda4
@ -34,6 +34,8 @@
|
|||||||
/* MS be sure that SLAB allocates aligned objects */
|
/* MS be sure that SLAB allocates aligned objects */
|
||||||
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
|
#define ARCH_KMALLOC_MINALIGN L1_CACHE_BYTES
|
||||||
|
|
||||||
|
#define ARCH_SLAB_MINALIGN L1_CACHE_BYTES
|
||||||
|
|
||||||
#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
|
#define PAGE_UP(addr) (((addr)+((PAGE_SIZE)-1))&(~((PAGE_SIZE)-1)))
|
||||||
#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
|
#define PAGE_DOWN(addr) ((addr)&(~((PAGE_SIZE)-1)))
|
||||||
|
|
||||||
|
@ -90,7 +90,6 @@ static int dma_direct_map_sg(struct device *dev, struct scatterlist *sgl,
|
|||||||
/* FIXME this part of code is untested */
|
/* FIXME this part of code is untested */
|
||||||
for_each_sg(sgl, sg, nents, i) {
|
for_each_sg(sgl, sg, nents, i) {
|
||||||
sg->dma_address = sg_phys(sg) + get_dma_direct_offset(dev);
|
sg->dma_address = sg_phys(sg) + get_dma_direct_offset(dev);
|
||||||
sg->dma_length = sg->length;
|
|
||||||
__dma_sync_page(page_to_phys(sg_page(sg)), sg->offset,
|
__dma_sync_page(page_to_phys(sg_page(sg)), sg->offset,
|
||||||
sg->length, direction);
|
sg->length, direction);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user