]> 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 13:44:09 +0000 (15:44 +0200)
commitde873bce06a8bd196677832c7065a86fd287db79
tree9ae066490e2415993e2b02ad437f445693224f50
parent28850d25a62c5e304168e9c6c03fba61adbe6b5f
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