]> 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)
commit38ed3ca49c7580a73328603905fe39e40461b3aa
treedcdab00a415a31400f3eca1e2eabc6e27557921a
parentbab023776aa20ab14479badbc375e0ccc3c3d4f6
powerpc/pseries: Don't give a warning when HPT resizing isn't available

As of commit 2e52b8ebbf16 ("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