]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2d89370aa0282cef37a470768afa2eee2ec09689
treeffb95bea156f0877e579897aa8b36ad847e70322
parent773856afb185343a34a999381f82f492f4e2e697
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