]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Don't give a warning when HPT resizing isn't available
authorMichael Ellerman <michael@ellerman.id.au>
Fri, 17 Mar 2017 05:02:35 +0000 (16:02 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 17 Mar 2017 05:10:58 +0000 (16:10 +1100)
commit1730bf38612aa93626476f21f586836bf8f5093e
treedcdab00a415a31400f3eca1e2eabc6e27557921a
parenta18f79a6d510d5badcc4aeaccf3dc043f95fa82c
powerpc/pseries: Don't give a warning when HPT resizing isn't available

As of commit fc02724b7582 ("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 <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/lpar.c