linux/arch/arm/mach-omap2/include/mach
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
..
am35xx.h AM35xx EMAC: define submodule offsets 2010-05-20 10:53:55 -07:00
barriers.h ARM: OMAP4: Fix errata i688 with MPU interconnect barriers. 2011-12-08 11:29:01 -08:00
board-rx51.h OMAP2plus: Fix static function warnings 2010-10-08 10:02:49 -07:00
board-zoom.h OMAP: DSS2: Move display.h to include/video/ 2011-05-11 14:05:07 +03:00
ctrl_module_core_44xx.h omap4: control: Add the register definition headers 2010-09-27 14:02:58 -06:00
ctrl_module_pad_core_44xx.h ARM: OMAP: ctrl: Fix CONTROL_DSIPHY register fields 2011-10-07 03:08:44 -06:00
ctrl_module_pad_wkup_44xx.h omap4: control: Add the register definition headers 2010-09-27 14:02:58 -06:00
ctrl_module_wkup_44xx.h omap4: control: Add the register definition headers 2010-09-27 14:02:58 -06:00
debug-macro.S ARM: mach-omap2: clean up debug-macro.S 2011-09-26 10:11:27 -04:00
entry-macro.S ARM: omap2plus: convert to CONFIG_MULTI_IRQ_HANDLER 2011-11-15 18:14:02 +00:00
gpio.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
hardware.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
id.h omap: Add new interface omap_get_die_id 2010-08-02 14:21:41 +03:00
io.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
irqs.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
omap-secure.h ARM: OMAP4: PM: Add L2X0 cache lowpower support 2011-12-08 11:29:01 -08:00
omap-wakeupgen.h ARM: OMAP4: PM: Add WakeupGen module as OMAP gic_arch_extn 2011-12-08 11:29:00 -08:00
smp.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
system.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
timex.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00
uncompress.h omap: headers: Create headers necessary for compile under mach-omap1 and mach-omap2 2009-10-19 17:32:58 -07:00