]> git.baikalelectronics.ru Git - kernel.git/commit
s390/dma: provide proper ARCH_ZONE_DMA_BITS value
authorHalil Pasic <pasic@linux.ibm.com>
Tue, 23 Jul 2019 22:51:55 +0000 (00:51 +0200)
committerHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 26 Jul 2019 11:36:12 +0000 (13:36 +0200)
commita69278eeafa3ba4c14ddfe5dc8fcfb279b59e44d
treefa84090e78308c2588d76de59c26a88204ed246a
parent760bce0356c2794e9d664c5627327257a8f63a44
s390/dma: provide proper ARCH_ZONE_DMA_BITS value

On s390 ZONE_DMA is up to 2G, i.e. ARCH_ZONE_DMA_BITS should be 31 bits.
The current value is 24 and makes __dma_direct_alloc_pages() take a
wrong turn first (but __dma_direct_alloc_pages() recovers then).

Let's correct ARCH_ZONE_DMA_BITS value and avoid wrong turns.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Reported-by: Petr Tesarik <ptesarik@suse.cz>
Fixes: 92409d40d4f9 ("dma-direct: add support for allocation from ZONE_DMA and ZONE_DMA32")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
arch/s390/include/asm/page.h