diff options
author | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-01-18 13:51:03 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-01-21 01:12:53 +1100 |
commit | ae677ff02f2ddb0980953efd4afed1c90a56c88f (patch) | |
tree | 7549053535a4d8f5c7bcf5aaf035fd4fd362d933 /arch | |
parent | 5b2b80714796073ec9e196c7aeec59b7489fe676 (diff) | |
download | linux-stable-ae677ff02f2ddb0980953efd4afed1c90a56c88f.tar.gz linux-stable-ae677ff02f2ddb0980953efd4afed1c90a56c88f.tar.bz2 linux-stable-ae677ff02f2ddb0980953efd4afed1c90a56c88f.zip |
powerpc/powernv/ioda: Finish removing explicit max window size check
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/powernv/pci-ioda.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index b9146d5aef81..1069f9cb273a 100644 --- a/arch/powerpc/platforms/powernv/pci-ioda.c +++ b/arch/powerpc/platforms/powernv/pci-ioda.c @@ -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; |