]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Remove arm64_dma32_phys_limit and its uses
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 7 Jan 2021 14:40:08 +0000 (14:40 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 12 Jan 2021 17:49:25 +0000 (17:49 +0000)
commit15355c634e7eff63f2dd18beedcf78581d602310
tree3e607084b90941436840c59af4bb35c9b2897c6a
parent23a2b9809c00c14636d193186909bff30026c39d
arm64: Remove arm64_dma32_phys_limit and its uses

With the introduction of a dynamic ZONE_DMA range based on DT or IORT
information, there's no need for CMA allocations from the wider
ZONE_DMA32 since on most platforms ZONE_DMA will cover the 32-bit
addressable range. Remove the arm64_dma32_phys_limit and set
arm64_dma_phys_limit to cover the smallest DMA range required on the
platform. CMA allocation and crashkernel reservation now go in the
dynamically sized ZONE_DMA, allowing correct functionality on RPi4.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Chen Zhou <chenzhou10@huawei.com>
Reviewed-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Tested-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de> # On RPi4B
arch/arm64/include/asm/processor.h
arch/arm64/mm/init.c