[IA64] ioremap() should prefer WB over UC

efi_memmap_init() collects full granules of WB memory, without
regard for whether they also support UC. So in order for ioremap()
to work for main memory, it must prefer WB mappings when possible.

Signed-off-by: Bjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Bjorn Helgaas and committed by Tony Luck c1c57d76 3283a67d

+3 -3
+3 -3
arch/ia64/mm/ioremap.c
··· 21 void __iomem * 22 ioremap (unsigned long offset, unsigned long size) 23 { 24 - if (efi_mem_attribute_range(offset, size, EFI_MEMORY_UC)) 25 - return __ioremap(offset, size); 26 - 27 if (efi_mem_attribute_range(offset, size, EFI_MEMORY_WB)) 28 return phys_to_virt(offset); 29 30 /* 31 * Someday this should check ACPI resources so we
··· 21 void __iomem * 22 ioremap (unsigned long offset, unsigned long size) 23 { 24 if (efi_mem_attribute_range(offset, size, EFI_MEMORY_WB)) 25 return phys_to_virt(offset); 26 + 27 + if (efi_mem_attribute_range(offset, size, EFI_MEMORY_UC)) 28 + return __ioremap(offset, size); 29 30 /* 31 * Someday this should check ACPI resources so we