linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/8] fsldma: lockup fixes
@ 2011-02-26  0:23 Ira W. Snyder
  2011-02-26  0:23 ` [PATCH 1/8] fsldma: move related helper functions near each other Ira W. Snyder
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Ira W. Snyder @ 2011-02-26  0:23 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: dan.j.williams, linux-kernel, Ira W. Snyder

Hello everyone,

I've been chasing random infrequent controller lockups in the fsldma driver
for a long time. I finally managed to find the problem and fix it. I'm not
quite sure about the exact sequence of events which causes the race
condition, but it is related to using the hardware registers to track the
controller state. See the patch changelogs for more detail.

The problems were quickly found by turning on DMAPOOL_DEBUG inside
mm/dmapool.c. This poisons memory allocated with the dmapool API.

With dmapool poisoning turned on, the dmatest driver would start producing
failures within a few seconds. After this patchset has been applied, I have
run several iterations of the 10 threads per channel, 100000 iterations per
thread test without any problems.

I have made some changes which effect the 85xx/86xx part. I believe that
the changes only effect features which have been unused since the rewrite
in Jan 2010. It would be very good to get a test report from an 85xx/86xx
user.

While making the previous changes, I noticed that the fsldma driver does
not respect the automatic DMA unmapping of src and dst buffers. I have
added support for this feature. This also required a fix to dmatest, which
was sending incorrect flags.

The "support async_tx dependencies" patch could be split apart from the
automatic unmapping patch if it is desirable. They both touch the same
piece of code, so I thought it was ok to combine them. Let me know.

I would really like to see this go into 2.6.39. I think we can get it
reviewed before then. :)

Ira W. Snyder (8):
  fsldma: move related helper functions near each other
  fsldma: use channel name in printk output
  fsldma: improve link descriptor debugging
  fsldma: minor codingstyle and consistency fixes
  fsldma: fix controller lockups
  fsldma: support async_tx dependencies and automatic unmapping
  dmatest: fix automatic buffer unmap type
  fsldma: reduce locking during descriptor cleanup

 drivers/dma/dmatest.c |    7 +-
 drivers/dma/fsldma.c  |  485 +++++++++++++++++++++++++-----------------------
 drivers/dma/fsldma.h  |    6 +-
 3 files changed, 263 insertions(+), 235 deletions(-)

-- 
1.7.3.4

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

end of thread, other threads:[~2011-02-26  0:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-26  0:23 [PATCH 0/8] fsldma: lockup fixes Ira W. Snyder
2011-02-26  0:23 ` [PATCH 1/8] fsldma: move related helper functions near each other Ira W. Snyder
2011-02-26  0:23 ` [PATCH 2/8] fsldma: use channel name in printk output Ira W. Snyder
2011-02-26  0:23 ` [PATCH 3/8] fsldma: improve link descriptor debugging Ira W. Snyder
2011-02-26  0:23 ` [PATCH 4/8] fsldma: minor codingstyle and consistency fixes Ira W. Snyder
2011-02-26  0:23 ` [PATCH 5/8] fsldma: fix controller lockups Ira W. Snyder
2011-02-26  0:23 ` [PATCH 6/8] fsldma: support async_tx dependencies and automatic unmapping Ira W. Snyder
2011-02-26  0:23 ` [PATCH 7/8] dmatest: fix automatic buffer unmap type Ira W. Snyder
2011-02-26  0:23 ` [PATCH 8/8] fsldma: reduce locking during descriptor cleanup Ira W. Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).