<div class="gmail_quote">
<div>Hi all,</div>
<div> I am trying to port linux 2.6.30 for my TSI108 based custom board where i am getting the following kernel panic message. I found that it was due to dma allocation function call particularly dma_alloc_coherent() of tsi108_open function. When we see the implementation of dma_alloc_coherent. It was bit changed from the previous linux versions it seems. </div>
<div> The implementation of dma_alloc_coherent was kept on the arch/powerpc/include/asm/dma-mapping.h file. Earlier implementation is not considering the first parameter what the tsi108 driver is passing as NULL. But the current implementation is considering this parameter and because of this the panic is coming what i believe.</div>
<div> </div>
<div> So kindly let me know any patches for this problem or any fixes.</div>
<div> </div>
<div>------------[ cut here ]------------<br>Kernel BUG at c019074c [verbose debug info unavailable]<br>Oops: Exception in kernel mode, sig: 5 [#1]<br>DPVME0447<br>NIP: c019074c LR: c019074c CTR: c014ea48<br>REGS: df82bd80 TRAP: 0700 Not tainted (2.6.30)<br>
MSR: 00029032 <EE,ME,CE,IR,DR> CR: 24000022 XER: 20000000<br>TASK = df82c000[1] 'swapper' THREAD: df82a000<br>GPR00: c019074c df82be30 df82c000 00000030 000013e0 ffffffff c014e998 00000035 <br>GPR08: c02f2af0 c02e7bb8 000013e0 c02cd8f4 24000042 00000000 00000002 00000000 <br>
GPR16: c02c0000 00000000 00000000 00000000 00000000 0ffaa41c c0300000 00000004 <br>GPR24: 00000000 00000000 c02f0000 c02f0000 df821030 00000000 df821000 df821300 <br>NIP [c019074c] tsi108_open+0x5c/0x90<br>LR [c019074c] tsi108_open+0x5c/0x90<br>
Call Trace:<br>[df82be30] [c019074c] tsi108_open+0x5c/0x90 (unreliable)<br>[df82be50] [c01b1564] dev_open+0xac/0x11c<br>[df82be70] [c01b1464] dev_change_flags+0x160/0x1b4<br>[df82be90] [c02bc5f8] ip_auto_config+0x18c/0xe5c<br>
[df82bf50] [c0003c8c] do_one_initcall+0x34/0x1a8<br>[df82bfd0] [c02a1848] kernel_init+0x9c/0x100<br>[df82bff0] [c0012064] kernel_thread+0x4c/0x68<br>Instruction dump:<br>807f003c 7fc8f378 4beb8d71 7c7d1b79 40820028 80bf003c 3c60c029 7fc6f378 <br>
386327c0 90be0028 809f0040 4be90669 <0fe00000> 48000000 80bf003c 3c60c029 <br>---[ end trace dc633a1da0ecdafb ]---<br>Kernel panic - not syncing: Attempted to kill init!<br>Rebooting in 180 seconds.. </div>
<div> </div>
<div>Regards,</div>
<div>T.</div></div><br>