riscv: Enable CMA support
authorKefeng Wang <wangkefeng.wang@huawei.com>
Sat, 31 Oct 2020 06:01:12 +0000 (14:01 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Nov 2022 08:57:14 +0000 (09:57 +0100)
commitd7716240bca508fb9e74d00d96304bc30acc3d6c
tree5f468ad19eb47b7a197510ce6c144ddfe7212078
parentecf78af5141f079fffddddf708ffd311699cc131
riscv: Enable CMA support

[ Upstream commit da815582cf4594e96defa1cddb72cd00b1e7aac5 ]

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

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Stable-dep-of: 50e63dd8ed92 ("riscv: fix reserved memory setup")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/riscv/mm/init.c