Commit ec066de1 authored by Peng Fan's avatar Peng Fan Committed by Stefano Stabellini
Browse files

arm: xen: mm: use __GPF_DMA32 for arm64

arm64 shares some code under arch/arm/xen, including mm.c.
However ZONE_DMA is removed by commit

("arm64: replace ZONE_DMA with ZONE_DMA32").

So add a check if CONFIG_ZONE_DMA32 is enabled use __GFP_DMA32.
Signed-off-by: default avatarPeng Fan <>
Acked-by: default avatarStefano Stabellini <>
Signed-off-by: default avatarStefano Stabellini <>
parent 04ccbdc3
......@@ -28,7 +28,10 @@ unsigned long xen_get_swiotlb_free_pages(unsigned int order)
for_each_memblock(memory, reg) {
if (reg->base < (phys_addr_t)0xffffffff) {
flags |= __GFP_DMA;
flags |= __GFP_DMA32;
flags |= __GFP_DMA;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment