Skip to content

Commit d5c23eb

Browse files
author
Christoph Hellwig
committed
ia64: replace ZONE_DMA with ZONE_DMA32
ia64 uses ZONE_DMA for allocations below 32-bits. These days we name the zone for that ZONE_DMA32, which will allow to use the dma-direct and generic swiotlb code as-is, so rename it. Signed-off-by: Christoph Hellwig <[email protected]> Acked-by: Christian König <[email protected]>
1 parent 4bd89ed commit d5c23eb

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

arch/ia64/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ config 64BIT
6666
select ATA_NONSTANDARD if ATA
6767
default y
6868

69-
config ZONE_DMA
69+
config ZONE_DMA32
7070
def_bool y
7171
depends on !IA64_SGI_SN2
7272

arch/ia64/kernel/pci-swiotlb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ static void *ia64_swiotlb_alloc_coherent(struct device *dev, size_t size,
2020
unsigned long attrs)
2121
{
2222
if (dev->coherent_dma_mask != DMA_BIT_MASK(64))
23-
gfp |= GFP_DMA;
23+
gfp |= GFP_DMA32;
2424
return swiotlb_alloc_coherent(dev, size, dma_handle, gfp);
2525
}
2626

arch/ia64/mm/contig.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,9 +237,9 @@ paging_init (void)
237237
unsigned long max_zone_pfns[MAX_NR_ZONES];
238238

239239
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
240-
#ifdef CONFIG_ZONE_DMA
240+
#ifdef CONFIG_ZONE_DMA32
241241
max_dma = virt_to_phys((void *) MAX_DMA_ADDRESS) >> PAGE_SHIFT;
242-
max_zone_pfns[ZONE_DMA] = max_dma;
242+
max_zone_pfns[ZONE_DMA32] = max_dma;
243243
#endif
244244
max_zone_pfns[ZONE_NORMAL] = max_low_pfn;
245245

arch/ia64/mm/discontig.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct early_node_data {
3838
struct ia64_node_data *node_data;
3939
unsigned long pernode_addr;
4040
unsigned long pernode_size;
41-
#ifdef CONFIG_ZONE_DMA
41+
#ifdef CONFIG_ZONE_DMA32
4242
unsigned long num_dma_physpages;
4343
#endif
4444
unsigned long min_pfn;
@@ -669,7 +669,7 @@ static __init int count_node_pages(unsigned long start, unsigned long len, int n
669669
{
670670
unsigned long end = start + len;
671671

672-
#ifdef CONFIG_ZONE_DMA
672+
#ifdef CONFIG_ZONE_DMA32
673673
if (start <= __pa(MAX_DMA_ADDRESS))
674674
mem_data[node].num_dma_physpages +=
675675
(min(end, __pa(MAX_DMA_ADDRESS)) - start) >>PAGE_SHIFT;
@@ -724,8 +724,8 @@ void __init paging_init(void)
724724
}
725725

726726
memset(max_zone_pfns, 0, sizeof(max_zone_pfns));
727-
#ifdef CONFIG_ZONE_DMA
728-
max_zone_pfns[ZONE_DMA] = max_dma;
727+
#ifdef CONFIG_ZONE_DMA32
728+
max_zone_pfns[ZONE_DMA32] = max_dma;
729729
#endif
730730
max_zone_pfns[ZONE_NORMAL] = max_pfn;
731731
free_area_init_nodes(max_zone_pfns);

0 commit comments

Comments
 (0)