Commit 73cffb5a authored by Kefeng Wang's avatar Kefeng Wang Committed by sanglipeng
Browse files

riscv: Enable CMA support

stable inclusion
from stable-v5.10.155
commit d7716240bca508fb9e74d00d96304bc30acc3d6c
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7M5F4

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



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

[ Upstream commit da815582 ]

riscv has selected HAVE_DMA_CONTIGUOUS, but doesn't call
dma_contiguous_reserve().  This calls dma_contiguous_reserve(), which
enables CMA.

Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
Stable-dep-of: 50e63dd8 ("riscv: fix reserved memory setup")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent d58f7c9f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment