diff options
author | Nicolas Saenz Julienne <nsaenzjulienne@suse.de> | 2019-10-14 21:31:03 +0300 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2019-11-01 12:41:18 +0300 |
commit | 8b5369ea580964dbc982781bfb9fb93459fc5e8d (patch) | |
tree | 55f4d7308e5fb1f4c5df396e637ba08bfa2daf46 /arch/s390/mm/init.c | |
parent | 4686da5140c18c84ca01a8ab994571d832c63398 (diff) | |
download | linux-8b5369ea580964dbc982781bfb9fb93459fc5e8d.tar.xz |
dma/direct: turn ARCH_ZONE_DMA_BITS into a variable
Some architectures, notably ARM, are interested in tweaking this
depending on their runtime DMA addressing limitations.
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/s390/mm/init.c')
-rw-r--r-- | arch/s390/mm/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index a124f19f7b3c..f0ce22220565 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c @@ -118,6 +118,7 @@ void __init paging_init(void) sparse_memory_present_with_active_regions(MAX_NUMNODES); sparse_init(); + zone_dma_bits = 31; memset(max_zone_pfns, 0, sizeof(max_zone_pfns)); max_zone_pfns[ZONE_DMA] = PFN_DOWN(MAX_DMA_ADDRESS); max_zone_pfns[ZONE_NORMAL] = max_low_pfn; |