]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
powerpc/pseries: Don't give a warning when HPT resizing isn't available
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Mar 2017 01:11:19 +0000 (12:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 18:48:34 +0000 (05:48 +1100)
As of 438cc81a41 "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 available we'll give a harmless,
but scary warning.  This patch suppresses the warning in this case.  It
will still warn if the feature is supposed to be available, but didn't
work.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_utils_64.c

index d97be8d207152ef1f9f5aaa6952eeea206c28260..7d07c7e17db6708334ea38cad711e1f5c32de1c6 100644 (file)
@@ -774,7 +774,7 @@ void resize_hpt_for_hotplug(unsigned long new_mem_size)
                int rc;
 
                rc = mmu_hash_ops.resize_hpt(target_hpt_shift);
-               if (rc)
+               if (rc && (rc != -ENODEV))
                        printk(KERN_WARNING
                               "Unable to resize hash page table to target order %d: %d\n",
                               target_hpt_shift, rc);