On Mon, Jan 28, 2013 at 6:27 PM, H. Peter Anvin <hpa at zytor.com> wrote: > To be more clear: the max_pfn stuff seems like a relic of the past, and I am wondering what it would take to get rid of it. > > It clearly has the wrong semantics, except perhaps in the most trivial allocator models. > one thing i think could be : use that decide if we need iommu/swiotlb. like in arch/x86/kernel/amd_gart_64.c arch/x86/kernel/pci-swiotlb.c drivers/iommu/amd_iommu.c ... Yinghai