linux/arch/arm/plat-omap/include/plat
Santosh Shilimkar 137d105d50 ARM: OMAP4: Fix errata i688 with MPU interconnect barriers.
On OMAP4 SOC, intecronnects has many write buffers in the async bridges
and they need to be drained before CPU enters into standby state.

Patch 'OMAP4: PM: Add CPUX OFF mode support' added CPU PM support
but OMAP errata i688 (Async Bridge Corruption) needs to be taken
care to avoid issues like system freeze, CPU deadlocks, random
crashes with register accesses, synchronisation loss on initiators
operating on both interconnect port simultaneously.

As per the errata, if a data is stalled inside asynchronous bridge
because of back pressure, it may be accepted multiple times, creating
pointer misalignment that will corrupt next transfers on that data
path until next reset of the system (No recovery procedure once
the issue is hit, the path remains consistently broken).
Async bridge can be found on path between MPU to EMIF and
MPU to L3 interconnect. This situation can happen only when the
idle is initiated by a Master Request Disconnection (which is
trigged by software when executing WFI on CPU).

The work-around for this errata needs all the initiators
connected through async bridge must ensure that data path
is properly drained before issuing WFI. This condition will be
met if one Strongly ordered access is performed to the
target right before executing the WFI. In MPU case, L3 T2ASYNC
FIFO and DDR T2ASYNC FIFO needs to be drained. IO barrier ensure
that there is no synchronisation loss on initiators operating
on both interconnect port simultaneously.

Thanks to Russell for a tip to conver assembly function to
C fuction there by reducing 40 odd lines of code from the patch.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Richard Woodruff <r-woodruff2@ti.com>
Acked-by: Jean Pihet <j-pihet@ti.com>
Reviewed-by: Kevin Hilman <khilman@ti.com>
Tested-by: Vishwanath BS <vishwanath.bs@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
2011-12-08 11:29:01 -08:00
..
blizzard.h
board-ams-delta.h
board-sx1.h
board-voiceblue.h
board.h ARM: omap: move omap_get_config et al. to .init.text 2011-02-09 16:36:40 -08:00
clkdev_omap.h OMAP4: clocks: Update the clock tree with 4460 clock nodes 2011-07-08 03:38:48 -07:00
clock.h ARM: OMAP: Fix dpll_data compile error when omap2 only is selected 2011-11-10 12:12:55 -08:00
common.h Merge branch 'for-rmk' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into devel-stable 2011-12-05 23:20:17 +00:00
cpu.h Merge branch 'for_3.2/pm-cleanup-2' of git://github.com/khilman/linux-omap-pm into fixes 2011-11-04 17:40:52 -07:00
dma-44xx.h
dma.h am3505/3517: Various platform defines for UART4 2011-08-10 03:38:07 -07:00
dmtimer.h ARM: OMAP: change get_context_loss_count ret value to int 2011-11-04 17:41:07 -07:00
dsp.h
flash.h OMAP: fix compilation error 2011-05-31 06:17:01 -07:00
fpga.h arm: omap1: fix compile warnings 2011-01-27 16:39:41 -08:00
gpio-switch.h
gpio.h ARM: gpio: make trivial GPIOLIB implementation the default 2011-08-12 08:54:19 +01:00
gpmc-smc91x.h
gpmc-smsc911x.h arm: omap: gpmc-smsc911x: minor style fixes 2011-05-03 00:38:58 -07:00
gpmc.h Fix common misspellings 2011-03-31 11:26:23 -03:00
hardware.h TI816X: Update common OMAP machine specific sources 2011-02-16 08:31:39 -08:00
hwa742.h
i2c.h OMAP: hwmod: fix the i2c-reset timeout during bootup 2011-07-10 05:27:16 -06:00
io.h Merge branch 'vmalloc' of git://git.linaro.org/people/nico/linux into devel-stable 2011-12-05 23:27:59 +00:00
iommu.h iommu/omap: Migrate to the generic fault report mechanism 2011-09-14 15:36:35 +02:00
iommu2.h omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
iopgtable.h omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
iovmm.h omap: iommu: omapify 'struct iommu' and exposed API 2011-08-26 11:46:01 +02:00
irda.h
irqs-44xx.h
irqs.h Merge branch 'irqchip-consolidation' of git://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms into devel-stable 2011-11-21 21:56:56 +00:00
keypad.h Keyboard: omap-keypad: use matrix_keypad.h 2010-12-22 11:11:47 -08:00
l3_2xxx.h OMAP2420: hwmod data: add DSS DISPC RFBI VENC 2011-02-23 09:19:06 +02:00
l3_3xxx.h OMAP3: hwmod data: add DSS DISPC RFBI DSI VENC 2011-02-23 09:19:06 +02:00
l4_2xxx.h OMAP2420: hwmod data: add DSS DISPC RFBI VENC 2011-02-23 09:19:06 +02:00
l4_3xxx.h OMAP3: hwmod data: add DSS DISPC RFBI DSI VENC 2011-02-23 09:19:06 +02:00
lcd_mipid.h
led.h
mailbox.h
mcbsp.h ARM: OMAP: mcbsp: Start generalize signal muxing functions 2011-09-26 17:49:07 -07:00
mcspi.h OMAP: devices: Modify McSPI device to adapt to hwmod framework 2011-02-17 09:53:31 -08:00
menelaus.h
mmc.h mmc: omap_hsmmc: if multiblock reads are broken, disable them 2011-10-27 09:11:28 -04:00
multi.h omap: Start using CONFIG_SOC_OMAP 2011-01-27 16:39:40 -08:00
mux.h
nand.h omap: cleanup NAND platform data 2011-06-29 01:11:37 -07:00
omap-pm.h ARM: OMAP: change get_context_loss_count ret value to int 2011-11-04 17:41:07 -07:00
omap-secure.h ARM: OMAP: PM: Add support to allocate the memory for secure RAM 2011-12-08 11:29:00 -08:00
omap-serial.h omap: serial: Change device name: omap-hsuart -> omap_uart 2010-12-20 17:53:04 -08:00
omap4-keypad.h OMAP4: Keyboard: Mux changes in the board file 2011-07-05 03:38:24 -07:00
omap7xx.h
omap16xx.h
omap24xx.h
omap34xx.h [media] ARM: OMAP3: Update Camera ISP definitions for OMAP3630 2011-03-22 04:53:40 -03:00
omap44xx.h ARM: OMAP4: PM: Add SAR RAM support 2011-12-08 11:28:59 -08:00
omap730.h
omap850.h
omap1510.h
omap_device.h ARM: OMAP: change get_context_loss_count ret value to int 2011-11-04 17:41:07 -07:00
omap_hwmod.h ARM: OMAP: change get_context_loss_count ret value to int 2011-11-04 17:41:07 -07:00
onenand.h Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into for-linus-1 2011-03-25 17:41:20 +02:00
param.h
prcm.h ARM: OMAP: Allow platforms to hook reset cleanly 2011-01-27 16:39:48 -08:00
sdrc.h OMAP2+: sdrc: fix compile break on OMAP4-only config on current omap-for-linus 2011-02-28 17:53:01 -08:00
serial.h ARM: plat-omap: make OMAP_UART_INFO into a relative offset 2011-09-26 10:11:25 -04:00
sram.h ARM: OMAP4: Fix errata i688 with MPU interconnect barriers. 2011-12-08 11:29:01 -08:00
system.h ARM: OMAP: Allow platforms to hook reset cleanly 2011-01-27 16:39:48 -08:00
tc.h
ti816x.h TI816X: Update common OMAP machine specific sources 2011-02-16 08:31:39 -08:00
timex.h
uncompress.h ARM: plat-omap: make OMAP_UART_INFO into a relative offset 2011-09-26 10:11:25 -04:00
usb.h usb: musb: am35x: fix compile error when building am35x 2011-05-18 13:39:47 +03:00
voltage.h omap: voltage: add a stub header file for external/regulator use 2011-09-15 12:09:22 -07:00
vram.h
vrfb.h