]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/spi/spi-loopback-test.c
spi: loopback-test: add option to use vmalloc'ed buffers
authorFrode Isaksen <fisaksen@baylibre.com>
Thu, 23 Feb 2017 18:02:01 +0000 (19:02 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 15 Mar 2017 19:35:53 +0000 (19:35 +0000)
commit576333a1fb940767e8638fafea908214682e8acd
treefb264a862d4a829073c69f0105bae4327d0bb077
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: loopback-test: add option to use vmalloc'ed buffers

Using vmalloc'ed buffers will use one SG entry for each page,
that may provoke DMA errors for large transfers.
Also vmalloc'ed buffers may cause errors on CPU's with VIVT cache.
Add this option to catch these errors when testing.
Note that to catch VIVT cache errors, checking the rx range
has to be disabled, so this option has been added as well.

Signed-off-by: Frode Isaksen <fisaksen@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-loopback-test.c