]> 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)
commit8f00df21693159b81113a732bfeba2c4d46abe23
treeffb95bea156f0877e579897aa8b36ad847e70322
parent5fd01cf5258f19b785b92cb9974828f91e797313
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