Received: by 2002:ac0:8bc7:0:0:0:0:0 with SMTP id o7csp23622ima; Wed, 6 Feb 2019 20:08:01 -0800 (PST) X-Google-Smtp-Source: AHgI3IbvELVFuWXT5fOkoBqpxCE9xJAkk39J4Ul/0BJiuTQ3VzrsAKYqISWs2Xfag3BX3GPnHPZU X-Received: by 2002:a17:902:fa2:: with SMTP id 31mr14507943plz.75.1549512481394; Wed, 06 Feb 2019 20:08:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549512481; cv=none; d=google.com; s=arc-20160816; b=urNiLDLkQhJXmaGemepoWTsB0zzRYNvAMnsdiIsTkYMOhbTwjY31boImclmkd/qfia z1aZKYtfK9WgKYIdJIceyiah9zUKznFfglRbVk3AkazTWF0/Jl4iMUBieG1EevgCwp8/ GswAaV7uvvQjHZjVGiBmg74vToHiQ82xC03bypWsXVpgmehNR77WBbh1OOfLegb8Udiq IOYUIPa9lyW9zM0PksKZiebLk327yj63zjpx+wxFjKz7pyQa8qFWiQ4C8bcxKI/UiNNQ eVvk5Vfo7C5iXfmC9RC0IH0L7g8/SRjlGeZnQqooNb6CWLt51432vBAw6VaF/O6jjb3q 6qoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=bilZAgUX33IeaqSPFJVvSTkWSC182Kcz8xn/OGNdQIU=; b=j6yYhwQE1JrEKtN9AHNqjvaXup3UEayN62ADwPGC1ilihkzPvP5JoPNR//lcSJp52G 9bZDBS8J9eFU6eCHH79ZT2NbIpcxfSiKHi9jw0J2GcfCdamgju+Nt37CTu1Wpg/pjv5M qaUypU+Vm7Om3GL92eLMYGsPx5QlwsBDjsfJW7k6P5YmZzMkJaZbb1UoAwQQt9r7R4h8 dJ7bykv4bV2zUP/3o2Y4QwA/Oy4WOKOrVK8/DzxXQPKsDh6oW3xc+r0svki9v9uRkXYr fy/wRKQhNvk8afn9S3xWs23xp2uQ1KcnMNqGFlZlCxuI2ymx5dhX52/tU3rFNx1qfDto wMxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=Uy8WU77U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21si7147348pgx.488.2019.02.06.20.07.43; Wed, 06 Feb 2019 20:08:01 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gibson.dropbear.id.au header.s=201602 header.b=Uy8WU77U; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726733AbfBGEFx (ORCPT + 99 others); Wed, 6 Feb 2019 23:05:53 -0500 Received: from ozlabs.org ([203.11.71.1]:49945 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbfBGEFw (ORCPT ); Wed, 6 Feb 2019 23:05:52 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 43w4VN4X0rz9sMM; Thu, 7 Feb 2019 15:05:45 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gibson.dropbear.id.au; s=201602; t=1549512348; bh=S0S2dS1LjBuRUTG1clDNgaI7KgE8nTVNnjiFR2NoXvA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uy8WU77U9A/eXG5/Tke+Th5k5aHqKg5W+2moFJQjgjPHb3RSlMEuVovTfo8MMeXy+ ZS027npk5ZEFGdNzoPEtlqN/puV9sDHDOrhEpRMs04p31S0QgEc/sL49zR/Qb3JstF IibSO4sRi3Suy2Ne1zLAV0+Kp5RA6umM7QcvMa/c= Date: Thu, 7 Feb 2019 14:03:05 +1100 From: David Gibson To: Laurent Vivier Cc: linux-kernel@vger.kernel.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Christophe Leroy Subject: Re: [PATCH v2] powerpc/mm: move a KERN_WARNING message to pr_debug() Message-ID: <20190207030305.GA518@umbus.fritz.box> References: <20190205202133.5048-1-lvivier@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: <20190205202133.5048-1-lvivier@redhat.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 05, 2019 at 09:21:33PM +0100, Laurent Vivier wrote: > resize_hpt_for_hotplug() reports a warning when it cannot > increase the hash page table ("Unable to resize hash page > table to target order") but this is not blocking and > can make user thinks something has not worked properly. > As we move the message to the debug area, report again the > ENODEV error. >=20 > If the operation cannot be done the real error message > will be reported by arch_add_memory() if create_section_mapping() > fails. >=20 > Fixes: 7339390d772dd > powerpc/pseries: Don't give a warning when HPT resizing isn't avai= lable > Signed-off-by: Laurent Vivier Sorry, I'm pretty dubious about this. It's true that in the case for which this bug was filed this is a harmless situation which deserves a pr_debug() at most. But that's not necessarily true in all paths leading to this message. It will also trip if we fail to reshrink the HPT after genuinely hotunplugging a bunch of memory, in which case failing to release expected resources does deserve a warning. > --- >=20 > Notes: > v2: > - use pr_debug instead of printk(KERN_DEBUG > - remove check for ENODEV >=20 > arch/powerpc/mm/hash_utils_64.c | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) >=20 > diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils= _64.c > index 0cc7fbc3bd1c..6a0cc4eb2c83 100644 > --- a/arch/powerpc/mm/hash_utils_64.c > +++ b/arch/powerpc/mm/hash_utils_64.c > @@ -777,10 +777,9 @@ void resize_hpt_for_hotplug(unsigned long new_mem_si= ze) > int rc; > =20 > rc =3D mmu_hash_ops.resize_hpt(target_hpt_shift); > - if (rc && (rc !=3D -ENODEV)) > - printk(KERN_WARNING > - "Unable to resize hash page table to target order %d: %d\n", > - target_hpt_shift, rc); > + if (rc) > + pr_debug("Unable to resize hash page table to target order %d: %d\n", > + target_hpt_shift, rc); > } > } > =20 --=20 David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEdfRlhq5hpmzETofcbDjKyiDZs5IFAlxbn+cACgkQbDjKyiDZ s5L2uA//d3kL73x/E6LZ0sRh7aylcIfnRBlPzYmX787L4LZfSSlFGDscIhjj4EWx cWArmrwR62zv2H9pcgj2oKz9C1cZQPfC8wHTJuAOPiRb8oVWic1KysbJhDLPfeRp LwoCoocxdob69Li45NysjHTEtnoBKt9flllkNcieyPRz92mhCdYiTyjyuVkyg9hd Sl2EXEqZpt+eq2+vr3l26nC0Y4IdgzmnY8GqELpbqhLCWX7XXvokUrx8uXfxzCc+ xHiE72FQhtTcj3aShI1DYt8doJFVUP0i5441UhQUImQzahC3Oo8i7N3kRJfcZNYd S75JnBrm0RAzd4jOyRsqiDADeDqjPhzo4Hq7D3i5KMKT2pHa37VUEmCRIGYEjpea A9aYlhVbdvDdCyy5LQs/6/A6FNk8pfccNMCG8AxStR7cYQdo8Babz+F4jutfigTB F+ZBtFWmAwvKE18ClErfOzE+GgOHvh2FIWLH2biwArPEc7PON9VzaWP8K41CQEfs 9zJjvEgp4fofadFimPr2hUmkfvWmngy+6vbHm48Y/kdf6LnEBIlS+322YncEalTW ABKAllKMxkYxXig6ORHwBW8j+wGCRM+dYvPJ2ZFwspGxWXIzMkKIeD9YhUiP/mvN 4ZXSy1mt1IFikkgfko2u/yCSzsR9/WYC7M7j1gXBTlI1FuflB/M= =UPqI -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--