]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 4 Sep 2019 06:16:38 +0000 (02:16 -0400)
commit4b1f029266cdbeaa0ab6ebb26c92474b7956db55
tree619a4ad125c0aae3f17d47d199798da191a98fd4
parent9ac55846bec83b0a9f0496035a6399b146189dc9
s390/dma: provide proper ARCH_ZONE_DMA_BITS value

BugLink: https://bugs.launchpad.net/bugs/1840520
[ Upstream commit 1a2dcff881059dedc14fafc8a442664c8dbd60f1 ]

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: c61e9637340e ("dma-direct: add support for allocation from ZONE_DMA and ZONE_DMA32")
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
arch/s390/include/asm/page.h