Help!

DMA Crash on MPC8272


Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Power PC RSS
Next:  Debian linux powerpc dvd's?  
Author Message
Bill
External


Since: Jun 07, 2007
Posts: 4



PostPosted: Thu Jun 07, 2007 6:29 pm    Post subject: DMA Crash on MPC8272
Archived from groups: comp>os>linux>powerpc (more info?)

I am writing a Linux network device driver using Linux 2.4 with an
MPC8272 processor. I allocate buffers using kmalloc with the GFP_DMA
and GFP_KERNEL flags set. I DMA using these buffers to and from the
memory of a PCI device that is not a bus master. When I DMA from the
buffers to the PCI device, it does not crash, but when I DMA from the
PCI device to the buffers, the system crashes, sometimes immediately
and sometimes in as much as a half hour.

What could cause this difference in behavior based on the direction of
the DMA?
Back to top
John McCallum
External


Since: Dec 15, 2006
Posts: 6



PostPosted: Fri Jun 08, 2007 11:03 am    Post subject: Re: DMA Crash on MPC8272 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hiya Bill,

> [...] When I DMA from the
> buffers to the PCI device, it does not crash, but when I DMA from the
> PCI device to the buffers, the system crashes, sometimes immediately
> and sometimes in as much as a half hour.
>
> What could cause this difference in behavior based on the direction of
> the DMA?

The last time something like this happened to me, it was because the
memory destination was wrong and I was overwriting part of the kernel.

Sounds like pretty similar behaviour.

Cheers,
John McCallum
Edinburgh
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Power PC All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum