riscv: add ZONE_DMA32
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Jan 2018 08:37:50 +0000 (09:37 +0100)
committerPalmer Dabbelt <palmer@dabbelt.com>
Wed, 31 Jan 2018 03:14:27 +0000 (19:14 -0800)
commit5ec9c4ff0430e33b602cc0ff8ab9dec8ef548d28
tree3fb2ff5397466ecc5516d7e8d56e71e17e15ca41
parentf1b65f20fb05d1dd94656904848b96cc6df52bc0
riscv: add ZONE_DMA32

This patch allows devices that require memory that can be addressed
using 32-bit addresses to work easily on RISC-V systems.  The newly
improved dma-direct ops will tap into this pool automatically for
32-bit addressing.

Based on an earlier patch from Wesley W. Terpstra.

CC: Wesley W. Terpstra <terpstra@sifive.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/Kconfig
arch/riscv/kernel/setup.c
arch/riscv/mm/init.c