]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
powerpc/powernv/ioda: Finish removing explicit max window size check
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 18 Jan 2018 02:51:03 +0000 (13:51 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Jan 2018 14:12:53 +0000 (01:12 +1100)
9003a2498 removed checn from the DMA window pages allocator, however
the VFIO driver tests limits before doing so by calling
the get_table_size hook which was left behind; this fixes it.

Fixes: 9003a2498 "powerpc/powernv/ioda: Remove explicit max window size check"
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c

index b9146d5aef81fa601cd753c3bb16066f95a9875f..1069f9cb273a40a7b1d0afd6c096092c142da522 100644 (file)
@@ -2572,7 +2572,6 @@ static unsigned long pnv_pci_ioda2_get_table_size(__u32 page_shift,
        unsigned long direct_table_size;
 
        if (!levels || (levels > POWERNV_IOMMU_MAX_LEVELS) ||
-                       (window_size > memory_hotplug_max()) ||
                        !is_power_of_2(window_size))
                return 0;