Skip to content

Commit 8971e1c

Browse files
committed
powerpc/pseries: Don't give a warning when HPT resizing isn't available
As of commit 438cc81 ("powerpc/pseries: Automatically resize HPT for memory hot add/remove"), when running on the pseries platform, we always attempt to use the PAPR extension to resize the hashed page table (HPT) when we add or remove memory. This is fine, but when the extension is not available we'll give a harmless, but scary warning. Instead check if the firmware supports HPT resizing before populating the mmu_hash_ops.resize_hpt pointer. Signed-off-by: David Gibson <[email protected]> Signed-off-by: Michael Ellerman <[email protected]>
1 parent f717629 commit 8971e1c

File tree

1 file changed

+3
-1
lines changed
  • arch/powerpc/platforms/pseries

1 file changed

+3
-1
lines changed

arch/powerpc/platforms/pseries/lpar.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,9 @@ void __init hpte_init_pseries(void)
751751
mmu_hash_ops.flush_hash_range = pSeries_lpar_flush_hash_range;
752752
mmu_hash_ops.hpte_clear_all = pseries_hpte_clear_all;
753753
mmu_hash_ops.hugepage_invalidate = pSeries_lpar_hugepage_invalidate;
754-
mmu_hash_ops.resize_hpt = pseries_lpar_resize_hpt;
754+
755+
if (firmware_has_feature(FW_FEATURE_HPT_RESIZE))
756+
mmu_hash_ops.resize_hpt = pseries_lpar_resize_hpt;
755757
}
756758

757759
void radix_init_pseries(void)

0 commit comments

Comments
 (0)