public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* mem-to-mem copy using fdma ...
@ 2008-01-30  9:32 Ha Nguyen
  2008-01-30 13:38 ` Stuart MENEFY
  2008-01-30 15:37 ` Ha Nguyen
  0 siblings, 2 replies; 3+ messages in thread
From: Ha Nguyen @ 2008-01-30  9:32 UTC (permalink / raw)
  To: linux-sh

Hi all,

I have to read UDP packets from sk_buff to my module in kernel space
and the udp stack uses copy_to_user() to do my task. I'm wondering if
using dma for mem-to-mem copy can improve data transfer performance
instead of using copy_to_user()???

If yes, could someone gives me some hints to go with it. I'm currently
working on ST7109 and stlinux 2.6.17.14. I have tried the guide at
http://www.stlinux.com/docs/manual/distribution/fdma_legacy.php and
http://www.stlinux.com/docs/manual/distribution/fdma_sh_exmpl1.php but
not succeeded, kernel crashed with the following error:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
pc = 86cd56aa
*pde = 00000000
Oops: 0001 [#1]

Pid : 818, Comm: udhcpc
PC is at create_llu_list+0x86/0x8c
PC : 86cd56aa SP : 8f633d38 SR : 40008001 TEA : c0103a64 Not tainted
R0 : 00000000 R1 : 00000000 R2 : 8f633d80 R3 : 00000001
R4 : 8f633d80 R5 : 00000000 R6 : 00000000 R7 : 00000000
R8 : 00000001 R9 : 8f633d40 R10 : 00000030 R11 : 86d6616c
R12 : 0f516ae0 R13 : 86d6616c R14 : 8fbc6000
MACH: 00000000 MACL: 00000000 GBR : 295737e8 PR : 86cd696c

I would really appreciate any feedback! Thanks!

/ha

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-30 15:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-30  9:32 mem-to-mem copy using fdma Ha Nguyen
2008-01-30 13:38 ` Stuart MENEFY
2008-01-30 15:37 ` Ha Nguyen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox