]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-loopback-test: Add test to trigger DMA/PIO mixing
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 16 Sep 2022 11:39:48 +0000 (13:39 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 19 Sep 2022 14:44:19 +0000 (15:44 +0100)
commit9316ac05fc3a04c7442fdae444c69974b3c50a7f
treec32716b46a38be47b3ed776804c0eca3a87cad3e
parent242c58f5f37fd2862611c8a49df84ca447b02d27
spi: spi-loopback-test: Add test to trigger DMA/PIO mixing

Add a test where a small and a large transfer in a message hit the same
cache line.  This test currently fails on spi-s3c64xx on in DMA mode
since it ends up mixing DMA and PIO without proper cache maintenance.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Link: https://lore.kernel.org/r/20220916113951.228398-2-vincent.whitchurch@axis.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c