]> www.infradead.org Git - users/dwmw2/linux.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:00:53 +0000 (16:00 +0200)
commite522a12e4892f99b4251dbdd9dcf37f8dc2cb90e
treed65942bb2b31c572c5e72a99246966fe5ae2f12d
parent0b09b35cae865b383e206d2ab54ce4560859577c
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