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>
This commit is contained in:
Christoph Hellwig 2018-01-16 09:37:50 +01:00 • committed by Palmer Dabbelt
commit 5ec9c4ff04
No known key found for this signature in database
GPG key ID: EF4CA1502CCBAB41
3 changed files with 20 additions and 4 deletions