]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()
authorHelge Deller <deller@gmx.de>
Wed, 17 May 2023 13:52:30 +0000 (15:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 Jun 2023 14:02:07 +0000 (16:02 +0200)
commit6f50472d6441eadc05036e7e9692d8dbd8596129
tree1f9f0b1d8775481caa63f66e3a3a51615797724e
parent0f32085e687530daf31c5a325802ad780708b74a
parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()

[ Upstream commit 59fa12646d9f56c842b4d5b6418ed77af625c588 ]

Add comment in arch_sync_dma_for_device() and handle the direction flag in
arch_sync_dma_for_cpu().

When receiving data from the device (DMA_FROM_DEVICE) unconditionally
purge the data cache in arch_sync_dma_for_cpu().

Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/kernel/pci-dma.c