dma-direct: always allow dma mask <= physiscal memory size
authorChristoph Hellwig <hch@lst.de>
Fri, 7 Sep 2018 07:31:58 +0000 (09:31 +0200)
committerChristoph Hellwig <hch@lst.de>
Mon, 1 Oct 2018 14:31:25 +0000 (07:31 -0700)
commit9d7a224b463e1cf1178570b57b6497240fd79bc3
treeae0c4b9399057288e7a715fb066c8a5edc71154b
parentb4ebe6063204da58e48600b810a97c29ae9e5d12
dma-direct: always allow dma mask <= physiscal memory size

This way an architecture with less than 4G of RAM can support dma_mask
smaller than 32-bit without a ZONE_DMA.  Apparently that is a common
case on powerpc.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
kernel/dma/direct.c