]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: mm: XBurst CPU requires sync after DMA
authorPaul Cercueil <paul@crapouillou.net>
Sun, 30 May 2021 17:17:55 +0000 (18:17 +0100)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 1 Jun 2021 09:44:46 +0000 (11:44 +0200)
commitefb724a4c0e86de7f39080b38a6cf3c4ed57bb42
tree591624fadbf915c66cef78f5afc7d5c35ae4833c
parent35a7d7bfed2a4889ee564a3d3f374f8840362f59
MIPS: mm: XBurst CPU requires sync after DMA

I am not sure why this is required, but if this is not enabled, reading
from a buffer in which data has been DMA'd may read incorrect values.

This used to happen for instance in mmc_app_send_scr()
(drivers/mmc/core/sd_ops.c), where data is DMA'd to a buffer then copied
by the CPU to a different location.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/Kconfig
arch/mips/mm/dma-noncoherent.c