Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: macb patches don't work on 2.6.38
PostPosted: Sun Jul 10, 2011 1:32 pm 
Offline

Joined: Tue Sep 23, 2008 11:14 am
Posts: 8
Hi,

I tried forward porting the macb SRAM patches from 2.6.30-at91-exp.4.patch to kernel 2.6.38, but the kernel panics with:

eth0: TX underrun, resetting buffers
kernel BUG at arch/arm/mm/dma-mapping.c:442!

This crash can be fixed with another conditional in macb_tx:

#if !defined(CONFIG_MACB_TX_SRAM)
dma_unmap_single(&bp->pdev->dev, rp->mapping, skb->len, DMA_TO_DEVICE);
#endif

But then I only get to this error line in macb_interrupt:

printk(KERN_ERR "%s: DMA bus error: HRESP not OK\n", dev->name);

Anybody know what has changed in 2.6.38 to make the SRAM patches not work anymore?

Thanks


Top
 Profile  
 
 Post subject: Re: macb patches don't work on 2.6.38
PostPosted: Wed Nov 09, 2011 4:09 pm 
Offline

Joined: Thu Jul 29, 2010 9:23 am
Posts: 6
Hi,
I manually patch this kernel with that patch and add your "patch"

#if !defined(CONFIG_MACB_TX_SRAM)
dma_unmap_single(&bp->pdev->dev, rp->mapping, skb->len, DMA_TO_DEVICE);
#endif

too and it works fine. Before there ware a lot of underruns, about 1000 per 250MB, now about 100 per 250MB.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: