LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2007, 10:03 AM   #1
sudeepd
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Rep: Reputation: 0
Unhappy System Hang with DMA at 6Mbps and above


Please find an overview of what i am trying below.
I am working on Linux kernel 2.4-20.8 using Excalibur EPXA10F
processor.
I do a dev_alloc_skb in our ethernet driver and then do a netif_rx(skb) to give the skbuff to bridge.

Once skbuff is received from the bridge i need to give the pointer skbuff->data to the DMA hardware. There are two things i need to take care of. First of all i need to ensure that the contents of
skbuff->data is consistent since we have Icache and Dcache enabled. For this i am doing a
pci_map_single( NULL, skbuff->data, datalen,PCI_DMA_TODEVICE).

Secondly i need to ensure that the physical address of the pointer
skbuff->data is provided just before giving it to the hardware for which I am using virt_to_bus().

Finally I am doing a pci_unmap_single( NULL, phy_addr, datalen,
PCI_DMA_TODEVICE).

However i see a complete system hang when we transfer data at higher rates. I am still not being able to comprehend whether there is some
limitation on the number of times pci_map and pci_unmap can be used?

Can you tell us whether there is some limitation on this number or what could be a safe manner to proceed for our problem which will
definitely work in all architectures?
To sum up these are the steps we are following currently. Please correct wherever necessary :-

-> pci_map_single( NULL, skbuff->data, datalen,PCI_DMA_TODEVICE) to
ensure cache and system memory coherency.
-> Give phy_addr to the DMA hardware using virt_to_bus().
-> pci_unmap_single (NULL, phy_addr, datalen, PCI_DMA_TODEVICE).
This is being done each time a packet comes from the ethernet and has to be given to the hardware DMA. Kindle suggest the reason or the changes required to avoid the memory corruption being seen at higher data rates.
 
Old 01-06-2007, 11:13 AM   #2
sudeepd
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Requesting all the LINUX experts to give me some pointers from where i can proceed.
Thanks a lot
 
Old 01-06-2007, 12:47 PM   #3
sudeepd
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Please tell me where i can get help on this.
Its a complete workstopper for me.
Thanks
 
Old 01-08-2007, 01:13 AM   #4
sudeepd
LQ Newbie
 
Registered: Jan 2007
Posts: 6

Original Poster
Rep: Reputation: 0
Gentle reminder for some tips or guidelines on this.
 
Old 02-07-2007, 12:00 AM   #5
jimmyjammy
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
hi can anyone tell me about good wireless network card that will work with kismet and or back track and auditor thanks
 
Old 02-07-2007, 12:03 AM   #6
jimmyjammy
LQ Newbie
 
Registered: Feb 2007
Posts: 6

Rep: Reputation: 0
Is this forum still alive
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PCI_MAP_SINGLE & DMA system hang at 6Mbps sudeepd Linux - Wireless Networking 1 01-06-2007 11:31 AM
Firefox Speed issues 6mbps feels like 6kbps byen Linux - Software 2 06-02-2005 05:18 PM
system hang ust Linux - General 2 03-05-2004 09:15 AM
Hang up the System! hampel Linux - General 2 07-24-2003 05:57 AM
System Hang BxBoy Linux - General 3 05-09-2003 02:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration