linux/arch/arm/mach-tegra
Colin Cross 5789fee934 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>
2011-02-10 17:50:41 -08:00
..
include/mach ARM: tegra: Allow overriding arch_reset 2011-02-10 17:50:41 -08:00
board-harmony-pcie.c tegra: harmony: enable PCI Express 2010-10-21 18:13:10 -07:00
board-harmony-pinmux.c [ARM] tegra: harmony: Add harmony board file 2010-08-05 14:57:02 -07:00
board-harmony.c arm: remove machine_desc.io_pg_offst and .phys_io 2010-10-20 00:27:46 -04:00
board-harmony.h [ARM] tegra: harmony: Add harmony board file 2010-08-05 14:57:02 -07:00
board.h ARM: tegra: Allow overriding arch_reset 2011-02-10 17:50:41 -08:00
clock.c ARM: 6483/1: arm & sh: factorised duplicated clkdev.c 2010-11-26 10:51:04 +00:00
clock.h ARM: 6483/1: arm & sh: factorised duplicated clkdev.c 2010-11-26 10:51:04 +00:00
common.c ARM: tegra: Allow overriding arch_reset 2011-02-10 17:50:41 -08:00
cpu-tegra.c ARM: tegra: cpufreq: Disable cpufreq during suspend 2011-02-10 17:50:40 -08:00
dma.c ARM: tegra: dma: Fix critical data corruption bugs 2011-02-10 17:50:41 -08:00
fuse.c [ARM] tegra: Add support for reading fuses 2010-10-21 18:12:09 -07:00
fuse.h [ARM] tegra: Add support for reading fuses 2010-10-21 18:12:09 -07:00
gpio-names.h [ARM] tegra: add GPIO support 2010-08-05 14:57:02 -07:00
gpio.c ARM: tegra: Add prototypes for subsystem suspend functions 2011-02-09 21:57:01 -08:00
headsmp.S [ARM] tegra: SMP support 2010-08-05 14:57:01 -07:00
hotplug.c ARM: fix wrongly patched constants 2011-01-14 12:06:26 +00:00
io.c [ARM] tegra: update iomap 2010-10-21 18:11:24 -07:00
irq.c ARM: tegra: irq: Implement retrigger 2011-02-09 22:18:30 -08:00
Kconfig tegra: add PCI Express support 2010-10-21 18:13:02 -07:00
legacy_irq.c ARM: tegra: irq: Add support for suspend wake sources 2011-02-09 22:18:21 -08:00
localtimer.c [ARM] tegra: SMP support 2010-08-05 14:57:01 -07:00
Makefile ARM: tegra: Add api to control internal powergating 2011-02-09 21:57:00 -08:00
Makefile.boot [ARM] tegra: initial tegra support 2010-08-05 14:51:42 -07:00
pcie.c tegra: add PCI Express support 2010-10-21 18:13:02 -07:00
pinmux-t2-tables.c ARM: tegra: pinmux: Add missing drive pingroups and fix suspend 2011-02-09 21:57:02 -08:00
pinmux.c [ARM] tegra: pinmux: add safe values, move tegra2, add suspend 2010-10-21 18:11:41 -07:00
platsmp.c Merge branch 'misc' into devel 2011-01-06 22:32:52 +00:00
powergate.c ARM: tegra: Add api to control internal powergating 2011-02-09 21:57:00 -08:00
tegra2_clocks.c ARM: tegra: clock: Suspend fixes, and add new clocks 2011-02-09 21:57:02 -08:00
tegra2_dvfs.c [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups 2010-10-21 18:12:19 -07:00
tegra2_dvfs.h [ARM] tegra: clock: Add dvfs support, bug fixes, and cleanups 2010-10-21 18:12:19 -07:00
timer.c ARM: tegra: timer: Add idle and suspend support to timers 2011-02-09 22:17:38 -08:00