views:

19

answers:

0

Hi, I am trying to increase the DMA size to 16MB from current 10MB in my arm linux kernel 2.6.29 running on android phone. But my kernel crashes with following error. Phone has total 256MB RAM.

I modified following line in file arch/arm/mach-pxa/include/mach/memory.h

#define CONSISTENT_DMA_SIZE 16 * 1024 * 1024

But kernel crashed with this change. If I make the value to 12MB then it works fine. I dont know what else I need to change to increase the DMA size. Can anybody help/ Thanks

<4>WARNING: at arch/arm/mm/dma-mapping.c:467 consistent_init+0xd4/0xfc()
Modules linked in:
[<c003684c>] (dump_stack+0x0/0x14) from [<c0061ff4>] (warn_slowpath+0x70/0x8c)
[<c0061f84>] (warn_slowpath+0x0/0x8c) from [<c000d824>] (consistent_init+0xd4/0xfc)
 r3:00000402<2>BUG: recent printk recursion!
Internal error: : 23 [#1]
Modules linked in:
CPU: 0    Not tainted  (2.6.29 #90)
PC is at put_dec+0x160/0x1a0
LR is at 0x36
pc : [<c0156fd8>]    lr : [<00000036>]    psr: 60000093
sp : cc7cdafc  ip : 00000010  fp : cc7cdb38
r10: 0000003c  r9 : cc7cdb5f  r8 : 00000082
r7 : 00000035  r6 : 0000000a  r5 : 000000a0  r4 : 00000035
r3 : 00000036  r2 : 00000000  r1 : 00000001  r0 : 00000032
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
Control: 0400397f  Table: a0004018  DAC: 00000035    
PC: 0xc0156f58: