Message ID | 20200217134627.19765-1-prarit@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | EDAC/mce_amd: Output Scalable MCA processor warning once | expand |
On Mon, Feb 17, 2020 at 08:46:27AM -0500, Prarit Bhargava wrote: > This warning is output for every virtual cpu in a guest on an EPYC 2 > system. The warning only needs to be logged one time. > > Output the warning only once. > > Signed-off-by: Prarit Bhargava <prarit@redhat.com> > Cc: Borislav Petkov <bp@alien8.de> > Cc: Mauro Carvalho Chehab <mchehab@kernel.org> > Cc: Tony Luck <tony.luck@intel.com> > Cc: James Morse <james.morse@arm.com> > Cc: Robert Richter <rrichter@marvell.com> > Cc: linux-edac@vger.kernel.org > --- > drivers/edac/mce_amd.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c > index ea980c556f2e..8874b7722b2f 100644 > --- a/drivers/edac/mce_amd.c > +++ b/drivers/edac/mce_amd.c > @@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void) > > case 0x17: > case 0x18: > - pr_warn("Decoding supported only on Scalable MCA processors.\n"); > + pr_warn_once("Decoding supported only on Scalable MCA processors.\n"); > return -EINVAL; > > default: > -- Applied, thanks.
diff --git a/drivers/edac/mce_amd.c b/drivers/edac/mce_amd.c index ea980c556f2e..8874b7722b2f 100644 --- a/drivers/edac/mce_amd.c +++ b/drivers/edac/mce_amd.c @@ -1239,7 +1239,7 @@ static int __init mce_amd_init(void) case 0x17: case 0x18: - pr_warn("Decoding supported only on Scalable MCA processors.\n"); + pr_warn_once("Decoding supported only on Scalable MCA processors.\n"); return -EINVAL; default:
This warning is output for every virtual cpu in a guest on an EPYC 2 system. The warning only needs to be logged one time. Output the warning only once. Signed-off-by: Prarit Bhargava <prarit@redhat.com> Cc: Borislav Petkov <bp@alien8.de> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: Tony Luck <tony.luck@intel.com> Cc: James Morse <james.morse@arm.com> Cc: Robert Richter <rrichter@marvell.com> Cc: linux-edac@vger.kernel.org --- drivers/edac/mce_amd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)