aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ep93xx
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2010-08-18 00:19:12 -0700
committerColin Cross <ccross@android.com>2011-02-10 17:50:41 -0800
commit5789fee934278dd6f4c541db97de229bd4a76424 (patch)
tree15aad9ddf9f423f6350aa6c1a6e49ef652761ad0 /arch/arm/mach-ep93xx
parent699fe145d6e651a814423eeb6125381998f3c077 (diff)
downloadkernel_samsung_aries-5789fee934278dd6f4c541db97de229bd4a76424.zip
kernel_samsung_aries-5789fee934278dd6f4c541db97de229bd4a76424.tar.gz
kernel_samsung_aries-5789fee934278dd6f4c541db97de229bd4a76424.tar.bz2
ARM: tegra: dma: Fix critical data corruption bugs
Sometimes, due to high interrupt latency in the continuous mode of DMA transfer, the half buffer complete interrupt is handled after DMA has transferred the full buffer. When this is detected, stop DMA immediately and restart with the next buffer if the next buffer is ready. originally fixed by Victor(Weiguo) Pan <wpan@nvidia.com> In place of using the simple spin_lock()/spi_unlock() in the interrupt thread, using the spin_lock_irqsave() and spin_unlock_irqrestore(). The lock is shared between the normal process context and interrupt context. originally fixed by Laxman Dewangan (ldewangan@nvidia.com) The use of shadow registers caused memory corruption at physical address 0 because the enable bit was not shadowed, and assuming it needed to be set would enable an unconfigured dma block. Most of the register accesses don't need to know the previous state of the registers, and the few places that do need to modify only a few bits in the registers are the same ones that were sometimes incorrectly setting the enable bit. This patch convert tegra_dma_update_hardware to set the entire register, and the other users to read-modify-write, and drops the shadow registers completely. Also fixes missing locking in tegra_dma_allocate_channel Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'arch/arm/mach-ep93xx')
0 files changed, 0 insertions, 0 deletions