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