summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2025-03-30 11:31:09 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2025-03-30 11:31:09 +0300
commit4103cfe9dcb88010ae4911d3ff417457d1b6a720 (patch)
tree81a36e3e46208133e76d3d83c000d27d6314094d /tools/perf/scripts/python/task-analyzer.py
parentec105cadff5d8c0a029a3dc1084cae46cf3f799d (diff)
downloadlinux-4103cfe9dcb88010ae4911d3ff417457d1b6a720.tar.xz
LoongArch: Increase ARCH_DMA_MINALIGN up to 16
ARCH_DMA_MINALIGN is 1 by default, but some LoongArch-specific devices (such as APBDMA) require 16 bytes alignment. When the data buffer length is too small, the hardware may make an error writing cacheline. Thus, it is dangerous to allocate a small memory buffer for DMA. It's always safe to define ARCH_DMA_MINALIGN as L1_CACHE_BYTES but unnecessary (kmalloc() need small memory objects). Therefore, just increase it to 16. Cc: stable@vger.kernel.org Tested-by: Binbin Zhou <zhoubinbin@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions