>From 18f033175030a1d42cf58b4930682a35de3e7412 Mon Sep 17 00:00:00 2001 From: Dmitry Eremin-Solenikov Date: Sun, 29 May 2011 00:53:29 +0400 Subject: [PATCH] pxa: don't ask for a buffer from DMA zone PXA don't have special DMA zone. And since 197b59ae6e8bee56fcef37ea2482dc08414e2ac (mm: fail GFP_DMA allocations when ZONE_DMA is not configured) allocation with GFP_DMA set will fail with a trace like this: ------------[ cut here ]------------ WARNING: at mm/page_alloc.c:2251 __alloc_pages_nodemask+0xa0/0x5ac() Modules linked in: [] (unwind_backtrace+0x0/0xf0) from [] (warn_slowpath_common+0x4c/0x64) [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x18/0x1c) [] (warn_slowpath_null+0x18/0x1c) from [] (__alloc_pages_nodemask+0xa0/0x5ac) [] (__alloc_pages_nodemask+0xa0/0x5ac) from [] (__get_free_pages+0x10/0x3c) [] (__get_free_pages+0x10/0x3c) from [] (pxa_irda_init_iobuf+0x18/0x48) [] (pxa_irda_init_iobuf+0x18/0x48) from [] (pxa_irda_probe+0x11c/0x32c) [] (pxa_irda_probe+0x11c/0x32c) from [] (platform_drv_probe+0x14/0x18) [] (platform_drv_probe+0x14/0x18) from [] (really_probe+0xa0/0x158) [] (really_probe+0xa0/0x158) from [] (driver_probe_device+0x4c/0x64) [] (driver_probe_device+0x4c/0x64) from [] (__driver_attach+0x60/0x84) [] (__driver_attach+0x60/0x84) from [] (bus_for_each_dev+0x48/0x84) [] (bus_for_each_dev+0x48/0x84) from [] (bus_add_driver+0xa8/0x220) [] (bus_add_driver+0xa8/0x220) from [] (driver_register+0xac/0x13c) [] (driver_register+0xac/0x13c) from [] (do_one_initcall+0x94/0x16c) [] (do_one_initcall+0x94/0x16c) from [] (kernel_init+0x94/0x140) [] (kernel_init+0x94/0x140) from [] (kernel_thread_exit+0x0/0x8) ---[ end trace 0b8bf08f70147098 ]--- Signed-off-by: Dmitry Eremin-Solenikov --- drivers/net/irda/pxaficp_ir.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c index 001ed0a..a5ebaef 100644 --- a/drivers/net/irda/pxaficp_ir.c +++ b/drivers/net/irda/pxaficp_ir.c @@ -805,7 +805,7 @@ static int pxa_irda_resume(struct platform_device *_dev) static int pxa_irda_init_iobuf(iobuff_t *io, int size) { - io->head = kmalloc(size, GFP_KERNEL | GFP_DMA); + io->head = kmalloc(size, GFP_KERNEL); if (io->head != NULL) { io->truesize = size; io->in_frame = FALSE; -- 1.7.4.4