ARCv2: IOC: Adhere to progamming model guidelines to avoid DMA corruption
authorVineet Gupta <vgupta@synopsys.com>
Wed, 22 Jun 2016 10:31:19 +0000 (16:01 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Wed, 18 Jan 2017 22:48:33 +0000 (14:48 -0800)
commit8c47f83ba45928ce9495fcf1b29e828c28e3c839
treeffb95bea156f0877e579897aa8b36ad847e70322
parentd4911cdd3270da45d3a1c55bf28e88a932bbba7b
ARCv2: IOC: Adhere to progamming model guidelines to avoid DMA corruption

On AXS103 release bitfiles, DMA data corruptions were seen because IOC
setup was not following the recommended way in documentation.

Flipping IOC on when caches are enabled or coherency transactions are in
flight, might cause some of the memory operations to not observe
coherency as expected.

So strictly follow the programming model recommendations as documented
in comment header above arc_ioc_setup()

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/cache.h
arch/arc/mm/cache.c