riscv: only enable ZONE_DMA32 for 64-bit
authorChristoph Hellwig <hch@lst.de>
Fri, 27 Apr 2018 06:41:09 +0000 (08:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Sat, 19 May 2018 06:46:22 +0000 (08:46 +0200)
Until we actually support > 32bit physical addresses for 32-bit using
highmem there is no point in enabling ZONE_DMA32.  And even if such
support is ever added it probably should be conditional to not burden
low end embedded devices.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/Kconfig

index 7817bbe0cfacf90d31e7e96f8e8e25d0e565de3d..c4488ce8c2fa4c98c985c1e18db2c1b05a16dc01 100644 (file)
@@ -48,7 +48,7 @@ config MMU
 
 config ZONE_DMA32
        bool
-       default y
+       default y if 64BIT
 
 config PAGE_OFFSET
        hex