Hello.

On 25-09-2013 3:27, gre...@linuxfoundation.org wrote:

This is a note to let you know that I've just added the patch titled

     mmc: tmio_mmc_dma: fix PIO fallback on SDHI

to the 3.0-stable tree which can be found at:
     
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
      mmc-tmio_mmc_dma-fix-pio-fallback-on-sdhi.patch
and it can be found in the queue-3.0 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@vger.kernel.org> know about it.

   Greg, the original patch was marked 3.1+, so there's no need to apply it
to 3.0.y, unless you also applied commit 
162f43e31c5a376ec16336e5d0ac973373d54c89
(mmc: tmio: fix a deadlock) -- which I don't see in 3.0.y.

 From f936f9b67b7f8c2eae01dd303a0e90bd777c4679 Mon Sep 17 00:00:00 2001
From: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>
Date: Sat, 24 Aug 2013 23:38:15 -0400
Subject: mmc: tmio_mmc_dma: fix PIO fallback on SDHI

From: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>

commit f936f9b67b7f8c2eae01dd303a0e90bd777c4679 upstream.

I'm testing SH-Mobile SDHI driver in DMA mode with  a new DMA controller  using
'bonnie++' and getting DMA error after which the tmio_mmc_dma.c code falls back
to PIO but all commands time out after that.  It turned out that the fallback
code calls tmio_mmc_enable_dma() with RX/TX channels already freed and pointers
to them cleared, so that the function bails out early instead  of clearing the
DMA bit in the CTL_DMA_ENABLE register. The regression was introduced by commit
162f43e31c5a376ec16336e5d0ac973373d54c89 (mmc: tmio: fix a deadlock).
Moving tmio_mmc_enable_dma() calls to the top of the PIO fallback code in
tmio_mmc_start_dma_{rx|tx}() helps.

Signed-off-by: Sergei Shtylyov <sergei.shtyl...@cogentembedded.com>
Acked-by: Guennadi Liakhovetski <g.liakhovet...@gmx.de>
Signed-off-by: Chris Ball <c...@laptop.org>
Signed-off-by: Greg Kroah-Hartman <gre...@linuxfoundation.org>

WBR, Sergei

--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to