Commit 9df356df authored by Helge Deller's avatar Helge Deller Committed by sanglipeng
Browse files

parisc: Improve cache flushing for PCXL in arch_sync_dma_for_cpu()

stable inclusion
from stable-v5.10.185
commit 3f7625e0862050dbeb00396d57a44b98103d8c47
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8L5XP

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=3f7625e0862050dbeb00396d57a44b98103d8c47



--------------------------------

[ Upstream commit 59fa1264 ]

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: default avatarHelge Deller <deller@gmx.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 73ae2ef5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment